Skip to main content
Version: 2026.7
Still in testing

The SDK of this version is still being tested, and these pages are being updated with it: names, menus and procedures may still change before the release. If you build content for a platform already in production, follow the documentation of that version — pick it from the version menu at the top right.

Texts and languages

The texts of an environment come from its Localization File, a CSV that you upload with the environment (its format is in The Localization File). Every text is a key; the file holds the translation of the key in each language. This page is about the texts of your own UI: the panels, the toasts and popups, and what a script shows.

Which way to show a text​

WhereHowFollows a language change?
A UI panelThe Key and Text fields of each textYes
A TextMesh Pro text on a canvasThe Localization PlaceholderYes
A taskThe Localize Task PlaceholderYes
A text a script or a graph shows (a toast, a popup, a label)Localization.TranslateOr, or the Translate Or nodeNo: the text is fixed, translate it again on LanguageChanged

In a UI panel, a text has a Key and a Text. With a key, the panel shows its translation, and changes it when the user changes language. When the key is empty, or the file has no translation for it, the panel shows Text as written: write it in your environment's main language, so a missing translation shows a sentence and not a code.

A text set from code (SetTitle("…"), SetPanelText, ShowToast) is shown as written.

Translate Or​

ILocalizationApi.TranslateOr(key, fallback) returns the translation of key in the current language, or fallback when the Localization File has none for it: no row for the key, an empty cell in every language, or no localization system at all (a world played from the editor).

string title = IVirtuademyGameplay.Current.Localization.TranslateOr("station/reset/title", "Start again?");
  • A row with an empty cell for the current language shows another language first, in the order of the application's language list, and fallback only when every cell is empty.
  • It differs from Translate(key), which returns the key itself when nothing is authored for it. Use TranslateOr for every text the user reads, with the fallback in your environment's main language, so an outdated Localization File shows a sentence and not station/reset/title.
  • The result is a fixed text. To keep it right after a language change, translate again in a handler of Localization.LanguageChanged, whose argument is the previous language (read CurrentLanguage for the new one): see Writing scripts.
  • In a graph, use the Translate Or node (Localization nodes).

Check missing translations​

A key written in a component and missing from the file shows the fallback text, or the key, to the user. The editor can look for them before you publish: Virtuademy ▸ Advanced ▸ Check missing translations.

  1. Open the scenes you want to check (the window reads the open scenes).
  2. Open the window, and drag the CSV of your Localization File into its Localization File field. The file must start with the header row of the format: the first column is Key.
  3. Click Check open scenes.

It reads the keys of:

  • the Localization Placeholder;
  • the Localize Task Placeholder, when it localizes the description;
  • every text of the SDK's UI panels;
  • the localized slots of UI Toolkit documents that use the localized binders (locKey…).

It reports two problems, in the window (with a Select button that pings the component) and in the Console:

MessageMeaning
not in the fileThe file has no row for the key
no <language> translationThe row has an empty cell for that language, once per language. Users of that language see another language's text, which is not an error in the player but is what the check lists

A key may be written with the application's category in front (External/CreatorKit/): the check ignores it.

It does not read keys written in your scripts or in graphs (a TranslateOr("…") call, a Translate Or node), the hint and feedback keys of a Localize Task Placeholder, or the texts of the quiz and Point of Interest panels: list those keys yourself.