i18n: add Ukrainian menu translation (#395)

This commit is contained in:
Dmytro Matviichuk
2026-10-09 14:46:20 +02:00
parent d5f78f3fc0
commit ceda5bd607
6 changed files with 764 additions and 9 deletions
+13
View File
@@ -921,6 +921,19 @@ mod tests {
assert_eq!(fallback_for('\u{e001}', inter), id, "fallback finds the drawn one");
}
#[test]
fn bundled_ui_fonts_cover_the_ukrainian_alphabet() {
const ALPHABET: &str = "АБВГҐДЕЄЖЗИІЇЙКЛМНОПРСТУФХЦЧШЩЬЮЯабвгґдеєжзиіїйклмнопрстуфхцчшщьюя’«»";
for (name, bytes) in
[("Inter Regular", INTER_REGULAR), ("Inter Medium", INTER_MEDIUM), ("Inter SemiBold", INTER_SEMIBOLD), ("JetBrains Mono", JETBRAINS_MONO_REGULAR)]
{
let font = FontRef::new(bytes).unwrap();
for c in ALPHABET.chars() {
assert!(covers(&font, c), "{name} cannot draw {c}");
}
}
}
#[test]
fn metrics_and_coverage() {
let f = face(resolve("Inter", "Regular").face);