Skip to main content

Multi-Language: Translate Web Interfaces for End Users

1. End-User Multi-LanguageDirect link to 1. End-User Multi-Language

Softyflow multi-language lets a single web interface be displayed in several languages to end users. It is configured per web interface, from the Code page of the interface (Visual actions › Multilingual). The Page Settings of the builder have no language field.

Softyflow supports 16 languages:

CodeLanguageCodeLanguage
enEnglishnlDutch
frFrenchsvSESwedish
deGermannbNONorwegian
itItalianhuHungarian
esSpanishplPolish
ptPortuguesejaJapanese
arArabiczhCNSimplified Chinese
daDanishzhTWTraditional Chinese
Let Flowy AI translate for you

Flowy AI can enable the languages of the pages and fill their translation tables, the labels of the custom lists and the titles of the menus. Ask it, for example: "Translate into English the pages, menus and lists of project Purchase requests". See What Flowy Builds.

2. Configuring Interface LanguagesDirect link to 2. Configuring Interface Languages

Open your interface in the builder, then click Open Action / Script Editor in the right rail: the Code page opens in a new tab. In the Visual actions group, click the Multilingual tile.

The Multilingual panel of the Code page: default language, page languages and translation file.
The Multilingual panel of the Code page: default language, page languages and translation file.

Three settings are available:

  • Default language — the fallback language of the interface (used when no other language applies). Stored as config.language.
  • Page languages — the list of languages enabled for this interface (config.languageOptions). The default language is automatically added to this list on save.
  • Translation file — CSV export / import of the translation table, in three steps (see section 4).
IMPORTANT

The language switcher (flag) only appears in the runtime interface header when at least two languages are enabled in Page languages. With a single language, no switcher is shown.

3. Translating the Interface (Translation Table)Direct link to 3. Translating the Interface (Translation Table)

The translation table is a JSON array, editable in the Scripts › Multilingual tile of the Code page. Each row represents a text to translate and contains:

  • id_ — a generated technical identifier (e.g. input1_name, input1_placeholder, btn_submit_buttonName).
  • Default language(xx) — the value in the default language. This value is the dictionary key used for translation at runtime.
  • One column per enabled language (fr, en, de…) containing the translation.
Scripts › Multilingual: the translation table of the interface, in JSON.
Scripts › Multilingual: the translation table of the interface, in JSON.

At runtime, each widget label is passed through the SF_translate Vue filter, which looks up the default value in the dictionary and replaces it with the translation for the active language. If no translation exists, the default value is shown as-is.

Built-in textsDirect link to Built-in texts

The texts that come from Softyflow itself are translated automatically, without any row in the table. The languages depend on the text:

TextsLanguages
The validation messages of the fields (for example "Subject is required"), the toolbar, filters and export of tables, the messages of file uploads, the menus of the header, the title of the confirm dialog, the loading messages of OpenNextTaskThe 16 languages
The views of tables, the message of an expired captcha, the No task to open messageAll but Danish (da), where they stay untranslated
The messages of the actions: task saved or submitted, request submitted, incomplete form, failed validation, list of the required fields, e-mail sent, and the Yes and No buttons of confirmen, fr, de, it, es, ar, ja, da; the other eight languages (pt, nl, svSE, nbNO, hu, pl, zhCN, zhTW) show them in English
The Export to Google Sheets dialog of tablesEnglish only

4. CSV (Excel) Export / ImportDirect link to 4. CSV (Excel) Export / Import

To translate offline (e.g. in Excel), use the Translation file block of the Multilingual panel.

The Translation file block: download the CSV, fill one column per language, import it.
The Translation file block: download the CSV, fill one column per language, import it.
  1. Download the CSV — downloads a translate.csv file with one row per text of the page.
  2. Fill one column per language.
  3. Import the CSV — the translations land in Scripts › Multilingual. Then save the page to keep the translations.

The CSV is semicolon-separated, with the following header:

id_;Default language(fr);en;de;es;...

Example content:

id_;Default language(fr);en;de
input1_name;Nom;Name;Name
input1_placeholder;Entrez votre nom;Enter your name;Geben Sie Ihren Namen ein
btn_submit_buttonName;Soumettre;Submit;Absenden
note

The file is CSV format (openable in Excel), not a native .xlsx Excel file. Keep the semicolon separator and the header intact when editing.

5. Supported Translation ElementsDirect link to 5. Supported Translation Elements

On CSV export, Softyflow walks the widget tree and automatically collects the following texts. Each text becomes a row in the CSV with a determined identifier (id_).

Supported (auto-exported)Direct link to Supported (auto-exported)

ElementFieldId pattern
Page name (the title shown at the top of the page)page.nameui_title_<name>
Section / list titleitem.title<title>_title_list
Any widget labelitem.name<id>_name
Placeholderoptions.placeholder<id>_placeholder
Default valueoptions.defaultValue<id>_defaultValue
Text (Text / Title widget)options.text<id>_text
Contentoptions.content<id>_content
Textsoptions.texts<id>_texts
Button nameoptions.buttonName<id>_buttonName
Tooltip / tipoptions.tip<id>_tip
Title (Drawer / PopUp / Card…)options.title<id>_title
Descriptionoptions.description<id>_description
Radio / Checkbox / Select / Steps option labeloptions.options[].title<id>_title_<i>
Radio / Checkbox / Select / Steps option descriptionoptions.options[].description<id>_description_<i>
Table column header (label)options.columns[].label<id>_label_columns_<i>
Chart dataset labelconfig.datasets[].label<id>_label_chart_<i>
SF_translate markers in the HTML widgetscanned in options.html<text>_html_<id>

The name of the page is translated where it is shown at the top of the page; the browser tab keeps the name as written.

Title and Text widgetsDirect link to Title and Text widgets

The texts of Title and Text widgets are translated at runtime by the page dictionary, like the other labels:

  1. If the table has a translation of the whole content (the <id>_text row of a Title, the <id>_content row of a Text), that translation is shown. It can use the same {{…}} expressions as the original, in any order. Leave this row empty in a language to translate the text piece by piece.
  2. Otherwise, each piece of text is looked up on its own: the text between two {{…}} expressions and, in a Text widget, between two HTML tags. The key of a piece is its text without the spaces at the start and the end, with repeated spaces and line breaks made one space. A piece without any letter (a number, a punctuation mark) and the content of script, style, textarea, pre and code tags are left as they are.

So you can translate a text that contains variables without rewriting it: in Scripts › Multilingual, add one row per piece (any id_, the piece in the default language, its translations). For a French Title Bonjour {{firstName}}, vous avez {{count}} demandes en attente:

[
  { "id_": "welcome_1", "Default language(fr)": "Bonjour", "en": "Hello" },
  { "id_": "welcome_2", "Default language(fr)": ", vous avez", "en": ", you have" },
  { "id_": "welcome_3", "Default language(fr)": "demandes en attente", "en": "pending requests" }
]

The page shows "Hello Anna, you have 3 pending requests" in English. The {{…}} expressions keep displaying the value of the variables. Data stored by the application (for example a status saved in a collection) is not translated.

note

The rows of the pieces are not part of the CSV: Download the CSV lists only the texts of the table above, and Import the CSV replaces the whole translation table. If you import a CSV, add the rows of the pieces to the file first, or add them again in Scripts › Multilingual afterwards.

Not supported (NOT auto-exported)Direct link to Not supported (NOT auto-exported)

  • Custom list option labels — not in the interface CSV. They are translated separately, per option, via label_xx fields (the Translations view of the custom list, or its CSV). At runtime: item['label_'+lang] || item.label.
  • Navigation menu titles — not in the interface CSV. They are translated per menu item via menu[].languages (the Translations of the menu editor). At runtime: el.languages[lang] || el.title.
  • Action / script strings — toasts, confirmations, and error messages written in the Script Editor are not collected. The messages of the confirm, alertMessage and validateHistoryComment actions still go through the dictionary at runtime: add a row whose default value is the message. For other strings, use the HTML widget SF_translate pattern.
  • Plain HTML text without SF_translate — text typed directly in an HTML widget is not exported; only strings wrapped with | SF_translate are.
  • Validation messages — the built-in messages of the fields (such as required, which inserts the label of the field) are translated automatically into the 16 languages; the message of a failed validation shown by the actions exists in eight languages only (see Built-in texts). Custom validation messages are not collected.
  • Image alt text, file names, URLs, favicon — not translatable.

6. Integrating Custom Translatable Strings (HTML Widget + SF_translate)Direct link to 6. Integrating Custom Translatable Strings (HTML Widget + SF_translate)

To make a custom text (beyond the auto-collected fields) detectable and exported in the CSV, use the Vue SF_translate filter inside an HTML widget. This is the only way for a custom text to be detected and exported in the CSV; a row added by hand in Scripts › Multilingual also works at runtime, but it is not part of the CSV.

Two syntaxes are supported:

<!-- 1. Text content (Vue interpolation) -->
{{ 'My custom text' | SF_translate }}

<!-- 2. Attribute / prop binding -->
<el-input :placeholder="'My custom text' | SF_translate" />

On CSV export, Softyflow scans the HTML widget content, detects these SF_translate markers, and adds one row per string (id <text>_html_<widget id>).

IMPORTANT
  • HTML text without SF_translate is not exported.
  • Apart from the whole-content rows of the Title and Text widgets, the values of the translation table are static strings: there is no runtime variable interpolation. Only built-in system keys (like required) interpolate a variable (data.label). "Integrating a variable" therefore means wrapping a custom string with | SF_translate so it is detected and exported; the translated value itself remains a fixed per-language string.

7. Translating Custom List LabelsDirect link to 7. Translating Custom List Labels

Custom list options are translated individually via label_xx fields (one per language, 16 languages). Open the custom list, then click the Translations tile: one chip per language shows how many labels are translated (for example EN English 3/3); select a language and type the translation of each Original label. A language left empty shows the original label. In the Values view, the Languages column shows how many languages each value has, and its button opens all the translations of that value.

The Translations view of a custom list: one chip per language with its progress, the original labels and their translation.
The Translations view of a custom list: one chip per language with its progress, the original labels and their translation.

You can also import the values with Import (a CSV or JSON file) and export them with Export CSV or Export JSON. The expected header of a comma-separated CSV is:

label,value,colorLight,colorDark,label_en,label_fr,label_de,label_it,label_es,label_pt,label_ar,label_nl,label_svSE,label_nbNO,label_hu,label_pl,label_ja,label_zhCN,label_zhTW,label_da

In a JSON file, each translation is a label_<language> field (see Importing and Exporting a File).

At runtime, the Select / Radio / Checkbox widgets and the Custom list columns of the Table widget display item['label_'+lang] || item.label.

8. Translating Navigation Menu TitlesDirect link to 8. Translating Navigation Menu Titles

Navigation menu items are not part of the interface translation table — they are translated per menu item, in the menu editor. Each menu entry has a languages map (one value per language code); at runtime the header renders el.languages[lang] || el.title.

To translate a menu:

  1. Open the menu in the menu editor (Menus in the project dock).
  2. Either select an entry and fill its Translations card (one field per language; an empty language displays the default label), or click Translate the whole menu (or the Menu translations button of the right rail) to translate all the labels language by language. Each language chip shows its progress, and Only missing labels hides the labels already translated.
  3. Use the language selector above the canvas to preview the menu in a language, then click Save and publish.
The Menu translations panel of the menu editor: one chip per language and one field per label.
The Menu translations panel of the menu editor: one chip per language and one field per label.
note

Only the menu labels are translated here. The menu structure, icons, URLs, and target are not translatable.

9. Runtime BehaviorDirect link to 9. Runtime Behavior

Language resolution orderDirect link to Language resolution order

When an interface is opened, the active language is determined in this order:

  1. The URL parameter ?SF_lg=<code> if it is among the enabled languages (languageOptions).
  2. Otherwise, the connected user's language (user.lg) if it is among the enabled languages.
  3. Otherwise, the interface default language (config.language).

A ?SF_lg= in one of the 16 languages that is not enabled on the page still switches the built-in texts, the labels of the custom lists and the titles of the menu to that language. The texts of the page itself stay in the default language, unless the translation table has a column for that language.

The language switcherDirect link to The language switcher

The header shows the flag of the current language. Click it to open the menu of the enabled languages, each with its flag and its name. When a design is applied to the applications (Settings › Design & colours), the menu has a Language title, shows each language in its own language (Français, English, Svenska…; Danish is the exception and stays Danish) and a check mark on the current one.

The language menu in the runtime header, with a design applied: each language in its own language, a check on the current one (shown only when at least two languages are enabled).
The language menu in the runtime header, with a design applied: each language in its own language, a check on the current one (shown only when at least two languages are enabled).

When the user switches language via the header flag:

  • Logged-in user — the lg preference is saved via PATCH /api/v1/profil, then the page reloads with ?SF_lg=<code>.
  • Anonymous user — the page simply reloads with ?SF_lg=<code>.

Same interface in two languagesDirect link to Same interface in two languages

The same interface rendered in French: menu, title, labels, placeholders, button and the custom list of the Category field.
The same interface rendered in French: menu, title, labels, placeholders, button and the custom list of the Category field.
The same interface rendered in English after switching language: every text, including the custom list labels, follows the language.
The same interface rendered in English after switching language: every text, including the custom list labels, follows the language.

10. Reference & Supported LanguagesDirect link to 10. Reference & Supported Languages

SettingWhereStored field
Interface default languageCode page → Visual actions › Multilingualconfig.language
Enabled languagesCode page → Visual actions › Multilingualconfig.languageOptions
Interface translation tableCode page → Scripts › Multilingual (JSON) / CSVconfig.translation
Page nameCode page → Scripts › Multilingual (JSON) / CSVrow ui_title_<name>
Custom list option labelsCustom list → Translationslabel_xx per option
Navigation menu titlesMenu editor → Translationsmenu[].languages
User runtime languageUser profileuser.lg

The 16 supported language codes: en, fr, de, it, es, pt, ar, nl, svSE, nbNO, hu, pl, ja, zhCN, zhTW, da.