Skip to main content

Translations

Override translations

You can define your own translations within the config object. In the following example we overwrite the labels of purposes and the title of the block.

See translations structure

To see translations structure and understand which keys to override, make sure that debug option is turned on. Read more here. Then click on the Translations link in the Debug section.

Translations in Debug Section

Use conditionals in translations

You can use conditions for all available translation keys if needed. Only the first one value, that matches the condition, will be returned.

Interpolated translations

You can put any of the supported methods and expressions by the conditionals parser, into a translation by using the %% around the expression.

The translated expression below would result in Selected 5 CHF.

You can reference other translations by using the trans() and transUnescaped() helpers.

To avoid double HTML escaping, use transUnescaped() for HTML content – such translation keys usually have _html suffix in their name.
Use trans() helper for other non-HTML text translations.

The translated expression below would result in Selected currency: Swiss Francs.