diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-08-23 02:28:58 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-08-23 02:28:58 +0900 |
| commit | d129151fdf32de7134cdcee57d255fef82caf796 (patch) | |
| tree | d0fad7224b582127916dcf0befd12da510e7f6b9 /src/misc | |
| parent | Fix bug (diff) | |
| download | sharkey-d129151fdf32de7134cdcee57d255fef82caf796.tar.gz sharkey-d129151fdf32de7134cdcee57d255fef82caf796.tar.bz2 sharkey-d129151fdf32de7134cdcee57d255fef82caf796.zip | |
Fix #2410
なぜか .ts という拡張子で来るのかは不明
Diffstat (limited to 'src/misc')
| -rw-r--r-- | src/misc/i18n.ts | 2 |
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 { |