[improvement] List: unify text font-size (#4077)

This commit is contained in:
neverland
2019-08-09 14:03:19 +08:00
committed by GitHub
parent 19cd2ed38e
commit 4cba618792
10 changed files with 52 additions and 50 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ import locale from '../../locale';
export function createI18N(name: string) {
const prefix = camelize(name) + '.';
return function (path: string, ...args: any[]): string {
return function(path: string, ...args: any[]): string {
const message = get(locale.messages(), prefix + path) || get(locale.messages(), path);
return typeof message === 'function' ? message(...args) : message;
};