committed by
GitHub
parent
d8d6d20793
commit
f25e3e69f8
@@ -2,8 +2,22 @@
|
||||
* from the .env file aren't found in their respective arrays below
|
||||
*/
|
||||
const availableLangs = {
|
||||
client: ['english', 'espanol', 'chinese', 'chinese-traditional'],
|
||||
curriculum: ['english', 'espanol', 'chinese', 'chinese-traditional']
|
||||
client: [
|
||||
'english',
|
||||
'espanol',
|
||||
'chinese',
|
||||
'chinese-traditional',
|
||||
'italian',
|
||||
'portuguese'
|
||||
],
|
||||
curriculum: [
|
||||
'english',
|
||||
'espanol',
|
||||
'chinese',
|
||||
'chinese-traditional',
|
||||
'italian',
|
||||
'portuguese'
|
||||
]
|
||||
};
|
||||
|
||||
// Each client language needs an entry in the rest of the variables below
|
||||
@@ -16,7 +30,9 @@ const i18nextCodes = {
|
||||
english: 'en',
|
||||
espanol: 'es',
|
||||
chinese: 'zh',
|
||||
'chinese-traditional': 'zh-Hant'
|
||||
'chinese-traditional': 'zh-Hant',
|
||||
italian: 'it',
|
||||
portuguese: 'pt-BR'
|
||||
};
|
||||
|
||||
// These are for the language selector dropdown menu in the footer
|
||||
@@ -24,7 +40,9 @@ const langDisplayNames = {
|
||||
english: 'English',
|
||||
espanol: 'Español',
|
||||
chinese: '中文(简体字)',
|
||||
'chinese-traditional': '中文(繁體字)'
|
||||
'chinese-traditional': '中文(繁體字)',
|
||||
italian: 'Italiano',
|
||||
portuguese: 'Português'
|
||||
};
|
||||
|
||||
/* These are for formatting dates and numbers. Used with JS .toLocaleString().
|
||||
@@ -35,7 +53,9 @@ const langCodes = {
|
||||
english: 'en-US',
|
||||
espanol: 'es-419',
|
||||
chinese: 'zh',
|
||||
'chinese-traditional': 'zh-Hant'
|
||||
'chinese-traditional': 'zh-Hant',
|
||||
italian: 'it',
|
||||
portuguese: 'pt-BR'
|
||||
};
|
||||
|
||||
exports.availableLangs = availableLangs;
|
||||
|
Reference in New Issue
Block a user