AI翻译ICU消息:0、1和多件商品分别实际渲染

真实原生产物回读预览 · 原创合成材料 · 不代表第三方软件界面

{
  "runtime": "intl-messageformat 12.1.4",
  "rendered": [
    {
      "locale": "en",
      "count": 0,
      "text": "Your cart has 0 items"
    },
    {
      "locale": "en",
      "count": 1,
      "text": "Your cart has 1 item"
    },
    {
      "locale": "en",
      "count": 2,
      "text": "Your cart has 2 items"
    },
    {
      "locale": "zh",
      "count": 0,
      "text": "购物车有 0 件商品"
    },
    {
      "locale": "zh",
      "count": 1,
      "text": "购物车有 1 件商品"
    },
    {
      "locale": "zh",
      "count": 2,
      "text": "购物车有 2 件商品"
    }
  ]
}
英语原始ICU保留通过
中文ICU保留count参数与plural通过
英文one与other实际编译渲染通过
中文0/1/2均正确插值通过