From ba0abae333952f34752f19800354d4f19f37814b Mon Sep 17 00:00:00 2001 From: Abbe98 Date: Wed, 4 Jun 2025 15:41:48 +0200 Subject: [PATCH] initiate I18N using core extension point --- .../index/commons-importing-controller.js | 20 +------------------ 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/module/scripts/index/commons-importing-controller.js b/module/scripts/index/commons-importing-controller.js index 98895a2..b9d7912 100644 --- a/module/scripts/index/commons-importing-controller.js +++ b/module/scripts/index/commons-importing-controller.js @@ -1,22 +1,4 @@ -//Internationalization init -var lang = navigator.language.split("-")[0] - || navigator.userLanguage.split("-")[0]; -var dictionary = ""; -$.ajax({ - url : "command/core/load-language?", - type : "POST", - async : false, - data : { - module : "commons", -// lang : lang - }, - success : function(data) { - dictionary = data['dictionary']; - lang = data['lang']; - } -}); -$.i18n().load(dictionary, lang); -// End internationalization +I18NUtil.init("commons"); Refine.CommonsImportingController = function(createProjectUI) { this._createProjectUI = createProjectUI;