about summary refs log tree commit diff
path: root/app/views
diff options
context:
space:
mode:
authorNolan Lawson <nolan@nolanlawson.com>2017-05-22 06:06:06 -0700
committerEugen Rochko <eugen@zeonfederated.com>2017-05-22 15:06:06 +0200
commit9d04de1c8d3efb745cfcae3519cee016751b86ec (patch)
tree8242677e98f04c66acf6c0531d0741a238b3c360 /app/views
parent73e4468ff31337d1a0afdc70e1717cb5cfae2e82 (diff)
Only load Intl data for current language (#3130)
* Only load Intl data for current language

* Extract common chunk only from application.js and public.js

* Generate locale packs, avoid caching on window object
Diffstat (limited to 'app/views')
-rwxr-xr-xapp/views/layouts/application.html.haml1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml
index 21590ae3c..f991bc74f 100755
--- a/app/views/layouts/application.html.haml
+++ b/app/views/layouts/application.html.haml
@@ -20,6 +20,7 @@
 
     = stylesheet_pack_tag 'application', media: 'all'
     = javascript_pack_tag 'common', integrity: true, crossorigin: 'anonymous'
+    = javascript_pack_tag "locale_#{I18n.locale}", integrity: true, crossorigin: 'anonymous'
     = csrf_meta_tags
 
     = yield :header_tags