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

Can we think to seperate translation into self file. #333

Open
mazipan opened this issue Mar 16, 2017 · 9 comments
Open

Can we think to seperate translation into self file. #333

mazipan opened this issue Mar 16, 2017 · 9 comments

Comments

@mazipan
Copy link
Contributor

mazipan commented Mar 16, 2017

I just think the translation become bigger.
I think it's better to create file with each translation.
Let say :

  • jquery-date-range-picker-EN.
  • jquery-date-range-picker-ID.

It just my thought.
If there is an idea, please let me know

@mijrs
Copy link

mijrs commented Mar 17, 2017

I simply delete the languages i don't use.

@holtkamp
Copy link
Collaborator

@mazipan you are right, only thing missing is time to work on this. So a PR would be great...

@mazipan
Copy link
Contributor Author

mazipan commented Mar 17, 2017

yes I do so @mijrs
but will be great if we can download from repo with just only language we want

@holtkamp
Copy link
Collaborator

holtkamp commented Mar 29, 2017

@mazipan any suggestion on how to do this? Maybe you can search some other JS projects for "inspiration" 😄 , something like this? http://stackoverflow.com/questions/36253578/how-do-i-change-the-language-to-multiple-files-instead-of-one-in-i18next

Suggestions are welcome

@mazipan
Copy link
Contributor Author

mazipan commented Mar 29, 2017

Sorry ya @holtkamp I have less time to create PR for this issues, but I think the way momentjs (https://github.com/moment/moment/) done with their locale is good enough.
They create some locale file with localization, we can choose for any locale and just import to main file.

@holtkamp
Copy link
Collaborator

@mazipan ok, thanks for the pointer. For me it is not really a priority to work on this, but maybe on a rainy day 😄

@holtkamp
Copy link
Collaborator

@mazipan I had a glance at the i8n approach that https://github.com/moment/moment/ takes, and to be honest, it takes me too long to understand...

@holtkamp
Copy link
Collaborator

holtkamp commented Mar 29, 2017

This seems usable: http://i18njs.com, but introduces an additional dependency 😞

@holtkamp
Copy link
Collaborator

@mazipan / others can you guys have a look at: #336

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

3 participants