From 87699ef3ca274ea42d75a2a03acad3b79147f842 Mon Sep 17 00:00:00 2001 From: "cinwell.li" Date: Mon, 9 Jan 2017 16:19:06 +0800 Subject: [PATCH] Locale: fix empty string (#2302) --- src/locale/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/locale/index.js b/src/locale/index.js index 284554f9..2af51baa 100644 --- a/src/locale/index.js +++ b/src/locale/index.js @@ -22,7 +22,7 @@ let i18nHandler = function() { export const t = function(path, options) { let value = i18nHandler.apply(this, arguments); - if (value) return value; + if (value !== null || value !== undefined) return value; const array = path.split('.'); let current = lang;