diff --git a/crates/typst/src/text/lang.rs b/crates/typst/src/text/lang.rs index 041a3bdbb..e439533df 100644 --- a/crates/typst/src/text/lang.rs +++ b/crates/typst/src/text/lang.rs @@ -14,7 +14,7 @@ macro_rules! translation { }; } -const TRANSLATIONS: [(&str, &str); 34] = [ +const TRANSLATIONS: [(&str, &str); 35] = [ translation!("ar"), translation!("ca"), translation!("cs"), @@ -28,6 +28,7 @@ const TRANSLATIONS: [(&str, &str); 34] = [ translation!("gl"), translation!("gr"), translation!("hu"), + translation!("is"), translation!("it"), translation!("ja"), translation!("la"), @@ -74,6 +75,7 @@ impl Lang { pub const GERMAN: Self = Self(*b"de ", 2); pub const GREEK: Self = Self(*b"gr ", 2); pub const HUNGARIAN: Self = Self(*b"hu ", 2); + pub const ICELANDIC: Self = Self(*b"is ", 2); pub const ITALIAN: Self = Self(*b"it ", 2); pub const JAPANESE: Self = Self(*b"ja ", 2); pub const LATIN: Self = Self(*b"la ", 2); diff --git a/crates/typst/translations/is.txt b/crates/typst/translations/is.txt new file mode 100644 index 000000000..dcfabacd9 --- /dev/null +++ b/crates/typst/translations/is.txt @@ -0,0 +1,7 @@ +figure = Mynd +table = Tafla +equation = Jafna +bibliography = Heimildaskrá +heading = Kafli +outline = Efnisyfirlit +raw = Sýnishorn