Skip to content

Node.js based forum software built for the modern web

feat: show language when key isn't found

Barış Soner Uşaklı764969ab29c5
diff --git a/public/src/modules/translator.js b/public/src/modules/translator.js
index aed6760675..accfc38980 100644
--- a/public/src/modules/translator.js
+++ b/public/src/modules/translator.js
@@ -278,7 +278,7 @@
}
if (namespace && !key) {
- warn('Missing key in translation token "' + name + '"');
+ warn('Missing key in translation token "' + name + '" lang: ' + self.lang);
return Promise.resolve('[[' + namespace + ']]');
}
@@ -286,7 +286,7 @@
return translation.then(function (translated) {
// check if the translation is missing first
if (!translated) {
- warn('Missing translation "' + name + '"');
+ warn('Missing translation "' + name + '" lang: ' + self.lang);
return backup || key;
}