From 68bedd3c23757a8576e77f38e38ddcf9ecd26d19 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 21 Sep 2025 18:01:19 -0400 Subject: Use colons instead of '=' for tables (e.g. {1: 2}) --- api/text.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'api/text.yaml') 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 & an amperand".translate({ - "&" = "&", - "<" = "<", - ">" = ">", - '"" = """, - "'" = "'", + "&": "&", + "<": "<", + ">": ">", + '"": """, + "'": "'", }) = "A <tag> & an ampersand" -- cgit v1.2.3