[LOCALIZATION] Handling of big numbers
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 24.1k
- Forks
- 2k
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 365
Description
Right now, messages which include big numbers cannot be localized, due to the use of fluent::FluentArgs in the translate! macro. There is an open bug upstream but it seems to have stalled: https://github.com/projectfluent/fluent-rs/issues/337.
A workaround should be developed in the meantime, as the loss of precision printing messages implies not being able to follow GNU coreutils error messages in some corner cases.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the translate! macro in src/uucore/lib/mods/locale.rs, especially its use of fluent::FluentArgs, and review upstream fluent-rs issue 337. Develop a workaround for localized messages containing big numbers, then verify that message formatting preserves numeric precision and remains consistent with GNU coreutils output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli, localization
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100