-
Notifications
You must be signed in to change notification settings - Fork 12
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
Support for .js translation files #10
Comments
Indeed, translations are only in json and in yaml files for now. Could you please give some examples of how you use translations in js files? |
I believe I'm incurring in the same issue: With the Vue i18n plugin, one must declare an My structure is like this:
And Glad to contribute, if someone can assist me getting started (I've never developed an IntelliJ plugin). |
Hi, Carlos! Thanks for your interest to the project! Contributions are welcome, so if you want to try to implement this feature, start investigating at If you have any questions don't hesitate to ask me! Regards, Evgeniy |
Hi, @carloschida! Regards, Evgeniy |
+1 I'm using React instead of Vue, but .js (or .ts) file support as translation sources would be nice. For me, they are just in the same format as the json files, but instead of JSON, it is a plain Javascript object containing the translations exported with module.exports. Js files are nicer as you can have comments and easily do overrides/calculated translations based on environment or other stuff. |
+1👍 |
In the readme I only see examples of translations based on .json files.
For my project I need to use .js files that export an object.
Maybe there already is support for this and I just configured it wrongly?
Thanks for your work.
The text was updated successfully, but these errors were encountered: