'Internationalized umi library for ant design

I'm currently trying to create a react library using dumi which I then want to import in an antd project. Everything works so far and the localizations get applied in the dumi component preview.

The problem I'm facing is that the localized strings are not found when I import the library into my main project.

[React Intl] Missing message: 'test.test'

For the internationalization I'm using the umijs localization plugin (@umijs/plugin-locale) in both project.

Anyone else facing this problem?

To build the library I'm using umis library toolkit father




Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source