mondeja / leptos-fluent

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

Directly Fetching Translations from Database Without Using .ftl Files #256

Open NCura opened 3 weeks ago

NCura commented 3 weeks ago

Hello!

I'm working on a project where I need to build a back-office system so my client can independently update certain website content, including text changes.

I’m considering fetching translations from the database, writing them to an .ftl file, and then retrieving them for use. However, I’m wondering if there’s a straightforward way to fetch translations directly from the database without relying on an .ftl file.

Any guidance or suggestions on this would be greatly appreciated!

Thank you!

mondeja commented 3 weeks ago

Nope, there is currently nothing similar implemented. Do you require updates at runtime?

NCura commented 2 weeks ago

Yes, the goal is to deploy the server and allow the client to authenticate within the website's admin section. From there, they can submit forms to update text directly in the database, with these changes reflected in real-time on the public-facing website.

mondeja commented 2 weeks ago

PRs welcome. Related to #110.

NCura commented 2 weeks ago

Sure, once I tackle my todos with higher priority, I will see what I can do regarding the PR 🙂