mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Render i18n-js config inside darkswarm and admin layouts
This commit is contained in:
committed by
Maikel Linke
parent
2637574c93
commit
f396d30747
@@ -0,0 +1,3 @@
|
||||
/ insert_before "div#wrapper"
|
||||
|
||||
= render "layouts/i18n_script"
|
||||
4
app/views/layouts/_i18n_script.html.haml
Normal file
4
app/views/layouts/_i18n_script.html.haml
Normal file
@@ -0,0 +1,4 @@
|
||||
%script
|
||||
I18n.default_locale = "#{I18n.default_locale}";
|
||||
I18n.locale = "#{I18n.locale}";
|
||||
I18n.fallbacks = "default_locale";
|
||||
@@ -17,7 +17,7 @@
|
||||
= split_stylesheet_link_tag "darkswarm/all"
|
||||
= javascript_include_tag "darkswarm/all"
|
||||
|
||||
|
||||
= render "layouts/i18n_script"
|
||||
= render "layouts/bugherd_script"
|
||||
= csrf_meta_tags
|
||||
|
||||
|
||||
Reference in New Issue
Block a user