首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >React-Intl获取错误的多条消息

React-Intl获取错误的多条消息
EN

Stack Overflow用户
提问于 2020-06-13 00:21:57
回答 1查看 362关注 0票数 0

这条消息是Check out {count, plural, one {# item}, other {# items}}

我使用以下命令来调用它:

代码语言:javascript
复制
<FormattedMessage id="button.message" values={{ count: cartItemsCount }} />

但是我得到了这些错误:

代码语言:javascript
复制
[React Intl] Error formatting message: "button.message" for locale: "en"
SyntaxError: Expected "{" but "o" found.

代码语言:javascript
复制
[React Intl] Cannot format message: "button.message", using message source as fallback.

知道这是怎么回事吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-08-02 12:30:01

You ICU消息无效:Check out {count, plural, one {# item} other {# items}} ( oneother之间没有,

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/62348384

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档