React- intl (multilingual)

component mode using multiple languages

< FormattedMessage
id= "intl.hello"
defaultMessage= {"default Chinese"} / /-> this default language is displayed if there is a problem with multilingual json files
/ >

how to set the default defaultMessage in API mode

let tmp = intl.formatMessage ({id: "intl.name"}, {name:" joe"});
/ / the first parameter is the unique id in the multilingual json file, and the second parameter is the dynamic value. How to set the default value?

May.29,2022
Menu