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,15 +82,15 @@ 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);
|
||||||
destFile.contents = self.jsonFile(oldContents, files[destFile.path]);
|
destFile.contents = self.jsonFile(oldContents, files[destFile.path]);
|
||||||
|
|
||||||
this.emit('data', destFile);
|
this.emit('data', destFile);
|
||||||
}))
|
}))
|
||||||
.pipe(gulp.dest((data) => data.base, { overwrite: true}))
|
.pipe(gulp.dest((data) => data.base, { overwrite: true }))
|
||||||
.on('end', done);
|
.on('end', done);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
{
|
{
|
||||||
"pluginname": "Feedback comments"
|
"pluginname": "Feedback comments"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
{
|
{
|
||||||
"pluginname": "Annotate PDF"
|
"pluginname": "Annotate PDF"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
{
|
{
|
||||||
"pluginname": "File feedback"
|
"pluginname": "File feedback"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
{
|
{
|
||||||
"pluginname": "Submission comments"
|
"pluginname": "Submission comments"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
{
|
{
|
||||||
"pluginname": "File submissions"
|
"pluginname": "File submissions"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{
|
{
|
||||||
"pluginname": "Online text submissions",
|
"pluginname": "Online text submissions",
|
||||||
"wordlimitexceeded": "The word limit for this assignment is {{$a.limit}} words and you are attempting to submit {{$a.count}} words. Please review your submission and try again."
|
"wordlimitexceeded": "The word limit for this assignment is {{$a.limit}} words and you are attempting to submit {{$a.count}} words. Please review your submission and try again."
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{
|
{
|
||||||
"dimensionnumber": "Criterion {{$a}}",
|
"dimensionnumber": "Criterion {{$a}}",
|
||||||
"mustchooseone": "You have to select one of these items"
|
"mustchooseone": "You have to select one of these items"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue