Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

E.g: the accounts-accounting-values widget

Code Block
languageruby
themeRDark
linenumberstrue
[...]

...


legend: "Revenue / Asset",

...


type: 'Overall Turnover',

We add these two keys to be translated in the frontend

Code Block
languageruby
themeRDark
linenumberstrue
legend_key: "impac.widget.accounting_values.turnover.legend",

...


type_key: "impac.widget.accounting_values.turnover.type",

The backend will then take care of the translation of these keys and falls back into the 'normal' field if no translation exist.

...