Loacle: fix i18n handler (#2303)

pull/1114/merge
cinwell.li 2017-01-09 16:33:21 +08:00 committed by GitHub
parent 87699ef3ca
commit 9ce241a2af
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ let i18nHandler = function() {
export const t = function(path, options) { export const t = function(path, options) {
let value = i18nHandler.apply(this, arguments); let value = i18nHandler.apply(this, arguments);
if (value !== null || value !== undefined) return value; if (value !== null && value !== undefined) return value;
const array = path.split('.'); const array = path.split('.');
let current = lang; let current = lang;