Missing translations are now returned as an array of arrays
This commit is contained in:
parent
11d9c9e813
commit
3b71c8b0b5
@ -53,15 +53,17 @@ define(req, function(Default, Language) {
|
|||||||
Object.keys(Default).forEach(function (k) {
|
Object.keys(Default).forEach(function (k) {
|
||||||
if (/^_/.test(k) || /nitialState$/.test(k)) { return; }
|
if (/^_/.test(k) || /nitialState$/.test(k)) { return; }
|
||||||
if (!translation[k]) {
|
if (!translation[k]) {
|
||||||
var warning = "key [" + k + "] is missing from translation [" + code + "]";
|
//var warning = "key [" + k + "] is missing from translation [" + code + "]";
|
||||||
missing.push(warning);
|
//missing.push(warning);
|
||||||
|
missing.push([code, k, 1]);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
Object.keys(translation).forEach(function (k) {
|
Object.keys(translation).forEach(function (k) {
|
||||||
if (/^_/.test(k) || /nitialState$/.test(k)) { return; }
|
if (/^_/.test(k) || /nitialState$/.test(k)) { return; }
|
||||||
if (!Default[k]) {
|
if (!Default[k]) {
|
||||||
var warning = "key [" + k + "] from [" + code + "] is not needed anymore and should be removed";
|
//var warning = "key [" + k + "] from [" + code + "] is not needed anymore and should be removed";
|
||||||
missing.push(warning);
|
//missing.push(warning);
|
||||||
|
missing.push([code, k, 0]);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
/*if (typeof(translation._languageName) !== 'string') {
|
/*if (typeof(translation._languageName) !== 'string') {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user