国际化返回一个数组
keys
{
"tree": {
"res": "added {{something}}"
},
"array": ['a', 'b', 'c']
}
取数:
i18next.t('tree', { returnObjects: true, something: 'gold' });
// -> { res: 'added gold' }
i18next.t('array', { returnObjects: true });
refer document
网友评论