mondeja / leptos-fluent

Internationalization framework for Leptos using Fluent
https://mondeja.github.io/leptos-fluent/
MIT License
40 stars 10 forks source link

Lazy loading of locale data #110

Open kakserpom opened 5 months ago

kakserpom commented 5 months ago

Is it planned?

mondeja commented 5 months ago

For now I have not needed it, that is why it is not implemented and I'm not planning it in the short term. Maybe it requires a lot of work because fluent-templates uses another loader (ArcLoader). PRs are welcome.

kakserpom commented 5 months ago

Well I am already building a plugin for automatic AI translation using DeepL and Google Translate. I want my project to be available in dozens of languages.

Before choosing leptos-fluent I tried https://github.com/Baptistemontan/leptos_i18n, there's an effort towards dynamic locale loading (https://github.com/Baptistemontan/leptos_i18n/pull/97/files), but that PR is stale.

I think that locale data should be incapsulated into a Leptos resource.

kakserpom commented 5 months ago

It's not a pressing issue for me because my project release is not so near. I have limited time even to work on my own project, so I'd rather wait for someone else to implement this feature.