提交 6b05c406 编写于 作者: Q qiang

fix: cli-i18n mustacheConfig

上级 253a0156
describe('translate', () => {
it('mustacheConfig', () => {
const i18n = require('../lib/index')
i18n.configure({
staticCatalog: {
en: {
test: 'test {0}'
}
}
})
i18n.setLocale('en')
expect(i18n.__('test', { '0': 'test' })).toBe('test test')
})
})
......@@ -27,6 +27,10 @@ i18n.configure({
staticCatalog,
defaultLocale,
retryInDefaultLocale: true,
mustacheConfig: {
tags: ['{', '}'],
disable: false
},
fallbacks: {
'en_*': 'en',
'zh': 'zh_CN',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册