PikachuEXE / i18n-js

It's a small library to provide the I18n translations on the Javascript. It comes with Rails support.
12 stars 2 forks source link

config.middleware.use I18n::JS::Middleware issue in rails 4.1.rc2 #3

Closed xpepermint closed 9 years ago

xpepermint commented 10 years ago

I'm not sure if I use this

config.middleware.use I18n::JS::Middleware

like I should. It does not create files. I have tu use rake i18n:js:export.

PikachuEXE commented 10 years ago

Not sure what are you trying to do... Pre-generate a JS file?

https://github.com/PikachuEXE/i18n-js#rails-app

xpepermint commented 10 years ago

I would like the JS files to be generated on each page refresh (in development).

PikachuEXE commented 10 years ago

This should work... What problem do you have in 4.1.0.rc2?

mathiasuhl commented 9 years ago

well the translation file is empty :/ and i have the config.middleware.use I18n::JS::Middleware in place and in the browser the translation file is been loaded but empty

PikachuEXE commented 9 years ago

Isn't this already outdated? If you are talking about 4.1.* or 4.2.0.beta/rc please open another issue