From ac943c356e58abd573cbc189b6b82103cd20aba3 Mon Sep 17 00:00:00 2001 From: Ramiro Saenz Date: Wed, 24 May 2017 18:47:16 -0300 Subject: [PATCH] Added Ext JS localization support :flags: --- app.json | 1 + app/Application.js | 3 +++ 2 files changed, 4 insertions(+) diff --git a/app.json b/app.json index abef42a1..8f2fc7b2 100644 --- a/app.json +++ b/app.json @@ -40,6 +40,7 @@ * ] */ "requires": [ + "ext-locale" ], /** diff --git a/app/Application.js b/app/Application.js index 23253f48..2b30c232 100644 --- a/app/Application.js +++ b/app/Application.js @@ -31,6 +31,9 @@ Ext.define('Rambox.Application', { ga_storage._trackPageview('/index.html', 'main'); ga_storage._trackEvent('Versions', require('electron').remote.app.getVersion()); + // Load language for Ext JS library + Ext.Loader.loadScript({url: Ext.util.Format.format("ext/packages/ext-locale/build/ext-locale-{0}.js", localStorage.getItem('locale-auth0') || 'en')}); + // Initialize Auth0 Rambox.ux.Auth0.init();