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

Compile translations to separate files based on language #36

Closed
lxsameer opened this issue Jun 24, 2014 · 1 comment
Closed

Compile translations to separate files based on language #36

lxsameer opened this issue Jun 24, 2014 · 1 comment

Comments

@lxsameer
Copy link

Hi folks.
Currently I use 4 different languages in my project which is a big one and have lots of strings. So the compiled javascript file is a fat js file. So if my user wants to checkout English website he have to take other 3 languages translation object to which is BAD because there is no need to fetch those translations.

Is there any solution to fix this ? for example compile each language strings to different js file.

@rubenv
Copy link
Owner

rubenv commented Jun 24, 2014

Perfectly possible!

Just configure grunt to compile one file per po file.

http://gruntjs.com/configuring-tasks#building-the-files-object-dynamically

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