mirror of
https://gitee.com/openharmony/developtools_ace_js2bundle
synced 2024-11-27 01:20:27 +00:00
parent
130d822788
commit
4037cef248
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user