From 111877db1f97271d667bdd05139c798cf7fd26d2 Mon Sep 17 00:00:00 2001 From: Dan Ungureanu Date: Fri, 12 Jun 2020 14:48:44 +0300 Subject: [PATCH] FIX: Load I18n first in show_confirm_new_email page --- app/views/users_email/show_confirm_new_email.html.erb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/views/users_email/show_confirm_new_email.html.erb b/app/views/users_email/show_confirm_new_email.html.erb index ba5102e13d0..dc56120f9a5 100644 --- a/app/views/users_email/show_confirm_new_email.html.erb +++ b/app/views/users_email/show_confirm_new_email.html.erb @@ -77,9 +77,11 @@ <%end%> <% end%> - <%= preload_script "ember_jquery" %> <%= preload_script "locales/#{I18n.locale}" %> - <%= preload_script "locales/i18n" %> + <%- if ExtraLocalesController.client_overrides_exist? %> + <%= preload_script_url ExtraLocalesController.url('overrides') %> + <%- end %> + <%= preload_script 'ember_jquery' %> <%= preload_script "discourse/app/lib/webauthn" %> <%= preload_script "confirm-new-email/confirm-new-email" %> <%= preload_script "confirm-new-email/bootstrap" %>