You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
When loading a translation file that contains non-string values (such as numbers or booleans), these values do not get properly translated or rendered in the application.
For example, given the following JSON translation file:
Issue:
Non-string values are not being translated
Description:
When loading a translation file that contains non-string values (such as numbers or booleans), these values do not get properly translated or rendered in the application.
For example, given the following JSON translation file:
If you attempt to translate these keys in the template:
Only "stringValue" will be translated (i.e., "Foo bar" will be displayed), while "numericValue" and "booleanValue" will not be processed as expected.
Expected behavior:
All values, including non-string values (numbers, booleans, etc.), should be handled consistently.
Suggested solution:
It would be helpful to automatically convert non-string values (such as numbers and booleans) to strings.
The text was updated successfully, but these errors were encountered: