summaryrefslogtreecommitdiff
path: root/tests/typ
diff options
context:
space:
mode:
authorMALO <57839069+MDLC01@users.noreply.github.com>2023-11-10 17:17:39 +0100
committerGitHub <noreply@github.com>2023-11-10 17:17:39 +0100
commit13f1a4386faac13b21722b744843152a88791e50 (patch)
tree30301f0c69dbbaff24914acfb567bdea7d0e54fc /tests/typ
parent010084e2d6d4c766bac9cc751ee6940cd3278695 (diff)
Improve French and Chinese localization for figures (#2542)
Diffstat (limited to 'tests/typ')
-rw-r--r--tests/typ/meta/figure-localization.typ17
-rw-r--r--tests/typ/meta/figure.typ22
2 files changed, 17 insertions, 22 deletions
diff --git a/tests/typ/meta/figure-localization.typ b/tests/typ/meta/figure-localization.typ
new file mode 100644
index 00000000..da0fb28a
--- /dev/null
+++ b/tests/typ/meta/figure-localization.typ
@@ -0,0 +1,17 @@
+// Test localization-related figure features.
+
+---
+// Test French
+#set text(lang: "fr")
+#figure(
+ circle(),
+ caption: [Un cercle.],
+)
+
+---
+// Test Chinese
+#set text(lang: "zh")
+#figure(
+ rect(),
+ caption: [一个矩形],
+)
diff --git a/tests/typ/meta/figure.typ b/tests/typ/meta/figure.typ
index 36e2da47..7d618d06 100644
--- a/tests/typ/meta/figure.typ
+++ b/tests/typ/meta/figure.typ
@@ -109,25 +109,3 @@ We can clearly see that @fig-cylinder and
table(columns: 2)[a][b],
caption: [The table with custom separator.],
)
-
----
-// Test localized default separator
-#set text(lang: "fr", region: "CH")
-
-#figure(
- circle(),
- caption: [Un cercle.],
-)
-#set text(lang: "es")
-
-#figure(
- polygon.regular(size: 1cm, vertices: 3),
- caption: [Un triángulo.],
-)
-
-#set text(lang: "fr", region: "CA")
-
-#figure(
- square(),
- caption: [Un carré.],
-)