From 4c89c2a8eb533f7f2c962f83e2053b4523ca0475 Mon Sep 17 00:00:00 2001 From: skyclouds2001 <95597335+skyclouds2001@users.noreply.github.com> Date: Fri, 5 Apr 2024 06:55:43 +0800 Subject: [PATCH] chore(macros/AvailableInWorkers): add zh-CN translation (#10843) * add zh-CN i18n * Apply suggestions from code review Co-authored-by: A1lo --------- Co-authored-by: A1lo --- kumascript/macros/AvailableInWorkers.ejs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kumascript/macros/AvailableInWorkers.ejs b/kumascript/macros/AvailableInWorkers.ejs index 0659e7c39706..79bf3f2c4730 100644 --- a/kumascript/macros/AvailableInWorkers.ejs +++ b/kumascript/macros/AvailableInWorkers.ejs @@ -48,22 +48,27 @@ const textNotService = mdn.localString({ const textNotServiceNotWindow = mdn.localString({ "en-US": `This feature is only available in Web Workers, except for Service Workers.`, + "zh-CN": `此特性仅在 Web Worker(不包括 Service Worker)中可用。`, }); const textDedicated = mdn.localString({ "en-US": `This feature is available in Dedicated Web Workers.`, + "zh-CN": `此特性在专用 Web Worker中可用。`, }); const textDedicatedOnly = mdn.localString({ "en-US": `This feature is only available in Dedicated Web Workers.`, + "zh-CN": `此特性仅在专用 Web Worker 中可用。`, }); const textService = mdn.localString({ "en-US": `This feature is available in Service Workers.`, + "zh-CN": `此特性在 Service Worker 中可用。`, }); const textServiceOnly = mdn.localString({ "en-US": `This feature is only available in Service Workers.`, + "zh-CN": `此特性仅在 Service Worker 中可用。`, }) const workerType = $0 || 'default';