Skip to content
Snippets Groups Projects
Unverified Commit 0025f3b5 authored by syuilo's avatar syuilo Committed by GitHub
Browse files

Merge pull request #1860 from syuilo/i18n-msg-patch

Update warning message for missing locale
parents 959f2cd6 678e80bb
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,7 @@ export default class Replacer {
if (text.hasOwnProperty(path)) {
text = text[path];
} else {
console.warn(`path '${path}' not found in '${this.lang}'`);
if (this.lang === 'ja') console.warn(`path '${path}' not found`);
return key; // Fallback
}
}
......@@ -46,10 +46,10 @@ export default class Replacer {
});
if (error) {
console.warn(`key '${key}' not found in '${path}' of '${this.lang}'`);
if (this.lang === 'ja') console.warn(`key '${key}' not found in '${path}'`);
return key; // Fallback
} else if (typeof text !== 'string') {
console.warn(`key '${key}' is not string in '${path}' of '${this.lang}'`);
if (this.lang === 'ja') console.warn(`key '${key}' is not string in '${path}'`);
return key; // Fallback
} else {
return text;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment