FIX: Wizard didn't load translations correctly

* Translations from the js.* namespace were not found, because the i18n-patches were not loaded.
* The extra-locales didn't use a hash in the URL.
This commit is contained in:
Gerhard Schlager 2018-09-05 14:36:30 +02:00
parent 2c5d9269a0
commit 2801376df5
2 changed files with 3 additions and 2 deletions

View File

@ -3,6 +3,7 @@
//= require ./ember-addons/macro-alias
//= require ./ember-addons/ember-computed-decorators
//= require_tree ./discourse-common
//= require i18n-patches
//= require_tree ./select-kit
//= require wizard/router
//= require wizard/wizard

View File

@ -2,11 +2,11 @@
<head>
<%= discourse_stylesheet_link_tag :wizard, theme_ids: nil %>
<%= preload_script 'ember_jquery' %>
<%= preload_script "locales/#{I18n.locale}" %>
<%= preload_script 'wizard-vendor' %>
<%= preload_script 'wizard-application' %>
<%= preload_script "locales/#{I18n.locale}" %>
<%= render partial: "common/special_font_face" %>
<script src="<%= Discourse.base_uri %>/extra-locales/wizard"></script>
<script src="<%= ExtraLocalesController.url("wizard") %>"></script>
<%= csrf_meta_tags %>
<meta name="discourse-base-uri" content="<%= Discourse.base_uri %>">