Signed-off-by: lizhouze <lizhouze@huawei.com>
This commit is contained in:
lizhouze 2022-09-16 16:39:02 +08:00
parent 130d822788
commit 4037cef248

View File

@ -106,7 +106,8 @@ class GenAbcPlugin {
function checkI18n(key) {
const outI18nPath = path.resolve(process.env.configOutput, key);
const projectI18nPath = outI18nPath.replace(output, process.env.projectPath);
if (fs.existsSync(projectI18nPath)) {
if (projectI18nPath.indexOf(
path.resolve(__dirname, process.env.projectPath, 'i18n')) > -1) {
return true;
}
return false;