anki/rslib/i18n
Lucas Scharenbroch ee8683587a
Add number truncation before back-end translation (#3162)
* Add number-truncation before backend translation

* Round instead of truncate (conform to testcases)

* Add test-case for plural rounding-to-one corner-case

* Move rounding into generated translation code

* Change unit test to test generated function

* Round any number in generation, ignore (int vs float)

(it seems that that type distinction is frequently inaccurate)

* Update formatting
2024-04-24 02:41:40 +01:00
..
src Add number truncation before back-end translation (#3162) 2024-04-24 02:41:40 +01:00
build.rs Fix i18n build script not responding to env var changes 2023-07-04 17:17:41 +10:00
Cargo.toml Move .py i18n method generation to Rust 2023-07-03 15:58:46 +10:00
check.rs Move .py i18n method generation to Rust 2023-07-03 15:58:46 +10:00
extract.rs Move .py i18n method generation to Rust 2023-07-03 15:58:46 +10:00
gather.rs Stop including Qt translations when EXTRA_FTL_ROOT provided 2023-07-04 18:26:27 +10:00
python.rs Move .py i18n method generation to Rust 2023-07-03 15:58:46 +10:00
typescript.rs Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
write_strings.rs Add number truncation before back-end translation (#3162) 2024-04-24 02:41:40 +01:00