Commit 3be5b998

mo <mo.khan@gmail.com>
2017-09-08 02:16:07
add script to load i18n locale.
1 parent b1305d9
Changed files (1)
app
app/views/layouts/application.html.erb
@@ -21,6 +21,11 @@
 <%= javascript_include_tag "application" %>
 <%= render "layouts/embedly"%>
 <%= yield :javascript %>
+<script type="text/javascript">
+  I18n.defaultLocale = "<%= I18n.default_locale %>";
+  I18n.locale = "<%= I18n.locale %>";
+  I18n.fallbacks = true;
+</script>
 <%= csrf_meta_tags %>
 </head>
 <body class="<%= params[:controller].parameterize %> <%= params[:action] %>">