diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-02-10 10:32:59 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-02-10 10:32:59 +0900 |
| commit | f339d028d26b5218a77e7b411d98c2dc60c853b4 (patch) | |
| tree | 8ebab98142795fa21015511ea41b05c52fafca83 /src | |
| parent | wip (diff) | |
| download | sharkey-f339d028d26b5218a77e7b411d98c2dc60c853b4.tar.gz sharkey-f339d028d26b5218a77e7b411d98c2dc60c853b4.tar.bz2 sharkey-f339d028d26b5218a77e7b411d98c2dc60c853b4.zip | |
wip
Diffstat (limited to 'src')
| -rw-r--r-- | src/common/build/i18n.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/build/i18n.ts b/src/common/build/i18n.ts index 500b8814fd..5e3c0381a9 100644 --- a/src/common/build/i18n.ts +++ b/src/common/build/i18n.ts @@ -24,12 +24,12 @@ export default class Replacer { return key; // Fallback } - let text; + let text = texts; // Check the key existance const error = key.split('.').some(k => { - if (texts.hasOwnProperty(k)) { - text = texts[k]; + if (text.hasOwnProperty(k)) { + text = text[k]; return false; } else { return true; |