Added language settings

This commit is contained in:
Pierre HUBERT
2018-08-15 08:51:02 +02:00
parent c633ce13b5
commit 6e0b3a4345
7 changed files with 201 additions and 0 deletions

View File

@ -1369,6 +1369,13 @@ var ComunicWeb = {
//TODO : implement
},
/**
* Language section
*/
language: {
//TODO : implement
},
/**
* Security section
*/

View File

@ -6,6 +6,22 @@
ComunicWeb.common.langs = {
/**
* Languages list
*/
list: {
en: {
name: "English",
local_name: "English"
},
fr: {
name: "French",
local_name: "Français"
}
},
/**
* Local storage lang item name
*/
@ -20,6 +36,7 @@ ComunicWeb.common.langs = {
* Default langage (updated on init)
*/
__defaultLang: "en",
/**
* Get current language