summaryrefslogtreecommitdiff
path: root/src/misc
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-08-23 02:28:58 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-08-23 02:28:58 +0900
commitd129151fdf32de7134cdcee57d255fef82caf796 (patch)
treed0fad7224b582127916dcf0befd12da510e7f6b9 /src/misc
parentFix bug (diff)
downloadsharkey-d129151fdf32de7134cdcee57d255fef82caf796.tar.gz
sharkey-d129151fdf32de7134cdcee57d255fef82caf796.tar.bz2
sharkey-d129151fdf32de7134cdcee57d255fef82caf796.zip
Fix #2410
なぜか .ts という拡張子で来るのかは不明
Diffstat (limited to 'src/misc')
-rw-r--r--src/misc/i18n.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/misc/i18n.ts b/src/misc/i18n.ts
index 8379b2f538..3dbfd7fe7b 100644
--- a/src/misc/i18n.ts
+++ b/src/misc/i18n.ts
@@ -27,6 +27,8 @@ export default class Replacer {
let text = texts;
if (path) {
+ path = path.replace('.ts', '');
+
if (text.hasOwnProperty(path)) {
text = text[path];
} else {