cargo-i18n icon indicating copy to clipboard operation
cargo-i18n copied to clipboard

Offer Result based functions for Fluent

Open TiemenSch opened this issue 9 months ago • 1 comments

Currently, the FluentLanguageLoader offers error logging functionality, but no actual Results. Would you consider adding try_... methods that return a Result with distinct errors?

These could contain Error types that have a Display implementation that is equivalent to the current messages, such that the current methods can wrap around their try_ counterparts in a compact way.

This might be a design decision which I'm not aware of, but I just wanted to put it out there.

TiemenSch avatar Apr 01 '25 15:04 TiemenSch

seems like a good idea, I'm open to contributions!

kellpossible avatar Apr 13 '25 23:04 kellpossible