refactor: clean up supportLangs refs
This commit is contained in:
committed by
Mrugesh Mohapatra
parent
24d9c94fe5
commit
ac6fc605ad
@ -15,7 +15,6 @@ const { isAuditedCert } = require('../utils/is-audited');
|
||||
const { dasherize } = require('../utils/slugs');
|
||||
const { createPoly } = require('../utils/polyvinyl');
|
||||
const { blockNameify } = require('../utils/block-nameify');
|
||||
// const { supportedLangs } = require('./utils');
|
||||
const { helpCategoryMap } = require('../client/utils/challengeTypes');
|
||||
const {
|
||||
curriculum: curriculumLangs
|
||||
|
@ -4,8 +4,6 @@ const {
|
||||
curriculum: curriculumLangs
|
||||
} = require('../client/i18n/allLangs').availableLangs;
|
||||
|
||||
// const { supportedLangs } = require('./utils');
|
||||
|
||||
function validateLang(lang) {
|
||||
invariant(lang, 'Please provide a language');
|
||||
invariant(
|
||||
|
@ -5,8 +5,6 @@ const {
|
||||
curriculum: curriculumLangs
|
||||
} = require('../client/i18n/allLangs').availableLangs;
|
||||
|
||||
// const supportedLangs = ['chinese', 'english'];
|
||||
|
||||
exports.testedLang = function testedLang() {
|
||||
if (process.env.CURRICULUM_LOCALE) {
|
||||
if (curriculumLangs.includes(process.env.CURRICULUM_LOCALE)) {
|
||||
@ -19,5 +17,3 @@ exports.testedLang = function testedLang() {
|
||||
throw Error('LOCALE must be set for testing');
|
||||
}
|
||||
};
|
||||
|
||||
// exports.supportedLangs = supportedLangs;
|
||||
|
Reference in New Issue
Block a user