Skip to content

Multilingual Properties

Some properties allow you to set language-specific values for English or Japanese in addition to the default value, depending on the browser language.
You can configure these by clicking the [+] icon at the bottom right of the setting item in the property dialog.
This feature was added in v4.1.0.

Setting via the Property Dialog

You can set language-specific values for English or Japanese from the property dialog using the following steps:

  1. Click the [+] button at the bottom right of a property item that supports multilingual settings.
  2. Select [English] or [日本語].
  3. An input field for the selected language will appear. Enter the value in that field.
  4. Click [Apply].

Getting and Setting via Actions

When getting or setting multilingual property values in actions, use the following syntax:

Getting values in actions

SyntaxResult
const a = $ui.{componentID}.{propertyName} The value displayed on the screen at the time the action is executed is stored in variable a.
const b = $ui.{componentID}.{propertyName}Languages.default The property value set for the default is stored in variable b.
Added in v4.2.0.
const c = $ui.{componentID}.{propertyName}Languages.en The property value set for English is stored in variable c.
const d = $ui.{componentID}.{propertyName}Languages.ja The property value set for Japanese is stored in variable d.

Example:

const a = $ui.text_field.value;
const b = $ui.text_field.valueLanguages.default;
const c = $ui.text_field.valueLanguages.en;
const d = $ui.text_field.valueLanguages.ja;

Setting values in actions

SyntaxResult
$ui.{componentID}.{propertyName} = 'xxx' ’xxx’ is set as the default property value.
$ui.{componentID}.{propertyName}Languages.en = 'yyy' ’yyy’ is set as the English property value.
$ui.{componentID}.{propertyName}Languages.ja = 'zzz'’zzz’ is set as the Japanese property value.

Example:

$ui.text_field.label = 'xxx';
$ui.text_field.labelLanguages.en = 'yyy';
$ui.text_field.labelLanguages.ja = 'zzz';