The realization principle of react-intl and ant-design internationalization is solved.

after putting Intlprovider, on the root component, you can get the internationalized content by calling the FormattedMessage component.

how is internationalized content delivered between them?

after looking at the source code of ant-design for a long time, I don"t understand the principle. I hope the master will give me some advice. thank you!

Jun.10,2021
Menu