...
E.g: the accounts-accounting-values widget
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
[...] |
...
legend: "Revenue / Asset", |
...
type: 'Overall Turnover', |
We add these two keys to be translated in the frontend
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
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.
...