From 9cd509c7f4c607b4829578118896ad59eec43bdf Mon Sep 17 00:00:00 2001 From: 42 <37006258+MirrorCY@users.noreply.github.com> Date: Mon, 18 Mar 2024 00:11:24 +0800 Subject: [PATCH] =?UTF-8?q?i18n=20=E5=B8=A6=E6=8F=92=E5=80=BC=E7=9A=84?= =?UTF-8?q?=E7=94=A8=E6=B3=95=20(#158)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Shigma --- zh-CN/api/message/components.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/zh-CN/api/message/components.md b/zh-CN/api/message/components.md index 5da17b461144..5b008e7d0aac 100644 --- a/zh-CN/api/message/components.md +++ b/zh-CN/api/message/components.md @@ -52,6 +52,21 @@ foo: Hello, world! +这个组件也可以配合插值使用: + +```html +{'Koishi'} +``` + +```yaml +foo: + bar: Hello, {0}! +``` + + +Hello, Koishi! + + ### 时间 (i18n:time) 会话+广播 - **value:** 时间长度(毫秒)