问题标签 [messageformat.js]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
escaping - 如何使用 MessageFormat.js 为“SelectFormat”转义“/”
我的messageFormat
字符串看起来像这样:{foo, select, one/two{1-2} other{3}}
,但是messageFormat
解析器由于/
使用它而引发错误。
我试过了,但没有工作:
有任何想法吗?
参考资料:
https ://messageformat.github.io/messageformat/
https://messageformat.github.io/messageformat/page-guide#toc3__anchor