summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2018-07-08 04:37:09 +0900
committerGitHub <noreply@github.com>2018-07-08 04:37:09 +0900
commit0025f3b5268c1f1ecbb49ff44f8af1f082d4a375 (patch)
tree211ccef01a96e8c24b3d1d2c68cece2b3b303c51 /src
parentUpdate locales (diff)
parentUpdate warning message for missing locale (diff)
downloadmisskey-0025f3b5268c1f1ecbb49ff44f8af1f082d4a375.tar.gz
misskey-0025f3b5268c1f1ecbb49ff44f8af1f082d4a375.tar.bz2
misskey-0025f3b5268c1f1ecbb49ff44f8af1f082d4a375.zip
Merge pull request #1860 from syuilo/i18n-msg-patch
Update warning message for missing locale
Diffstat (limited to 'src')
-rw-r--r--src/misc/i18n.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/misc/i18n.ts b/src/misc/i18n.ts
index 4ed3c7a2df..a07af3e939 100644
--- a/src/misc/i18n.ts
+++ b/src/misc/i18n.ts
@@ -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;