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
First of all: thanks for your work. It is a hge help in manage the translations.
My problem:
Maybe I do not understand something but array values in .json files is erased when I run your library. This is how I call ngx-translate-extract:
Hi,
First of all: thanks for your work. It is a hge help in manage the translations.
My problem:
Maybe I do not understand something but array values in .json files is erased when I run your library. This is how I call ngx-translate-extract:
ngx-translate-extract -f namespaced-json -i ./src/**/*.{ts,html} -o ./src/assets/i18n/messages.{de,en,es,fr,it,zh-Hans}.json -s -n -c
All works great and as I want, except one thing: if the value provided in a translations in an array it will be erased.
I search a bit and try to remove some parameter, in the end I discover that the array is split.
Example.
In my messages.en.json I wrote this entry:
I run the script above without the -c parameter. The final messages.en.json is this:
Of course, if the -c is present the dayNamesMin. will be all deleted
What is my error? the array is a valid json type and Ngx-translate support it.
The text was updated successfully, but these errors were encountered: