app/views/layouts/voluntary/ember_js.html.erb in voluntary-ember_js-0.0.1 vs app/views/layouts/voluntary/ember_js.html.erb in voluntary-ember_js-0.0.2
- old
+ new
@@ -57,9 +57,13 @@
<!--
# TODO: don't override voluntary_ember_js' emberjs.html.erb and override ApplicationHelper instead
#= javascript_include_tag *voluntary_ember_js_javascripts %>
-->
<%= javascript_include_tag *voluntary_ember_js_javascripts %>
+ <script type="text/javascript">
+ Volontariat.locale = '<%= I18n.locale.to_s %>';
+ Volontariat.translations = <%= I18n.backend.send(:translations)[I18n.locale].to_json.html_safe %>;
+ </script>
<%= javascript_tag do %>
<%= yield :top_javascript %>
$(function() {
<%= yield(:document_ready) %>
\ No newline at end of file