【发布时间】:2021-08-12 11:31:48
【问题描述】:
这段代码来自recat-admindemoi18n翻译,
invoices: {
name: 'Invoice |||| Invoices',
fields: {
date: 'Invoice date',
customer_id: 'Customer',
command_id: 'Order',
date_gte: 'Passed Since',
date_lte: 'Passed Before',
total_gte: 'Min amount',
address: 'Address',
},
},
你能解释一下这行是什么意思吗?
name: 'Invoice |||| Invoices'
我从来没有遇到过这样的代码||||
谢谢你:)
【问题讨论】:
-
react-admin i18n 使用 polyglot,这是 polyglotjs 的模板语句。 Translationpolyglot
标签: typescript react-admin react-i18next