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
It would be great id you could provide a function that can check whether the translation files are complete (and maybe also sorted correctly if --sort is enabled).
The intended usage where I think this can help is in the CI to check whether everything was translated. Alternatively you can just execute a merge in the CI and try to check, whether git thinks they changed, but that would probably be a pretty annoying and wasteful thing to do (and easy to misconfigure).
It would be great id you could provide a function that can check whether the translation files are complete (and maybe also sorted correctly if
--sort
is enabled).The intended usage where I think this can help is in the CI to check whether everything was translated. Alternatively you can just execute a merge in the CI and try to check, whether git thinks they changed, but that would probably be a pretty annoying and wasteful thing to do (and easy to misconfigure).
With that function I'd expect something like:
ngx-translate-extract --format-indentation ' ' --sort --input ./src/app --output ./public/i18n/{en,de}.json --null-as-default-value --check --format namespaced-json
And it'd say something like this:
or
or
or
or
(And exit with a non-zero exit status in the error cases)
I think that'd help people to not forget to translate something.
The text was updated successfully, but these errors were encountered: