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

Resolve custom filename #311

Open
kevingilbert100 opened this issue May 24, 2017 · 2 comments
Open

Resolve custom filename #311

kevingilbert100 opened this issue May 24, 2017 · 2 comments

Comments

@kevingilbert100
Copy link

I'd like to have a way to select a custom locale file somehow, I was looking for some sort of resolve option I could inject some code in but couldn't seem to find anything.

Example..
setLocale -> en-US

// result picks from multiple files
en-US-1
en-US-2
en-US-3

Obviously, this isn't a product requirements for this module out the door, but the ability to inject such capabilities into it would be very useful.

@SamBellerose
Copy link

SamBellerose commented May 26, 2017

I was wondering also, is there a way to use i18n's local folder and create subfolders like home {en.json, fr.json} and having an other one called let's say product {en.json, fr.json} ?

What's the best way to work with huge amount of text ?

@kevingilbert100
Copy link
Author

@SamBellerose So in the documentation, you can change the extension to (.js). So that being said you could include some custom logic to separate out different groups of translations as long as the main en-US.js file exports an object synchronously

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