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
We have a project with multiple modules and standalone components beeing lazy loaded. We use inline loader to load transooco soped translations. Since some time, there is the provideTranslocoScope function provided by transloco which will create a provider with multi set to true. So i assume that the recommended way is to use multi provider for transloco scopes, am i right here?
If so, then we run into issues where the scope is not yet loaded (#539) and we then have to do the workaround with providing the scope to the selectTranslate function (https://github.com/jsverse/transloco/blob/master/docs/docs/translation-api.mdx?plain=1#L56). But as we may have mutliple providers, the selectTranslate function will alwys use the first entry of the array.
Am I missing something? What is the recommended way of doing scoped lazy inline loaded translation?
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
-
We have a project with multiple modules and standalone components beeing lazy loaded. We use inline loader to load transooco soped translations. Since some time, there is the provideTranslocoScope function provided by transloco which will create a provider with multi set to true. So i assume that the recommended way is to use multi provider for transloco scopes, am i right here?
If so, then we run into issues where the scope is not yet loaded (#539) and we then have to do the workaround with providing the scope to the selectTranslate function (https://github.com/jsverse/transloco/blob/master/docs/docs/translation-api.mdx?plain=1#L56). But as we may have mutliple providers, the selectTranslate function will alwys use the first entry of the array.
Am I missing something? What is the recommended way of doing scoped lazy inline loaded translation?
Beta Was this translation helpful? Give feedback.
All reactions