aboutsummaryrefslogtreecommitdiff
path: root/api/text.yaml
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-09-21 18:01:19 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-09-21 18:01:19 -0400
commit68bedd3c23757a8576e77f38e38ddcf9ecd26d19 (patch)
tree86ce1610143efc43453f50d3413925797601c48a /api/text.yaml
parent0815de981c683cac7dbac082ee14c11894089f31 (diff)
Use colons instead of '=' for tables (e.g. {1: 2})
Diffstat (limited to 'api/text.yaml')
-rw-r--r--api/text.yaml12
1 files changed, 6 insertions, 6 deletions
diff --git a/api/text.yaml b/api/text.yaml
index d209f4b3..dcdcfb67 100644
--- a/api/text.yaml
+++ b/api/text.yaml
@@ -851,16 +851,16 @@ Text.translate:
description: >
The text to be translated.
translations:
- type: '{Text=Text}'
+ type: '{Text:Text}'
description: >
A table mapping from target text to its replacement.
example: |
>> "A <tag> & an amperand".translate({
- "&" = "&amp;",
- "<" = "&lt;",
- ">" = "&gt;",
- '"" = "&quot",
- "'" = "&#39;",
+ "&": "&amp;",
+ "<": "&lt;",
+ ">": "&gt;",
+ '"": "&quot",
+ "'": "&#39;",
})
= "A &lt;tag&gt; &amp; an ampersand"