Вход на сайт

Просмотр новости

Найдите то, что Вас интересует

My second crate :D : Karatepe, a localisation library

Дата публикации: 11-08-2026 19:39:55


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

Схожие новости

#Наименование новостиТональностьИнформативностьДата публикации
1Maplike - Crate with traits for abstract containers and operations on them2706-07-2026
2Multicalc: Scientific computing for real-time embedded systems in no_std Rust014.3610-08-2026
3Multicalc: Scientific computing for real time embedded systems in no_std rust09.428-07-2026
4Unsupported!() macro for compile errors when a code path is used08.1813-08-2026
5[Show] taetype: Pure Rust font engine with zero unsafe code010.1927-07-2026
6Sigid: a zero-dependency, no_std, three-layer unique ID generator014.6911-08-2026
7Cargo-Rail v0.20: one workspace engine instead of dependency, CI, cache, release, and split-repo glue/plugins010.430-07-2026
8Announcing logisheets-rs: a Rust spreadsheet engine with XLSX support7807-07-2026
9My state lib PurrGress012.6213-08-2026
10Qhull_rayon v0.1.0010.411-08-2026

Классификация: . Схожих патентов: 0. Схожих новостей: 10. Тональность: 0. Информативность: 6.84. Источник: users.rust-lang.org.