refactor: s/all-langs/i18n/g (#48258)

This commit is contained in:
Mrugesh Mohapatra
2022-10-26 22:38:27 +05:30
committed by GitHub
parent cf24131967
commit b393d88b9e
22 changed files with 24 additions and 28 deletions
+3 -3
View File
@@ -2,7 +2,7 @@ import { spawn } from 'child_process';
import * as fs from 'fs';
import * as path from 'path';
import { availableLangs } from '../../../config/i18n/all-langs';
import { availableLangs } from '../../../config/i18n';
import env from '../../../config/read-env';
const globalConfigPath = path.resolve(__dirname, '../../../config');
@@ -14,7 +14,7 @@ function checkClientLocale() {
if (!availableLangs.client.includes(process.env.CLIENT_LOCALE)) {
throw Error(`
CLIENT_LOCALE, ${process.env.CLIENT_LOCALE}, is not an available language in config/i18n/all-langs.ts
CLIENT_LOCALE, ${process.env.CLIENT_LOCALE}, is not an available language in config/i18n.ts
`);
}
@@ -26,7 +26,7 @@ function checkCurriculumLocale() {
if (!availableLangs.curriculum.includes(process.env.CURRICULUM_LOCALE)) {
throw Error(`
CURRICULUM_LOCALE, ${process.env.CURRICULUM_LOCALE}, is not an available language in config/i18n/all-langs.ts
CURRICULUM_LOCALE, ${process.env.CURRICULUM_LOCALE}, is not an available language in config/i18n.ts
`);
}