|
|
@ -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') {
|
|
|
|