use i18n-js

This commit is contained in:
wvengen 2013-10-04 14:53:22 +02:00
parent a9dff7f1df
commit 64a597c689
10 changed files with 33 additions and 24 deletions

View file

@ -22,7 +22,9 @@
Javascripts
\==================================================
/ Placed at the end of the document so the pages load faster
:javascript
I18n = {locale: '#{j(I18n.locale.to_s)}'}
= javascript_include_tag "application"
:javascript
I18n.defaultLocale = "#{I18n.default_locale}";
I18n.locale = "#{I18n.locale}";
I18n.fallbacks = true;
= yield(:javascript)