mirror of
https://github.com/storytold/figcraft.git
synced 2026-10-26 11:26:50 -06:00
Merge #1224: Add Italian (it) interface language (@CosmoNetinfo)
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -381,6 +381,18 @@ fn system_languages_pick_the_first_one_with_a_catalog() {
|
||||
assert_eq!(code("fr", Some("de-DE")), "fr", "a chosen language beats the system's");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn italian_is_picked_for_italian_locales() {
|
||||
let code = |pref: &str, system: Option<&str>| LANGS[resolve(pref, system)].code;
|
||||
for tag in ["it", "it-IT", "it-CH", "it_IT.UTF-8"] {
|
||||
assert_eq!(code("system", Some(tag)), "it", "{tag}");
|
||||
}
|
||||
let it = LANGS.iter().position(|l| l.code == "it").unwrap();
|
||||
assert_eq!(LANGS[it].name, "Italiano");
|
||||
assert!(LANGS[it].draft);
|
||||
assert!(!plural_one(it, 0) && plural_one(it, 1) && !plural_one(it, 2));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn swedish_is_picked_for_swedish_locales() {
|
||||
let code = |pref: &str, system: Option<&str>| LANGS[resolve(pref, system)].code;
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ Simplified.
|
||||
The catalogs: English (`en`, the source), and Spanish (`es`, with the Latin American overlay
|
||||
`es-419`), French (`fr`), German (`de`), Dutch (`nl`), Brazilian Portuguese (`pt-BR`), Japanese
|
||||
(`ja`), Korean (`ko`), Simplified Chinese (`zh-Hans`), Czech (`cs`), Indonesian (`id`), Finnish
|
||||
(`fi`), Polish (`pl`) and Bengali (`bn`), machine-drafted and waiting for native speakers' review. Georgian
|
||||
(`fi`), Polish (`pl`), Bengali (`bn`) and Italian (`it`), machine-drafted and waiting for native speakers' review. Georgian
|
||||
(`ka`) was written with AI assistance and reviewed by a native speaker, and stays a draft until a
|
||||
maintainer changes its status. Russian (`ru`, Русский) was
|
||||
reviewed and approved by VanTan; its catalog keeps Frame, Dev Mode and Smart animate as familiar
|
||||
|
||||
Reference in New Issue
Block a user