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

Allow generation of keys via CLI without having to manually input strings #19

Open
titusdecali opened this issue Nov 25, 2020 · 4 comments

Comments

@titusdecali
Copy link

I find that the biggest value that vue-translation-manager gives me is the ability to replace all strings in my project with translation keys automatically. After I have these keys I use Google-translate via BabelEdit to translate from my starting language to others.

That being said, I currently place a coffee cup on my ENTER key and walk away for a few minutes while it finishes converting keys, however I wish I could just have it do this without holding enter, and without prompting me to add text for other translations.

Is there currently a better way to do this than I am already doing?

If not, I'd really appreciate this feature.

@MaxGfeller
Copy link
Contributor

Hi @titusdecali, sorry for only getting back to you now.

Ha, great solution! But i agree, that would be a good feature. I think it shouldn't be too hard to implement but unfortunately i don't have that much time these days. Would you be up for a PR?

@titusdecali
Copy link
Author

Unfortunately, I'm neck-deep in client work, but I'm definitely interested to look into your source and build on it at a later date. I wrote an article that outlines my current workflow (including VTM), and I imagine I'll be doing this kind of work much in the future so would like to see it expanded upon.

Here's the article, in case you're interested in a quick read (friend link, so no paywall):
https://medium.com/better-programming/vue-i18n-ultimate-guide-fb3d9db48c94?source=friends_link&sk=5e494b520cb646ebb6c128b0c7c1f40c

@MaxGfeller
Copy link
Contributor

The workflow looks great! If you ping me when you have more time (and are interested!) i'd love to discuss v2 with you. I've always built this just for our own use case and it would be good having some additional opinions and inputs.

BTW, regarding your initial question: you could build this yourself using the programmatic API. It's not documented but also not that complicated, if you have a look at https://github.com/cyon/vue-translation-manager/blob/master/index.js

@titusdecali
Copy link
Author

I'm excited to jump into this when I get some time. I'll definitely hit you up when I'm ready to move forward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants