-
Notifications
You must be signed in to change notification settings - Fork 15
Client Side Translation
yottanami edited this page Oct 12, 2014
·
4 revisions
For creating Javascript translation files should install this packages in your project locally :
npm install grunt --save-dev
npm install grunt-angular-gettext --save-dev
Now you should copy files by this generator :
rails generate faalis:js:install_i18n
And then you can collect translation strings by running the task of i18n :
bundle exec rake js:i18n:collect
After that you need to compile the translations
bundle exec rake js:i18n:compile
Don't forget to add /node_modules
in your .gitignore file