From ea3bec0b10581d404b95496c8bdbe3e3f0b39a8b Mon Sep 17 00:00:00 2001 From: skyclouds2001 <95597335+skyclouds2001@users.noreply.github.com> Date: Thu, 19 Sep 2024 17:23:22 +0800 Subject: [PATCH 1/3] add i18n --- kumascript/macros/WebExtAllExamples.ejs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/kumascript/macros/WebExtAllExamples.ejs b/kumascript/macros/WebExtAllExamples.ejs index c69a1b5cde57..57cf6dafeeec 100644 --- a/kumascript/macros/WebExtAllExamples.ejs +++ b/kumascript/macros/WebExtAllExamples.ejs @@ -17,15 +17,21 @@ const allExamples = await MDN.fetchWebExtExamples(); const lang = env.locale; const s_name = mdn.localString({ - "en-US": "Name" + "en-US": "Name", + "zh-CN": "名称", + "zh-TW": "名稱", }); const s_desc = mdn.localString({ - "en-US": "Description" + "en-US": "Description", + "zh-CN": "描述", + "zh-TW": "描述", }); const s_javascript_apis = mdn.localString({ - "en-US": "JavaScript APIs" + "en-US": "JavaScript APIs", + "zh-CN": "JavaScript API", + "zh-TW": "JavaScript API", }); const s_webextension_api_path = mdn.localString({ From 95f1fbeb87e717e243cd6534721e487676d6d8ef Mon Sep 17 00:00:00 2001 From: skyclouds2001 <95597335+skyclouds2001@users.noreply.github.com> Date: Thu, 19 Sep 2024 22:29:10 +0800 Subject: [PATCH 2/3] Update kumascript/macros/WebExtAllExamples.ejs --- kumascript/macros/WebExtAllExamples.ejs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kumascript/macros/WebExtAllExamples.ejs b/kumascript/macros/WebExtAllExamples.ejs index 57cf6dafeeec..da435c97eb02 100644 --- a/kumascript/macros/WebExtAllExamples.ejs +++ b/kumascript/macros/WebExtAllExamples.ejs @@ -18,7 +18,7 @@ const lang = env.locale; const s_name = mdn.localString({ "en-US": "Name", - "zh-CN": "名称", + "zh-CN": "名称 ", "zh-TW": "名稱", }); From d168ee3857fb14f04d1ef9f9603b067a2f65cf28 Mon Sep 17 00:00:00 2001 From: skyclouds2001 <95597335+skyclouds2001@users.noreply.github.com> Date: Thu, 19 Sep 2024 22:29:24 +0800 Subject: [PATCH 3/3] Update kumascript/macros/WebExtAllExamples.ejs --- kumascript/macros/WebExtAllExamples.ejs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kumascript/macros/WebExtAllExamples.ejs b/kumascript/macros/WebExtAllExamples.ejs index da435c97eb02..57cf6dafeeec 100644 --- a/kumascript/macros/WebExtAllExamples.ejs +++ b/kumascript/macros/WebExtAllExamples.ejs @@ -18,7 +18,7 @@ const lang = env.locale; const s_name = mdn.localString({ "en-US": "Name", - "zh-CN": "名称 ", + "zh-CN": "名称", "zh-TW": "名稱", });