From f339d028d26b5218a77e7b411d98c2dc60c853b4 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 10 Feb 2018 10:32:59 +0900 Subject: [PATCH] wip --- src/common/build/i18n.ts | 6 +++--- 1 file 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;