mondeja / leptos-fluent

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

Lazy loading of locale data #110

Open kakserpom opened 2 weeks ago

kakserpom commented 2 weeks ago

Is it planned?

mondeja commented 2 weeks 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 2 weeks 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 2 weeks 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.