Fix up locale-patch
// FREEBIE
This commit is contained in:
parent
e2f4bcbe51
commit
0247a885ef
1 changed files with 4 additions and 2 deletions
|
@ -218,10 +218,12 @@ module.exports = function(grunt) {
|
||||||
var messages = grunt.file.readJSON(abspath);
|
var messages = grunt.file.readJSON(abspath);
|
||||||
|
|
||||||
for (var key in messages){
|
for (var key in messages){
|
||||||
|
if (en[key] !== undefined && messages[key] !== undefined){
|
||||||
if (en[key].placeholders !== undefined && messages[key].placeholders === undefined){
|
if (en[key].placeholders !== undefined && messages[key].placeholders === undefined){
|
||||||
messages[key].placeholders = en[key].placeholders;
|
messages[key].placeholders = en[key].placeholders;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
grunt.file.write(abspath, JSON.stringify(messages, null, 4) + '\n');
|
grunt.file.write(abspath, JSON.stringify(messages, null, 4) + '\n');
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue