revert: disable portuguese (#42508)
* revert: disable portuguese First certification is not 100% yet. Shipped too soon. :( * feat: enable portuguese curriculum Curriculum can build in portuguese, leaving client disabled to prevent language from appearing in nav bar. * feat: move audited cert list Moves the audited cert list to the config, instead of the utils.
This commit is contained in:
committed by
GitHub
parent
067761f2f6
commit
cd5c28b332
@@ -2,14 +2,7 @@
|
||||
* from the .env file aren't found in their respective arrays below
|
||||
*/
|
||||
const availableLangs = {
|
||||
client: [
|
||||
'english',
|
||||
'espanol',
|
||||
'chinese',
|
||||
'chinese-traditional',
|
||||
'italian',
|
||||
'portuguese'
|
||||
],
|
||||
client: ['english', 'espanol', 'chinese', 'chinese-traditional', 'italian'],
|
||||
curriculum: [
|
||||
'english',
|
||||
'espanol',
|
||||
|
45
config/is-audited.js
Normal file
45
config/is-audited.js
Normal file
@@ -0,0 +1,45 @@
|
||||
// this can go once all certs have been audited.
|
||||
|
||||
// Currently the auditing is going through Crowdin, so once a cert has been 100%
|
||||
// proofread, we can add it in here. That means that translations can come
|
||||
// through from Crowdin whenever they are done, but we don't show them on the
|
||||
// client until we decide the entire cert is ready.
|
||||
|
||||
// NOTE: certificates themselves (.yml files) are not currently being
|
||||
// translated, but when they are they can be included by adding 'certificates'
|
||||
// to the arrays below
|
||||
|
||||
const auditedCerts = {
|
||||
espanol: [
|
||||
'responsive-web-design',
|
||||
'javascript-algorithms-and-data-structures'
|
||||
],
|
||||
chinese: [
|
||||
'responsive-web-design',
|
||||
'javascript-algorithms-and-data-structures',
|
||||
'front-end-libraries',
|
||||
'data-visualization',
|
||||
'apis-and-microservices',
|
||||
'quality-assurance'
|
||||
],
|
||||
'chinese-traditional': [
|
||||
'responsive-web-design',
|
||||
'javascript-algorithms-and-data-structures',
|
||||
'front-end-libraries',
|
||||
'data-visualization',
|
||||
'apis-and-microservices',
|
||||
'quality-assurance'
|
||||
],
|
||||
italian: [
|
||||
'responsive-web-design',
|
||||
'javascript-algorithms-and-data-structures'
|
||||
]
|
||||
};
|
||||
|
||||
function isAuditedCert(lang, cert) {
|
||||
if (!lang || !cert)
|
||||
throw Error('Both arguments must be provided for auditing');
|
||||
return lang === 'english' || auditedCerts[lang].includes(cert);
|
||||
}
|
||||
|
||||
exports.isAuditedCert = isAuditedCert;
|
Reference in New Issue
Block a user