diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-09-21 18:01:19 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-09-21 18:01:19 -0400 |
| commit | 68bedd3c23757a8576e77f38e38ddcf9ecd26d19 (patch) | |
| tree | 86ce1610143efc43453f50d3413925797601c48a /api/text.yaml | |
| parent | 0815de981c683cac7dbac082ee14c11894089f31 (diff) | |
Use colons instead of '=' for tables (e.g. {1: 2})
Diffstat (limited to 'api/text.yaml')
| -rw-r--r-- | api/text.yaml | 12 |
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({ - "&" = "&", - "<" = "<", - ">" = ">", - '"" = """, - "'" = "'", + "&": "&", + "<": "<", + ">": ">", + '"": """, + "'": "'", }) = "A <tag> & an ampersand" |
