RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

Server CommandsGE UtilitiesGame Engine MainNavigation GraphScreenshot CaptureServerServer ConnectionSpawnpoint ManagerSimulation TimeVehicle SpawningSuspension Frequency Tester
Flowgraph Base ModuleFlowgraph Base NodeFlowgraph Base State NodeFlowgraph Node BuilderFlowgraph GraphFlowgraph Group HelperFlowgraph LinkFlowgraph ManagerNew Node TemplateFlowgraph PinFlowgraph States ManagerFlowgraph UtilsFlowgraph Variable Storage
Medal / Auto Medal (Flowgraph Node)Clear Messages (Flowgraph Node)Context Translation (Flowgraph Node)ConvertUnit (Flowgraph Node)Set UI Timer / Corner Timer (Flowgraph Node)Custom Button TEST (Flowgraph Node)Custom UI Layout (Flowgraph Node)End Screen (Flowgraph Node)End Stats (Flowgraph Node)Fade From Black (Flowgraph Node)Fade Sequence (Flowgraph Node)Fade To Black (Flowgraph Node)Flash Message (Flowgraph Node)Generic Mission Text (Flowgraph Node)Get Gamestate (Flowgraph Node)Show Editor (Flowgraph Node)Hide Game UI (Flowgraph Node)Message (Flowgraph Node)Mission End Screen (Flowgraph Node)Popup (Flowgraph Node)Monologue (Flowgraph Node)Multi Description (Flowgraph Node)On Bigmap Poi (Flowgraph Node)On Bigmap State Change (Flowgraph Node)Set UI Race Checkpoints (Flowgraph Node)Set UI Race Laps (Flowgraph Node)Set UI Race Recovery (Flowgraph Node)RT Message (Flowgraph Node)Select Buttons (Flowgraph Node)Set UI Layout (Flowgraph Node)Show Apps (Flowgraph Node)Show Monitor (Flowgraph Node)Start Screen (Flowgraph Node)Clear Goals (Flowgraph Node)Tasklist Message (Flowgraph Node)Tasklist Task (Flowgraph Node)Three Element Select (Flowgraph Node)Vehicle Selector (Flowgraph Node)

UI

Resources

BeamNG Game Engine Lua Cheat SheetGE Developer RecipesMCP Server Setup

// RLS.STUDIOS=true

Premium Mods for BeamNG.drive. Career systems, custom vehicles, and immersive gameplay experiences.

Index

HomeProjectsPatreon

Socials

DiscordPatreon (RLS)Patreon (Vehicles)

© 2026 RLS Studios. All rights reserved.

Modding since 2024

API ReferenceGE Extensionsflowgraphnodesui

Context Translation (Flowgraph Node)

- **Node Name:** `Context Translation`

Overview

  • Node Name: Context Translation
  • Category: repeat_instant
  • File: extensions/flowgraph/nodes/ui/contextTranslation.lua

Creates a context-sensitive translation object for localized UI strings with variable substitution.

Pin Schema

Input Pins

PinTypeDescription
translationStringstringTranslation key (e.g., "ui.missions.speed.description")
(dynamic)(various)Context variables extracted from the translation string

Output Pins

PinTypeDescription
valuetable (translationObject)Translation object with txt and context fields

Allowed Manual Pin Types

string, number, bool, any, table, vec3, quat, color

How It Works

  1. init() - Enables savePins and allowCustomInPins for dynamic pin creation.
  2. work() - Builds a translation object: { txt = translationString, context = { var1 = val1, ... } } from all non-flow, non-translationString input pins.
  3. drawCustomProperties() - When the translation string is hardcoded, provides a "Load Variables" button that:
    • Calls translateLanguage() to resolve the translation string.
    • Extracts {{variableName}} placeholders from the translated text.
    • Creates input pins for each variable automatically.

Translation Object Format

{
  txt = "ui.missions.speed.description",  -- translation key
  context = {
    speed = 120,        -- variable values
    unit = "km/h"
  }
}

Example Usage

-- Translation string: "Reach {{speed}} {{unit}}"
-- After loading variables, pins 'speed' and 'unit' are created.
-- Connect number/string sources to fill in the context.
-- Output translation object is used by UI message nodes.

See Also

  • Medal / Auto Medal (Flowgraph Node) - Related reference
  • Clear Messages (Flowgraph Node) - Related reference
  • ConvertUnit (Flowgraph Node) - Related reference
  • FlowGraph Guide - Guide

Clear Messages (Flowgraph Node)

- **Node Name:** `Clear Messages`

ConvertUnit (Flowgraph Node)

- **Node Name:** `ConvertUnit`

On this page

OverviewPin SchemaInput PinsOutput PinsAllowed Manual Pin TypesHow It WorksTranslation Object FormatExample UsageSee Also