Skip to content

A platform for community discussion. Free, open, simple.

PERF: Preload `JsLocaleHelper.load_translations` for default locale. (#13041)

Alan Guo Xiang Tanf05f5fde0ffa
diff --git a/lib/discourse.rb b/lib/discourse.rb
index 6d188b98e8e..ea2a3cbafda 100644
--- a/lib/discourse.rb
+++ b/lib/discourse.rb
@@ -933,6 +933,8 @@ module Discourse
# this will force Cppjieba to preload if any site has it
# enabled allowing it to be reused between all child processes
Search.prepare_data("test")
+
+ JsLocaleHelper.load_translations(SiteSetting.default_locale)
end
[