refactor: make msg pretty

v1.18.x
Barış Soner Uşaklı 5 years ago
parent 764969ab29
commit 8ddc8dd10f

@ -278,7 +278,7 @@
}
if (namespace && !key) {
warn('Missing key in translation token "' + name + '" lang: ' + self.lang);
warn('Missing key in translation token "' + name + '" for language "' + 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 + '" lang: ' + self.lang);
warn('Missing translation "' + name + '" for language "' + self.lang + '"');
return backup || key;
}

Loading…
Cancel
Save