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
I'm currently looking into migrating a project from typesafe-i18n to ParaglideJS. I have been reading the philosophy of Paraglide and I think understand it.
I'm in a bit of a weird situation though. The project I'm working on is https://github.com/workadventure/workadventure
It is a platform to build virtual universes (virtual offices, ...). It is based on pure Svelte + Phaser game engine (there is no SvelteKit since we don't even have the notion of pages). Everything is one big SPA.
I understand the philosophy of ParaglideJS: relying on tree-shaking to ship only the needed messages.
In my case, most of the messages will be loaded directly.
However, I would like to avoid shipping all the languages at once. A typical language file weights 50kB so far and I have about a dozen languages supported. If I could avoid shipping those languages, that would be awesome.
Hence my question: is it possible to do lazy-loading of messages with Paraglide at all? It is mentioned in one of the videos of the pre-release but I couldn't find how to do it.
Sorry if this is not the right place to ask a question.
The text was updated successfully, but these errors were encountered:
Hey,
I'm currently looking into migrating a project from typesafe-i18n to ParaglideJS. I have been reading the philosophy of Paraglide and I think understand it.
I'm in a bit of a weird situation though. The project I'm working on is https://github.com/workadventure/workadventure
It is a platform to build virtual universes (virtual offices, ...). It is based on pure Svelte + Phaser game engine (there is no SvelteKit since we don't even have the notion of pages). Everything is one big SPA.
I understand the philosophy of ParaglideJS: relying on tree-shaking to ship only the needed messages.
In my case, most of the messages will be loaded directly.
However, I would like to avoid shipping all the languages at once. A typical language file weights 50kB so far and I have about a dozen languages supported. If I could avoid shipping those languages, that would be awesome.
Hence my question: is it possible to do lazy-loading of messages with Paraglide at all? It is mentioned in one of the videos of the pre-release but I couldn't find how to do it.
Sorry if this is not the right place to ask a question.
The text was updated successfully, but these errors were encountered: