2021-06-15 23:07:52 +05:30
|
|
|
// ---------------------------------------------------------------------------
|
2021-11-19 14:19:40 +00:00
|
|
|
import { SuperBlocks } from '../certification-settings';
|
2021-06-15 23:07:52 +05:30
|
|
|
/*
|
|
|
|
* List of languages with localizations enabled for builds.
|
|
|
|
*
|
|
|
|
* Client is the UI, and Curriculum is the Challenge Content.
|
|
|
|
*
|
|
|
|
* An error will be thrown if the CLIENT_LOCALE and CURRICULUM_LOCALE variables
|
2020-12-16 02:02:52 -06:00
|
|
|
* from the .env file aren't found in their respective arrays below
|
|
|
|
*/
|
2021-11-19 14:19:40 +00:00
|
|
|
export const availableLangs = {
|
2021-07-19 10:57:23 +05:30
|
|
|
client: [
|
|
|
|
'english',
|
|
|
|
'espanol',
|
|
|
|
'chinese',
|
|
|
|
'chinese-traditional',
|
|
|
|
'italian',
|
|
|
|
'portuguese'
|
|
|
|
],
|
2021-06-15 00:49:18 -07:00
|
|
|
curriculum: [
|
|
|
|
'english',
|
|
|
|
'espanol',
|
|
|
|
'chinese',
|
|
|
|
'chinese-traditional',
|
|
|
|
'italian',
|
|
|
|
'portuguese'
|
|
|
|
]
|
2020-12-16 02:02:52 -06:00
|
|
|
};
|
|
|
|
|
2021-06-15 23:07:52 +05:30
|
|
|
/*
|
|
|
|
* List of certifications with localization enabled in their world language.
|
|
|
|
*
|
|
|
|
* These certifications have been approved 100% on Crowdin at least during
|
|
|
|
* their launch, and hence meet the QA standard to be published live. Other
|
|
|
|
* certifications which have not been audited & approved will fallback to
|
|
|
|
* English equivalent.
|
|
|
|
*/
|
2021-11-19 14:19:40 +00:00
|
|
|
export const auditedCerts = {
|
2021-06-15 23:07:52 +05:30
|
|
|
espanol: [
|
2021-11-19 14:19:40 +00:00
|
|
|
SuperBlocks.RespWebDesign,
|
|
|
|
SuperBlocks.JsAlgoDataStruct,
|
|
|
|
SuperBlocks.FrontEndDevLibs,
|
|
|
|
SuperBlocks.DataVis,
|
|
|
|
SuperBlocks.BackEndDevApis
|
2021-06-15 23:07:52 +05:30
|
|
|
],
|
|
|
|
chinese: [
|
2021-11-19 14:19:40 +00:00
|
|
|
SuperBlocks.RespWebDesign,
|
|
|
|
SuperBlocks.JsAlgoDataStruct,
|
|
|
|
SuperBlocks.FrontEndDevLibs,
|
|
|
|
SuperBlocks.DataVis,
|
|
|
|
SuperBlocks.BackEndDevApis,
|
|
|
|
SuperBlocks.QualityAssurance,
|
|
|
|
SuperBlocks.SciCompPy,
|
|
|
|
SuperBlocks.DataAnalysisPy,
|
|
|
|
SuperBlocks.InfoSec,
|
|
|
|
SuperBlocks.MachineLearningPy
|
2021-06-15 23:07:52 +05:30
|
|
|
],
|
|
|
|
'chinese-traditional': [
|
2021-11-19 14:19:40 +00:00
|
|
|
SuperBlocks.RespWebDesign,
|
|
|
|
SuperBlocks.JsAlgoDataStruct,
|
|
|
|
SuperBlocks.FrontEndDevLibs,
|
|
|
|
SuperBlocks.DataVis,
|
|
|
|
SuperBlocks.BackEndDevApis,
|
|
|
|
SuperBlocks.QualityAssurance,
|
|
|
|
SuperBlocks.SciCompPy,
|
|
|
|
SuperBlocks.DataAnalysisPy,
|
|
|
|
SuperBlocks.InfoSec,
|
|
|
|
SuperBlocks.MachineLearningPy
|
2021-06-15 23:07:52 +05:30
|
|
|
],
|
|
|
|
italian: [
|
2021-11-19 14:19:40 +00:00
|
|
|
SuperBlocks.RespWebDesign,
|
|
|
|
SuperBlocks.JsAlgoDataStruct,
|
|
|
|
SuperBlocks.FrontEndDevLibs,
|
|
|
|
SuperBlocks.DataVis,
|
|
|
|
SuperBlocks.BackEndDevApis,
|
|
|
|
SuperBlocks.QualityAssurance,
|
|
|
|
SuperBlocks.SciCompPy,
|
|
|
|
SuperBlocks.DataAnalysisPy,
|
|
|
|
SuperBlocks.InfoSec,
|
|
|
|
SuperBlocks.MachineLearningPy
|
2021-06-15 23:07:52 +05:30
|
|
|
],
|
2021-07-19 10:57:23 +05:30
|
|
|
portuguese: [
|
2021-11-19 14:19:40 +00:00
|
|
|
SuperBlocks.RespWebDesign,
|
|
|
|
SuperBlocks.JsAlgoDataStruct,
|
|
|
|
SuperBlocks.FrontEndDevLibs,
|
|
|
|
SuperBlocks.DataVis,
|
|
|
|
SuperBlocks.BackEndDevApis,
|
|
|
|
SuperBlocks.QualityAssurance,
|
|
|
|
SuperBlocks.SciCompPy,
|
|
|
|
SuperBlocks.DataAnalysisPy,
|
|
|
|
SuperBlocks.InfoSec,
|
2021-11-30 20:59:34 -08:00
|
|
|
SuperBlocks.MachineLearningPy,
|
|
|
|
SuperBlocks.CodingInterviewPrep,
|
|
|
|
SuperBlocks.RelationalDb
|
2021-07-19 10:57:23 +05:30
|
|
|
]
|
2021-06-15 23:07:52 +05:30
|
|
|
};
|
|
|
|
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
|
2020-12-16 02:02:52 -06:00
|
|
|
// Each client language needs an entry in the rest of the variables below
|
|
|
|
|
2020-12-29 00:36:39 -08:00
|
|
|
/* These strings set the i18next language. It needs to be the two character
|
2020-12-16 02:02:52 -06:00
|
|
|
* string for the language to take advantage of available functionality.
|
|
|
|
* Use a 639-1 code here https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
|
|
|
|
*/
|
2021-11-19 14:19:40 +00:00
|
|
|
export const i18nextCodes = {
|
2020-12-16 02:02:52 -06:00
|
|
|
english: 'en',
|
2020-12-16 15:24:50 +05:30
|
|
|
espanol: 'es',
|
2021-03-15 15:40:48 -07:00
|
|
|
chinese: 'zh',
|
2021-06-15 00:49:18 -07:00
|
|
|
'chinese-traditional': 'zh-Hant',
|
|
|
|
italian: 'it',
|
|
|
|
portuguese: 'pt-BR'
|
2020-12-16 02:02:52 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
// These are for the language selector dropdown menu in the footer
|
2021-11-19 14:19:40 +00:00
|
|
|
export const langDisplayNames = {
|
2020-12-16 02:02:52 -06:00
|
|
|
english: 'English',
|
2020-12-16 15:24:50 +05:30
|
|
|
espanol: 'Español',
|
2021-05-05 13:14:25 -07:00
|
|
|
chinese: '中文(简体字)',
|
2021-06-15 00:49:18 -07:00
|
|
|
'chinese-traditional': '中文(繁體字)',
|
|
|
|
italian: 'Italiano',
|
|
|
|
portuguese: 'Português'
|
2020-12-16 02:02:52 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
/* These are for formatting dates and numbers. Used with JS .toLocaleString().
|
|
|
|
* There's an example in profile/components/Camper.js
|
|
|
|
* List: https://github.com/unicode-cldr/cldr-dates-modern/tree/master/main
|
|
|
|
*/
|
2021-11-19 14:19:40 +00:00
|
|
|
export const langCodes = {
|
2020-12-16 02:02:52 -06:00
|
|
|
english: 'en-US',
|
2020-12-16 15:24:50 +05:30
|
|
|
espanol: 'es-419',
|
2021-03-15 15:40:48 -07:00
|
|
|
chinese: 'zh',
|
2021-06-15 00:49:18 -07:00
|
|
|
'chinese-traditional': 'zh-Hant',
|
|
|
|
italian: 'it',
|
|
|
|
portuguese: 'pt-BR'
|
2020-12-16 02:02:52 -06:00
|
|
|
};
|