-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Fluent based l10n/i18n functions #646
Comments
Isn't that what https://docs.rs/fluent-templates/0.6.1/fluent_templates/ does? |
I was unaware But yes, sort of. If I was building my own Rust application it looks like that would enable me to get the job done. I guess this feature request takes on two smaller parts:
As it stands if there is a way to bolt this on to my site without needing to distribute a forked Zola to enable this I don't see what it is. |
It's planned to add that crate (or something else if needed) to Zola but this shouldn't be added to Tera itself imo. It got a bit delayed in Zola but it should come during the summer, in the release after the next one. |
The project I did using
...I would say that covers what I'm aware of. And sounds promising. I'll be looking forward to it. I don't know if I'll have time to contribute towards the effort but I'll try. |
Any progress on this? I'm revisiting two sites I wanted to port to Zola, and this is a blocker... |
None right now, got a bit side-tracked. |
Roger that, fair enough, it happens. And knowing that help my planning... |
I saw #543 that touches on needed apparatus, but I'd like to propose a feature request that goes a step farther...
A set of localization functions used Fluent should be first class baked in tools. The ergonomics of Rust tooling for Fluent has been improving, but access from templating systems is still lacking in a number of places.
A Rust helper exists already for Rust Handlebars (cf. runtime variant, several non-handlebars Fluent templating crates). I've found that useful, but I'm now stuck using Tera for some projects and miss it sorely.
Many downstream projects would benefit from this rather than having to re-invent the wheel. For example the Zola static site generator has a long running feature request for better i18n function where I and others keep requesting Fluent access, but so far the non Fluent flat key based system they've been able to provide is lack-luster at best and flat out awkward or unworkable at worst. I think if Tera provided a basic function set it would be much easier to wire in to other projects.
The text was updated successfully, but these errors were encountered: