summaryrefslogtreecommitdiff
path: root/tests/typ
diff options
context:
space:
mode:
authorMALO <57839069+MDLC01@users.noreply.github.com>2023-10-22 13:33:00 +0200
committerGitHub <noreply@github.com>2023-10-22 13:33:00 +0200
commitaaac1dbd683501e81bef4d961ed90c6c869030e4 (patch)
treee023f78008aa08282e4f1f53ad4b7cc3c8328a09 /tests/typ
parent7f185f21e0b93c981ed99bd35ff1e981f48c7be0 (diff)
Adapt default figure separator to the current locale (#2390)
Diffstat (limited to 'tests/typ')
-rw-r--r--tests/typ/meta/figure.typ22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/typ/meta/figure.typ b/tests/typ/meta/figure.typ
index 7d618d06..36e2da47 100644
--- a/tests/typ/meta/figure.typ
+++ b/tests/typ/meta/figure.typ
@@ -109,3 +109,25 @@ 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é.],
+)