Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discover which translations are missing #100

Closed
epaezrubio opened this issue Oct 7, 2019 · 6 comments
Closed

Discover which translations are missing #100

epaezrubio opened this issue Oct 7, 2019 · 6 comments
Labels
0.x vue-i18n-ally

Comments

@epaezrubio
Copy link

image

In the panel above I can see, for instance, that 4 French translations are missing. However I can't know which ones they are and if you consider translation files of some hundreds of lines, it can be hard to find them.

Can we make each of the languages expandable to see the specific missing translations in detail?

@antfu
Copy link
Contributor

antfu commented Oct 8, 2019

@epaezrubio Great idea!
I am on vacation currently. Will dig into that next week.
Thanks!

@farfromrefug
Copy link
Contributor

I really need that too. An amazing feature would be to automatically add all missing keys in the JSON files.
Why? Because when you work with tools like weblate, it wont "discover" missing translations. adding empty entries make them discovered by tools like weblate (others too)

@antfu
Copy link
Contributor

antfu commented Nov 7, 2019

Just released v0.30.0 with this feature implemented!

Please feel free to share your thoughts then we can do further enhancement!

@farfromrefug
Copy link
Contributor

@antfu great! i see the the translate all missing button for the non "en" language.
Could you add a button just to "create" the missing keys (with "" value) ? It shoud be available for all languages
BTW how do you treat translation value "" ? do you treat it as a missing translation? (that is what i would hope for).

I am starting to use weblate to allow my clients to translate my apps. Weblate only way of knowing what translation are needed is to read the json files and see which keys have an empty value ("") or invalid value (wrong quote ...)
So what i am hopping for is for your extension to help me auto generate those "missing" keys in all json files.

@antfu
Copy link
Contributor

antfu commented Nov 8, 2019

@farfromrefug Sure! Thanks for the advice.

It's implemented in v0.32.0. 🎉

@antfu
Copy link
Contributor

antfu commented Nov 13, 2019

@epaezrubio Closing this for now. If you have any problems or suggestions, feel free to reopen this or create n new issue.

@antfu antfu closed this as completed Nov 13, 2019
@antfu antfu added the 0.x vue-i18n-ally label Nov 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.x vue-i18n-ally
Development

No branches or pull requests

3 participants