Commit 9ce241a2 authored by cinwell.li's avatar cinwell.li Committed by GitHub

Loacle: fix i18n handler (#2303)

parent 87699ef3
...@@ -22,7 +22,7 @@ let i18nHandler = function() { ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment