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

Support for js based locales #32

Open
stevelacey opened this issue Sep 30, 2019 · 4 comments
Open

Support for js based locales #32

stevelacey opened this issue Sep 30, 2019 · 4 comments
Labels
Status: Proposal Request for comments Type: Feature Includes new features

Comments

@stevelacey
Copy link
Contributor

I switched my locale files from js to json to get the benefits of this package, there are still gaps though, for example, I build some translations dynamically out of the main set, which means I am now seeing erroneous no-missing-keys warnings, it'd be great to be able to use js-based locales

@kazupon kazupon added Status: Proposal Request for comments Type: Feature Includes new features labels Sep 30, 2019
@stevelacey
Copy link
Contributor Author

stevelacey commented Jan 11, 2020

After a few months the translations started to get unwieldy, so I've now broken them up into multiple json files that I stitch together with path-based rules for vue-i18n, and again I'm running into issues here, it'd be great there was an ability to supply a messages object ala vue-i18n so that I could thus construct it however I want and feed it into this plugin.

@fairking
Copy link

Also would be nice to have typescript resources (strong type):
and something like: $t(r => r.My.Resource.MyString) with IntelliSense and type check.

@jagged3dge
Copy link

I'm looking for support for .TS based locales. That's just one step farther from js based locales.

@krausvo1
Copy link

krausvo1 commented Aug 2, 2022

Also looking for support for locales in *.ts files. It took me a while to realize it's not supported yet (mainly thanks to this issue), perhaps a sentence or two in documentation mentioning supported file types for locales might be helpful for future users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Proposal Request for comments Type: Feature Includes new features
Projects
None yet
Development

No branches or pull requests

5 participants