diff options
| author | cedricnjanga | 2017-09-25 23:58:18 +0200 |
|---|---|---|
| committer | cedricnjanga | 2017-09-26 00:02:54 +0200 |
| commit | 733548a996d5e66c740f59d313eb031ddfcc9116 (patch) | |
| tree | 5bf503daffb85e8cb4dda3f5ff21d3641acebf4e /app/views | |
| parent | 2c681c7cfceaae63e4fa76c15afc05fd3bbf8942 (diff) | |
| download | chouette-core-733548a996d5e66c740f59d313eb031ddfcc9116.tar.bz2 | |
Refs #4603 : Add translations to React Timetable app
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/time_tables/edit.html.slim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/time_tables/edit.html.slim b/app/views/time_tables/edit.html.slim index ed55dc4e3..cc6f31489 100644 --- a/app/views/time_tables/edit.html.slim +++ b/app/views/time_tables/edit.html.slim @@ -11,6 +11,6 @@ = javascript_tag do | window.actionType = "#{raw params[:action]}"; - | window.I18n = #{(I18n.backend.send(:translations).to_json).html_safe}; + | window.I18n = #{(I18n.backend.send(:translations)[I18n.locale].to_json).html_safe}; = javascript_include_tag 'es6_browserified/time_tables/index.js' |
