Now let imagine this case, for example. In ui-components I have SaveButton.svelte component. Which is simple
my-application contains several pages with also ssr. it has implemented own sveltekit-i18n with custom localisation files en.json and de.json. But it also using components from component library ui-components. in header user can select locale of app, and after that app is switch to correct translation.
Problem: I dont know how to deal with it that ui-components and my-application has own translations. How to connect selected locale from my application to ui-components. How to handle change. I would like to have custom translation files for components included in ui-component library, but I would like to reflect to locale which is selected in owned app.
I hope that is clear. If not please let me know. Thank you very much for each help.
Hello, I would like to ask you for some hints, because i dont know how to solve it.
I have two project based on svelte kit:
ui-components - selft stand, independent component library which is bild as library not app
my-application - application with pages, routes, layouts and so on, it has dependency to ui-components
In both project I use https://github.com/sveltekit-i18n/lib for app translation.
Now let imagine this case, for example. In ui-components I have SaveButton.svelte component. Which is simple
my-application contains several pages with also ssr. it has implemented own sveltekit-i18n with custom localisation files en.json and de.json. But it also using components from component library ui-components. in header user can select locale of app, and after that app is switch to correct translation.
Problem: I dont know how to deal with it that ui-components and my-application has own translations. How to connect selected locale from my application to ui-components. How to handle change. I would like to have custom translation files for components included in ui-component library, but I would like to reflect to locale which is selected in owned app.
I hope that is clear. If not please let me know. Thank you very much for each help.