react-intl - accessing nested messages

后端 未结 3 1019
夕颜
夕颜 2021-02-19 03:23

I\'m trying to use react-intl package inside an app. The app is rendered on the server so I wrote some code to determine which language to use and serve into

3条回答
  •  眼角桃花
    2021-02-19 03:37

    Yes, customization using flattenMessages is the best way I found.

    Here is the video demo for your reference.

    https://egghead.io/lessons/react-convert-a-hard-coded-string-using-react-intl-formattedmessage

提交回复
热议问题