You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the documentation on the website, there is an example on how to separate the catalogue files per component. We like this idea, as it should allow us to translate identical strings, to different values per component.
However, there is no documentation on how to use the separated catalogues.
The most straightforward seems, that each component gets its own <I18nProvider /> component. However, this does not explain how to make sure that locale changes are synced, and there does not seem to be a simple way to make the dynamic loading (described here: https://lingui.js.org/guides/dynamic-loading-catalogs.html#final-i18n-loader-helper) work at all.
Something else, I found in the source code, is catalogsMergePath. But this code doesn't seem to do anything at all. So I'm not sure what that would do.
Is there any documentation on how to use these split catalogues? Would really like some help with that.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In the documentation on the website, there is an example on how to separate the catalogue files per component. We like this idea, as it should allow us to translate identical strings, to different values per component.
However, there is no documentation on how to use the separated catalogues.
The most straightforward seems, that each component gets its own
<I18nProvider />
component. However, this does not explain how to make sure that locale changes are synced, and there does not seem to be a simple way to make the dynamic loading (described here: https://lingui.js.org/guides/dynamic-loading-catalogs.html#final-i18n-loader-helper) work at all.Something else, I found in the source code, is
catalogsMergePath
. But this code doesn't seem to do anything at all. So I'm not sure what that would do.Is there any documentation on how to use these split catalogues? Would really like some help with that.
Beta Was this translation helpful? Give feedback.
All reactions