Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zh-cn: translate for CookieStoreManager #20346

Merged
merged 3 commits into from
May 15, 2024

Conversation

xyy94813
Copy link
Contributor

Description

translate for CookieStoreManager intro

Motivation

learning and translating

Additional details

None.

Related issues and pull requests

None.

@xyy94813 xyy94813 requested a review from a team as a code owner May 13, 2024 14:20
@xyy94813 xyy94813 requested review from yin1999 and removed request for a team May 13, 2024 14:20
@github-actions github-actions bot added the l10n-zh Issues related to Chinese content. label May 13, 2024
Copy link
Contributor

github-actions bot commented May 13, 2024

Preview URLs

Flaws (8)

URL: /zh-CN/docs/Web/API/CookieStoreManager
Title: CookieStoreManager
Flaw count: 8

  • macros:
    • /zh-CN/docs/Web/API/CookieStoreManager/subscribe does not exist but fell back to /en-US/docs/Web/API/CookieStoreManager/subscribe
    • /zh-CN/docs/Web/API/ServiceWorkerRegistration does not exist but fell back to /en-US/docs/Web/API/ServiceWorkerRegistration
    • /zh-CN/docs/Web/API/CookieStoreManager/getSubscriptions does not exist but fell back to /en-US/docs/Web/API/CookieStoreManager/getSubscriptions
    • /zh-CN/docs/Web/API/CookieStoreManager/subscribe does not exist but fell back to /en-US/docs/Web/API/CookieStoreManager/subscribe
    • /zh-CN/docs/Web/API/CookieStoreManager/unsubscribe does not exist but fell back to /en-US/docs/Web/API/CookieStoreManager/unsubscribe
    • and 3 more flaws omitted

(comment last updated: 2024-05-14 03:48:57)

Copy link
Member

@yin1999 yin1999 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

关于“Service Worker registration”的翻译还有待商榷,可以请问一下“注册器”这一翻译的来源吗。

files/zh-cn/web/api/cookiestoremanager/index.md Outdated Show resolved Hide resolved

{{securecontext_header}}{{APIRef("Cookie Store API")}}{{AvailableInWorkers("window_and_service")}}

{{domxref("Cookie Store API", "", "", "nocode")}} 的 **`CookieStoreManager`** 接口允许 Service Worker 订阅 cookie 变更事件。调用特定的 Service Worker 注册器的 {{domxref("CookieStoreManager.subscribe()","subscribe()")}} 方法接收变更事件。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#20146。后面参数可能都会改成“1”,就先统一用“1”吧

Suggested change
{{domxref("Cookie Store API", "", "", "nocode")}} 的 **`CookieStoreManager`** 接口允许 Service Worker 订阅 cookie 变更事件。调用特定的 Service Worker 注册器的 {{domxref("CookieStoreManager.subscribe()","subscribe()")}} 方法接收变更事件。
{{domxref("Cookie Store API", "", "", 1)}} 的 **`CookieStoreManager`** 接口允许 Service Worker 订阅 cookie 变更事件。调用特定的 Service Worker 注册器的 {{domxref("CookieStoreManager.subscribe()","subscribe()")}} 方法接收变更事件。

@xyy94813
Copy link
Contributor Author

关于“Service Worker registration”的翻译还有待商榷,可以请问一下“注册器”这一翻译的来源吗。

抱歉,我把上次讨论的结果记混了。

Copy link
Contributor Author

@xyy94813 xyy94813 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Service Worker 注册器" -> “Service Worker Registration”

files/zh-cn/web/api/cookiestoremanager/index.md Outdated Show resolved Hide resolved
files/zh-cn/web/api/cookiestoremanager/index.md Outdated Show resolved Hide resolved
files/zh-cn/web/api/cookiestoremanager/index.md Outdated Show resolved Hide resolved
@yin1999 yin1999 merged commit cb3956d into mdn:main May 15, 2024
7 checks passed
@xyy94813 xyy94813 deleted the zh-cn/cookie-store-manager branch May 15, 2024 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
l10n-zh Issues related to Chinese content.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants