mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
8c837da561
* New hud/ability.ron file for ability localizations * i18n keys are created by adding .name and .desc to ability id. Because of how i18n worked (returning key if string wasn't found), it was impossible to do because it leads to UB in case string is missed. To solve this we've added get_opt method that returns None * New Localization::get_or method for convinient fallback key usage |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md |
Usage
$ cargo run --features=bin -- --help
(Or if somewhere else in the repo)
$ cargo run -p veloren-i18n --features=bin -- --help
For example, diagnostic for specific language
$ cargo run -p veloren-i18n --features=bin -- <lang_code>