MOBILE-4368 lang: Fix missing lang files on gulp lang override
parent
dafce79355
commit
6a6189ec78
|
@ -52,7 +52,7 @@ class OverrideLangTask {
|
||||||
plainid = exp.join('.');
|
plainid = exp.join('.');
|
||||||
}
|
}
|
||||||
|
|
||||||
const component_slashes = component.replace('_', '/');
|
const component_slashes = component.replace(/_/g, '/');
|
||||||
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case 'core':
|
case 'core':
|
||||||
|
@ -82,7 +82,7 @@ class OverrideLangTask {
|
||||||
}
|
}
|
||||||
|
|
||||||
const paths = Object.keys(files);
|
const paths = Object.keys(files);
|
||||||
gulp.src(paths, { allowEmpty: true })
|
gulp.src(paths)
|
||||||
.pipe(slash())
|
.pipe(slash())
|
||||||
.pipe(through(function (destFile) {
|
.pipe(through(function (destFile) {
|
||||||
const oldContents = self.readFile(destFile);
|
const oldContents = self.readFile(destFile);
|
||||||
|
|
Loading…
Reference in New Issue