From 3b71c8b0b5dbc57f77432de28cbc6e0e9d27d799 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 21 Feb 2017 10:53:30 +0100 Subject: [PATCH] Missing translations are now returned as an array of arrays --- customize.dist/messages.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/customize.dist/messages.js b/customize.dist/messages.js index dd78c6ebb..1143dc641 100644 --- a/customize.dist/messages.js +++ b/customize.dist/messages.js @@ -53,15 +53,17 @@ define(req, function(Default, Language) { Object.keys(Default).forEach(function (k) { if (/^_/.test(k) || /nitialState$/.test(k)) { return; } if (!translation[k]) { - var warning = "key [" + k + "] is missing from translation [" + code + "]"; - missing.push(warning); + //var warning = "key [" + k + "] is missing from translation [" + code + "]"; + //missing.push(warning); + missing.push([code, k, 1]); } }); Object.keys(translation).forEach(function (k) { if (/^_/.test(k) || /nitialState$/.test(k)) { return; } if (!Default[k]) { - var warning = "key [" + k + "] from [" + code + "] is not needed anymore and should be removed"; - missing.push(warning); + //var warning = "key [" + k + "] from [" + code + "] is not needed anymore and should be removed"; + //missing.push(warning); + missing.push([code, k, 0]); } }); /*if (typeof(translation._languageName) !== 'string') {