easy-i18n
easy-i18n copied to clipboard
JSON String to Number
when add a new translate。the json file String will be change to number,then show error
@marhali help
Works as designed. If the value can be parsed as a number, the number representation will be used. I could add a configuration option to always save values as strings. But I see a few edge cases here:
- Numbers (float, int, double)
- Booleans
thinks 。parsed as a number in vue-i118n has problem
In ARB file using numbers gives error.
A configuration option for always using numbers would be great, as vue-i18n can't read numbers from my translation files :/
A configuration option for always using numbers would be great, as vue-i18n can't read numbers from my translation files :/
Did you get around this issue or have you had to remove the plugin?
A configuration option for always using numbers would be great, as vue-i18n can't read numbers from my translation files :/
Did you get around this issue or have you had to remove the plugin?
I didn't get around it, but for my usecase i could prepend a descriptive string to fix it 😅
A configuration option for always using numbers would be great, as vue-i18n can't read numbers from my translation files :/
Did you get around this issue or have you had to remove the plugin?
I didn't get around it, but for my usecase i could prepend a descriptive string to fix it 😅
That's so upsetting, we were just getting excited about this tool and then realized it just stops our entire application from even starting.
The worst problem for me is a phone number prefix.
Example, if i try to use:
"phone.placeholder": "+420"
after updating anything else, it is rewritten to
"phone.placeholder": 420
and the "+" is deleted.
if i try to escape it, and write "\+420" after first update it is rewritten to "+420" after any additional update it is rewritten to number