diff options
| author | Baldur Kristinsson <baldur.kristinsson@gmail.com> | 2024-08-22 10:48:49 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-22 10:48:49 +0000 |
| commit | 4dc2034eeeb8ed0f17dc2a5d48a98512f4ed818a (patch) | |
| tree | 795bf3ca83b6b9b39cf4097c538f7afe38623ca5 /crates | |
| parent | 238f1fad498878f64491645b1f886621da1d4535 (diff) | |
Add Icelandic translation (#4799)
Diffstat (limited to 'crates')
| -rw-r--r-- | crates/typst/src/text/lang.rs | 4 | ||||
| -rw-r--r-- | crates/typst/translations/is.txt | 7 |
2 files changed, 10 insertions, 1 deletions
diff --git a/crates/typst/src/text/lang.rs b/crates/typst/src/text/lang.rs index 041a3bdb..e439533d 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 00000000..dcfabacd --- /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 |
