From b9ad37c38f19a5b0cfdc23ef6c5b2d9cc4e9fd16 Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Fri, 15 May 2020 09:31:39 +1000 Subject: [PATCH] Locale loading update --- assets/javascripts/wizard-preload.js.es6 | 1 - views/layouts/wizard.html.erb | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) delete mode 100644 assets/javascripts/wizard-preload.js.es6 diff --git a/assets/javascripts/wizard-preload.js.es6 b/assets/javascripts/wizard-preload.js.es6 deleted file mode 100644 index 278cc686..00000000 --- a/assets/javascripts/wizard-preload.js.es6 +++ /dev/null @@ -1 +0,0 @@ -//= require locales/i18n \ No newline at end of file diff --git a/views/layouts/wizard.html.erb b/views/layouts/wizard.html.erb index 2f94a767..0deb4c71 100644 --- a/views/layouts/wizard.html.erb +++ b/views/layouts/wizard.html.erb @@ -12,7 +12,7 @@ <%= discourse_stylesheet_link_tag (mobile_view? ? :mobile_theme : :desktop_theme) %> <%- end %> - <%= preload_script "wizard-preload" %> + <%= preload_script "locales/#{I18n.locale}" %> <%= preload_script "ember_jquery" %> <%= preload_script "wizard-vendor" %> <%= preload_script "wizard-application" %> @@ -20,7 +20,6 @@ <%= preload_script "wizard-custom" %> <%= preload_script "wizard-plugin" %> <%= preload_script "pretty-text-bundle" %> - <%= preload_script "locales/#{I18n.locale}" %> <%= csrf_meta_tags %>