kind of works with importmaps

This commit is contained in:
Philipp Rothmann 2023-02-09 11:48:17 +01:00
parent e2e91ae33b
commit bcc88cd7f4
5 changed files with 8 additions and 15 deletions

View file

@ -20,12 +20,11 @@
\==================================================
/ Placed at the end of the document so the pages load faster
= javascript_importmap_tags
= javascript_include_tag "application_legacy"
-# = javascript_include_tag "application"
-# :javascript
-# I18n.defaultLocale = "#{I18n.default_locale}";
-# I18n.locale = "#{I18n.locale}";
-# I18n.fallbacks = true;
-# = yield(:javascript)
:javascript
I18n.defaultLocale = "#{I18n.default_locale}";
I18n.locale = "#{I18n.locale}";
I18n.fallbacks = true;
= yield(:javascript)
= raw FoodsoftConfig[:webstats_tracking_code]