fix: Fix e2e i18n

Fix e2e i18n: fix zh.json path

Change-Id: If486e8e9fc19d20c86ef10729a7e04963664a05c
This commit is contained in:
Jingwei.Zhang 2021-12-10 10:54:17 +08:00
parent 979fbfe6e5
commit 7c44ee1c2a

View File

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