You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm evaluating options for localising one of my Rust command line programs. But I'm having some trouble wrapping my head around some of the features (or lack thereof in fluent). I would have opened a discussion instead, but it doesn't seem to be enabled for this repository.
How to I actually get from a (possibly mixed language) POSIX locale to the proper fluent configuration. E.g. consider my personal setting:
Here I want English messages but dates etc formatted in Swedish (this is a fairly common configuration among programmers in Sweden, since translated messages tend to be low quality and ungooglable, English proficiency is high, but we still prefer 24h time and sane date formatting).
Does fluent event support such mixed locales? Or is using a fluent a non-starter (since mixed locales is a hard requirement for me)?
How do you convert from POSIX locales to the "Unicode Language Identifiers" that fluent apparently uses (are they perhaps the same thing?).
I'm also having issues finding things like date formatting etc at all in https://docs.rs/fluent/latest/fluent/. Is that out of scope (e.g. fluent only handles LC_MESSAGES)? If so, is there a recommended combined approach to handling all of this properly (with mixed locale support of course)?
The text was updated successfully, but these errors were encountered:
These Fluent crates certainly provide the building blocks to handle most of this including mixed locales, but the fallback logic for exactly how you want to handle them would at least partially be on you. Honestly it sounds like you might be looking for something a little higher level like cargo-i18n for example, but mixed-locales are still a problem there too see cargo-i18n#114). That being said the date formatting in relation to locales is a bit different problem space than just setting up locale handling for your messages with some sort of fallback to choose the closest messages for your locale based on what you have to work with.
Hi,
I'm evaluating options for localising one of my Rust command line programs. But I'm having some trouble wrapping my head around some of the features (or lack thereof in fluent). I would have opened a discussion instead, but it doesn't seem to be enabled for this repository.
How to I actually get from a (possibly mixed language) POSIX locale to the proper fluent configuration. E.g. consider my personal setting:
Here I want English messages but dates etc formatted in Swedish (this is a fairly common configuration among programmers in Sweden, since translated messages tend to be low quality and ungooglable, English proficiency is high, but we still prefer 24h time and sane date formatting).
The text was updated successfully, but these errors were encountered: