diff --git a/locales/verify.js b/locales/verify.js index a8e9875d6e..63b47c6525 100644 --- a/locales/verify.js +++ b/locales/verify.js @@ -1,5 +1,7 @@ import locales from './index.js'; +const showUntranslated = process.argv[2] == '-v'; + let valid = true; function writeError(type, lang, tree, data) { @@ -34,6 +36,10 @@ function verify(expected, actual, lang, trace) { writeError('missing_parameter', lang, trace ? `${trace}.${key}` : key, { parameter }); } } + + if (showUntranslated && actual[key] == expected[key]) { + writeError('untranslated', lang, trace ? `${trace}.${key}` : key, { original: expected[key] }); + } } } }