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
@ -7,7 +7,7 @@ import { generateIconComponent } from '../../assets/icons';
|
||||
import { Link, Spacer } from '../helpers';
|
||||
import LinkButton from '../../assets/icons/LinkButton';
|
||||
import './map.css';
|
||||
import { isAuditedCert } from '../../../../utils/is-audited';
|
||||
import { isAuditedCert } from '../../../../config/is-audited';
|
||||
import envData from '../../../../config/env.json';
|
||||
|
||||
const { curriculumLocale } = envData;
|
||||
|
@ -12,7 +12,7 @@ import Challenges from './Challenges';
|
||||
import Caret from '../../../assets/icons/Caret';
|
||||
import GreenPass from '../../../assets/icons/GreenPass';
|
||||
import GreenNotCompleted from '../../../assets/icons/GreenNotCompleted';
|
||||
import { isAuditedCert } from '../../../../../utils/is-audited';
|
||||
import { isAuditedCert } from '../../../../../config/is-audited';
|
||||
import envData from '../../../../../config/env.json';
|
||||
import { Link } from '../../../components/helpers/';
|
||||
|
||||
|
@ -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',
|
||||
|
@ -33,8 +33,7 @@ const auditedCerts = {
|
||||
italian: [
|
||||
'responsive-web-design',
|
||||
'javascript-algorithms-and-data-structures'
|
||||
],
|
||||
portuguese: ['responsive-web-design']
|
||||
]
|
||||
};
|
||||
|
||||
function isAuditedCert(lang, cert) {
|
@ -11,7 +11,7 @@ const {
|
||||
} = require('../tools/challenge-parser/translation-parser');
|
||||
/* eslint-enable max-len*/
|
||||
|
||||
const { isAuditedCert } = require('../utils/is-audited');
|
||||
const { isAuditedCert } = require('../config/is-audited');
|
||||
const { dasherize } = require('../utils/slugs');
|
||||
const { createPoly } = require('../utils/polyvinyl');
|
||||
const { helpCategoryMap } = require('../client/utils/challengeTypes');
|
||||
|
@ -2,7 +2,7 @@
|
||||
const path = require('path');
|
||||
const liveServer = require('live-server');
|
||||
const stringSimilarity = require('string-similarity');
|
||||
const { isAuditedCert } = require('../../utils/is-audited');
|
||||
const { isAuditedCert } = require('../../config/is-audited');
|
||||
|
||||
const spinner = require('ora')();
|
||||
|
||||
|
Reference in New Issue
Block a user