fix: Fix e2e i18n
Fix e2e i18n: fix zh.json path Change-Id: If486e8e9fc19d20c86ef10729a7e04963664a05c
This commit is contained in:
parent
979fbfe6e5
commit
7c44ee1c2a
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user