From 333c027b0b59801f1be3f7e0ab3344738b6bc2bd Mon Sep 17 00:00:00 2001 From: Antonin Delpeuch Date: Wed, 21 Nov 2018 18:26:55 +0000 Subject: [PATCH] Init i18n with the locale set by the user --- main/webapp/modules/core/scripts/index.js | 1 + main/webapp/modules/core/scripts/project.js | 1 + 2 files changed, 2 insertions(+) diff --git a/main/webapp/modules/core/scripts/index.js b/main/webapp/modules/core/scripts/index.js index 3d26b185b..1a22bfba2 100644 --- a/main/webapp/modules/core/scripts/index.js +++ b/main/webapp/modules/core/scripts/index.js @@ -53,6 +53,7 @@ $.ajax({ } }); $.i18n().load(dictionary, lang); +$.i18n({ locale: lang }); // End internationalization Refine.selectActionArea = function(id) { diff --git a/main/webapp/modules/core/scripts/project.js b/main/webapp/modules/core/scripts/project.js index 9e964b5d7..45e04132c 100644 --- a/main/webapp/modules/core/scripts/project.js +++ b/main/webapp/modules/core/scripts/project.js @@ -50,6 +50,7 @@ $.ajax({ } }); $.i18n().load(dictionary, lang); +$.i18n({ locale: lang }); // End internationalization var Refine = {