Closed jiangkeyuan closed 3 years ago
your key is "1,2,3" ?
code:{intl.get("2020.10.10",{nper:item.date})} date为 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15........ 三语:2020.10.10:"hello {nper,plural,=1 {#nd} =2 {#rd} =3 {#rd} other {#th}}"
手机型号 :SHARP FS8014 版本 安卓,7.0
Do you have the following code in your app?
sure
1,2,3 都正常显示了 other 这个api是不是不支持 只有安卓7.0 显示不正常 其余系统正常
Any error message?
Which version of react-intl-universal
?
good morning !
"react-intl-universal": "^2.4.1",
Please try this,
npm i --save @formatjs/intl-pluralrules
import '@formatjs/intl-pluralrules/polyfill'
import '@formatjs/intl-pluralrules/locale-data/en' // locale-data for en
it is ok! thanks
当 key 为 1,2,3 时正常显示,other 时 就显示 整行代码,是不是不兼容安卓7.0, 其余系统正常