0

我的messageFormat字符串看起来像这样:{foo, select, one/two{1-2} other{3}},但是messageFormat解析器由于/使用它而引发错误。

我试过了,但没有工作:

{foo, select, one'/'two{1-2} other{3}}
{foo, select, 'one/two'{1-2} other{3}}

有任何想法吗?

参考资料:
https ://messageformat.github.io/messageformat/ https://messageformat.github.io/messageformat/page-guide#toc3__anchor

4

1 回答 1

0

向图书馆的维护人员提出了同样的问题并得到了答案。现在不可能。需要找到不同的解决方案,例如,one_two.

参考

于 2019-11-25T09:24:17.340 回答