Skip to content

Commit

Permalink
refactor: make msg pretty
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Jul 20, 2020
1 parent 764969a commit 8ddc8dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/src/modules/translator.js
Expand Up @@ -278,15 +278,15 @@
}

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 + ']]');
}

var translation = this.getTranslation(namespace, key);
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;
}

Expand Down

0 comments on commit 8ddc8dd

Please sign in to comment.