while i was writing another project i got frustrated with fluent (i kept mistyping up the names of translations and/or arguments, which are just strings and constructing hash maps of arguments was just annoying),
so i decided to start a a "quick" side project, multiple attempts and months later i finally finished version 0.1.0 of karatepe:
https://crates.io/crates/karatepe
(copied from the readme)
karatepe is a library for localising software.
Unlike most other localisation libraries, karatepe is statically typed, a tree of files define which messages exist, and what arguments they take, and for each message a normal rust function, with the correct type and number of arguments, is generated at compile time, it is not possible to pass the wrong type to a translation or to forget an argument.
Translations are loaded at runtime, errors are not fatal, if a message's translation has an error it is discarded, but all other messages are unaffected, currently parsing errors are not recoverable, so if a translation file cannot be parsed the entire file is discarded (but other files are unaffected).
2 posts - 1 participant
Read full topic
| # | Наименование новости | Тональность | Информативность | Дата публикации |
|---|---|---|---|---|
| 1 | Maplike - Crate with traits for abstract containers and operations on them | 2 | 7 | 06-07-2026 |
| 2 | Multicalc: Scientific computing for real-time embedded systems in no_std Rust | 0 | 14.36 | 10-08-2026 |
| 3 | Multicalc: Scientific computing for real time embedded systems in no_std rust | 0 | 9.4 | 28-07-2026 |
| 4 | Unsupported!() macro for compile errors when a code path is used | 0 | 8.18 | 13-08-2026 |
| 5 | [Show] taetype: Pure Rust font engine with zero unsafe code | 0 | 10.19 | 27-07-2026 |
| 6 | Sigid: a zero-dependency, no_std, three-layer unique ID generator | 0 | 14.69 | 11-08-2026 |
| 7 | Cargo-Rail v0.20: one workspace engine instead of dependency, CI, cache, release, and split-repo glue/plugins | 0 | 10.4 | 30-07-2026 |
| 8 | Announcing logisheets-rs: a Rust spreadsheet engine with XLSX support | 7 | 8 | 07-07-2026 |
| 9 | My state lib PurrGress | 0 | 12.62 | 13-08-2026 |
| 10 | Qhull_rayon v0.1.0 | 0 | 10.4 | 11-08-2026 |