Merge "fix: Fix e2e i18n"

This commit is contained in:
Zuul 2021-12-10 07:11:38 +00:00 committed by Gerrit Code Review
commit cbbb9b2650

View File

@ -30,7 +30,7 @@ const loadYaml = (filePath) => {
}; };
function getZhJson() { function getZhJson() {
const jsonPath = root('src/locales/zh.json'); const jsonPath = root('../src/locales/zh.json');
try { try {
const rawData = fs.readFileSync(jsonPath); const rawData = fs.readFileSync(jsonPath);
const translate = JSON.parse(rawData); const translate = JSON.parse(rawData);