Switch to using a common runtime chunk rather than locales

This commit is contained in:
Claire
2023-06-10 17:43:13 +02:00
parent 8c26d49cbd
commit 34efd1a24c
6 changed files with 5 additions and 28 deletions

View File

@@ -12,7 +12,7 @@
%link{ rel: 'dns-prefetch', href: storage_host }/
= render_initial_state
= javascript_pack_tag 'locales', crossorigin: 'anonymous'
= javascript_pack_tag 'common', crossorigin: 'anonymous'
- if @theme
- if @theme[:supported_locales].include? I18n.locale.to_s
= preload_pack_asset "locales/#{@theme[:flavour]}/#{I18n.locale}-json.js"