diff --git a/src/locale/index.js b/src/locale/index.js index 2af51baa9..ea9e139be 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 !== null || value !== undefined) return value; + if (value !== null && value !== undefined) return value; const array = path.split('.'); let current = lang;