james gilles
james gilles
Fluent actually has quite a simple rust API, most of the complexity is in the implementation: https://docs.rs/fluent-bundle/0.5.0/fluent_bundle/ Essentially, you create a `FluentBundle`, which represents a set of known translations +...
Proc macro would let you run compile-time instead of runtime checks on the fluent files. Could be overkill, but I've always thought there's no such thing as too much safety...
My PR adds initial support for i18n using Fluent but the Fluent API currently has some issues. Once: - https://github.com/projectfluent/fluent-rs/issues/94 - https://github.com/projectfluent/fluent-rs/issues/88 are addressed, it'll be worth doing another pass....
Most of the relevant code's been moved over [here](https://github.com/kazimuth/baked_fluent) to its own crate, which is almost ready to release. I just want to get askama and rocket working first. @djc,...
I'll open a PR to add support on this end. Only real issue I see is making sure people can find the docs; I can just duplicate them in the...
Ah, some life stuff came up. Plus the job I was going to be using this for fell through, so I haven't been working on it much :/ baked_fluent is...
Baked_fluent is pretty much functional, i think i'll release it soon. I don't have the bandwidth for an askama integration, unfortunately; if someone's interested in writing that i can provide...
> My 2 cents: It would be cool if inference of both types and borrow permissions were automatic, wherever possible. E.g. there are builtin operations that need read access and...
I'd consider using union types for errors. Especially since Typescript has such nice support for them.
Any update on how to fix this? I've been poking at it but `InlineBackend.figure_format` is itself kinda magic so i'm not really sure how to communicate exactly what it's doing...