Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails I18n-js: missing translation

I'm using I18n-js gem for localiztion of js files. I've installed it with help of gem Readme and it worked for the first time.

The problem is when I add new translations to my translations.js file with rake task rake i18n:js:export translations not showing in my templates - only missing translation (development and production has same situation), although translations.js contents all the new translations.

application.js

//= require i18n
//= require i18n/translations

What did I miss? If you need more information please comment about it. Thanks

like image 758
Pavel Babin Avatar asked Jan 26 '15 21:01

Pavel Babin


1 Answers

Run rake tmp:clear

I faced the same issue and this command solved it.

like image 79
oansari Avatar answered Sep 18 '22 17:09

oansari