summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/common/build/i18n.ts6
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;