feat: i18n user interface (#40306)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
This commit is contained in:
@@ -2,7 +2,7 @@ const fs = require('fs-extra');
|
||||
const gulp = require('gulp');
|
||||
const through2 = require('through2');
|
||||
|
||||
const { locale } = require('../config/env.json');
|
||||
const { curriculumLocale } = require('../config/env.json');
|
||||
const { getChallengesForLang } = require('./getChallenges');
|
||||
const { testedLang } = require('./utils');
|
||||
const lintMarkdown = require('../tools/scripts/lint');
|
||||
@@ -12,11 +12,11 @@ const lintMarkdown = require('../tools/scripts/lint');
|
||||
**/
|
||||
|
||||
function generateCurriculum(done) {
|
||||
return getChallengesForLang(locale)
|
||||
return getChallengesForLang(curriculumLocale)
|
||||
.then(curriculum => {
|
||||
fs.ensureFileSync(`./build/curriculum-${locale}.json`);
|
||||
fs.ensureFileSync(`./build/curriculum-${curriculumLocale}.json`);
|
||||
fs.writeFile(
|
||||
`./build/curriculum-${locale}.json`,
|
||||
`./build/curriculum-${curriculumLocale}.json`,
|
||||
JSON.stringify(curriculum)
|
||||
);
|
||||
})
|
||||
|
Reference in New Issue
Block a user