kellpossible / kellpossible/cargo-i18n
Consider a code generation type safe version of i18n-embed-fl
- Dominant language
- Rust
- Stars
- 146
- Forks
- 41
- Avg merge
- 12d 14h
- Merged PRs (30d)
- 1
Description
The https://github.com/baptiste0928/rosetta project brings some interesting ideas, it generates code using the `build.rs` script that can be used to reference localizations using native Rust types which also integrates well with IDE autocomplete. In addition, the function signature for localizations with variables are also generated, making it very easy to use a given localization correctly without needing to reference the source file. Seems like it should be possible to do something similar with `fluent`.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reviewing the linked rosetta project and its build.rs code-generation approach, then compare it with this project's Fluent localization handling. Define what generated Rust types and localization function signatures would be needed, and consider the generated API complete when Fluent messages can be referenced with native types and IDE autocomplete.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- internationalization, tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100