vue-cli-plugin-i18n icon indicating copy to clipboard operation
vue-cli-plugin-i18n copied to clipboard

Missing translation CI

Open soullivaneuh opened this issue 7 years ago • 6 comments

The library is already warning on the console about missing translations.

This is great, but I would like to setup a check on GitLab CI.

Is it planned to have a CLI checker?

Thanks.

soullivaneuh avatar Aug 22 '18 13:08 soullivaneuh

If you are using some type checker like Flow or TypeScript, You can check missing translations before runtime by using typed_i18n.

Please check it out a repository if you are interested https://github.com/kogai/typed_i18n

@kazupon Sorry for advertising my own tool :wink:

kogai avatar Aug 22 '18 14:08 kogai

Hmm 🤔, I might create a plugin for eslint. 👮

kazupon avatar Aug 22 '18 15:08 kazupon

@kogai Thanks for the link, but I don't use Flow nor TypeScript (yet?).

@kazupon Thanks! Can this be done with eslint ? :thinking:

soullivaneuh avatar Aug 23 '18 08:08 soullivaneuh

Hi!

In my company we had more or less the same needing and we wanted to use this plugin (https://github.com/pixari/vue-i18n-extract) as a git hook.

I'll keep you posted as soon as we implement it just to share our experience.

pixari avatar Feb 08 '19 02:02 pixari

move to vue-cli-plugin-i18n issues, due to be able to provide i18n command of CLI Service

kazupon avatar Feb 10 '19 16:02 kazupon

Hi,

Any ideas on how this feature would be implemanted? Will it render a Vue instance to check for errors? Parse the code and compare with the locales?

WilliamDASILVA avatar Feb 18 '19 16:02 WilliamDASILVA