summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJPichel <47296456+JonPichel@users.noreply.github.com>2024-06-22 05:02:38 -0400
committerGitHub <noreply@github.com>2024-06-22 09:02:38 +0000
commit49f1c85c18c847ec2c4e6f5d9fbf13fb84f34f9a (patch)
treec351989284603b6a00e3738ade06d23ea53845a9
parent781eea632f68c478c0a96495f7f4822ba6f7873d (diff)
Add Galician & catalan translations (#4414)
-rw-r--r--crates/typst/src/text/lang.rs5
-rw-r--r--crates/typst/translations/ca.txt7
-rw-r--r--crates/typst/translations/gl.txt7
3 files changed, 18 insertions, 1 deletions
diff --git a/crates/typst/src/text/lang.rs b/crates/typst/src/text/lang.rs
index 05d6104e..39115a34 100644
--- a/crates/typst/src/text/lang.rs
+++ b/crates/typst/src/text/lang.rs
@@ -14,8 +14,9 @@ macro_rules! translation {
};
}
-const TRANSLATIONS: [(&str, &str); 31] = [
+const TRANSLATIONS: [(&str, &str); 33] = [
translation!("ar"),
+ translation!("ca"),
translation!("cs"),
translation!("da"),
translation!("de"),
@@ -24,6 +25,7 @@ const TRANSLATIONS: [(&str, &str); 31] = [
translation!("et"),
translation!("fi"),
translation!("fr"),
+ translation!("gl"),
translation!("gr"),
translation!("hu"),
translation!("it"),
@@ -67,6 +69,7 @@ impl Lang {
pub const FILIPINO: Self = Self(*b"tl ", 2);
pub const FINNISH: Self = Self(*b"fi ", 2);
pub const FRENCH: Self = Self(*b"fr ", 2);
+ pub const GALICIAN: Self = Self(*b"gl ", 2);
pub const GERMAN: Self = Self(*b"de ", 2);
pub const GREEK: Self = Self(*b"gr ", 2);
pub const HUNGARIAN: Self = Self(*b"hu ", 2);
diff --git a/crates/typst/translations/ca.txt b/crates/typst/translations/ca.txt
new file mode 100644
index 00000000..b16d2f9f
--- /dev/null
+++ b/crates/typst/translations/ca.txt
@@ -0,0 +1,7 @@
+figure = Figura
+table = Taula
+equation = Equació
+bibliography = Bibliografia
+heading = Secció
+outline = Índex
+raw = Llistat
diff --git a/crates/typst/translations/gl.txt b/crates/typst/translations/gl.txt
new file mode 100644
index 00000000..7c26953d
--- /dev/null
+++ b/crates/typst/translations/gl.txt
@@ -0,0 +1,7 @@
+figure = Figura
+table = Táboa
+equation = Ecuación
+bibliography = Bibliografía
+heading = Sección
+outline = Índice
+raw = Listado