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: Format /web/api using Prettier (part 12) #14686

Merged
merged 3 commits into from
Jul 30, 2023
Merged

Conversation

queengooborg
Copy link
Collaborator

This PR formats the /web/api folder of the Simplified Chinese locale using Prettier. This is the twelth part.

@queengooborg queengooborg requested a review from a team as a code owner July 28, 2023 11:49
@queengooborg queengooborg requested review from irvin and removed request for a team July 28, 2023 11:49
@github-actions github-actions bot added the l10n-zh Issues related to Chinese content. label Jul 28, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Jul 28, 2023

Preview URLs (72 pages)
Flaws (294)

Note! 22 documents with no flaws that don't need to be listed. 🎉

URL: /zh-CN/docs/Web/API/XMLHttpRequest
Title: XMLHttpRequest
Flaw count: 16

  • macros:
    • /zh-CN/docs/Web/API/XMLHttpRequest/onreadystatechange redirects to /zh-CN/docs/Web/API/XMLHttpRequest/readystatechange_event
    • wrong xref macro used (consider changing which macro you use)
    • wrong xref macro used (consider changing which macro you use)
    • wrong xref macro used (consider changing which macro you use)
    • wrong xref macro used (consider changing which macro you use)
    • and 10 more flaws omitted
  • translation_differences:
    • Differences in the important macros (3 in common of 4 possible)

URL: /zh-CN/docs/Web/API/XMLHttpRequest/loadend_event
Title: loadend
Flaw count: 6

  • macros:
    • wrong xref macro used (consider changing which macro you use)
  • broken_links:
    • Is currently http:// but can become https://
    • Can't resolve /zh-CN/docs/Web/API/Element/error_event
    • Link points to the page it's already on
    • Can't resolve /zh-CN/docs/DOM/XMLHttpRequest/Using_XMLHttpRequest#Monitoring_progress
  • translation_differences:
    • Differences in the important macros (1 in common of 4 possible)

URL: /zh-CN/docs/Web/API/XMLHttpRequest/abort
Title: XMLHttpRequest.abort()
Flaw count: 1

  • macros:
    • /zh-CN/docs/Web/API/XMLHttpRequest/UNSENT does not exist

URL: /zh-CN/docs/Web/API/XMLHttpRequest/Sending_and_Receiving_Binary_Data
Title: 发送和接收二进制数据
Flaw count: 6

  • broken_links:
    • Is currently http:// but can become https://
    • Can't resolve /zh-CN/Code_snippets/Downloading_Files
    • Can't resolve /zh-CN/JavaScript_typed_arrays/ArrayBuffer
    • Can't resolve /zh-CN/JavaScript_typed_arrays/ArrayBuffer
    • Can't resolve /zh-CN/docs/DOM/XMLHttpRequest/Using_XMLHttpRequest#Submitting_forms_and_uploading_files
    • and 1 more flaws omitted

URL: /zh-CN/docs/Web/API/XMLHttpRequest/progress_event
Title: progress event
Flaw count: 2

  • macros:
    • /zh-CN/docs/Web/API/XMLHttpRequestEventTarget/onprogress redirects to /zh-CN/docs/Web/API/XMLHttpRequest/progress_event
  • broken_links:
    • Can't resolve /zh-CN/docs/DOM/XMLHttpRequest/Using_XMLHttpRequest#Monitoring_progress

URL: /zh-CN/docs/Web/API/XMLHttpRequest/abort_event
Title: XMLHttpRequest: abort event
Flaw count: 2

  • macros:
    • /zh-CN/docs/Web/API/XMLHttpRequestEventTarget/onabort redirects to /zh-CN/docs/Web/API/XMLHttpRequest/abort_event
  • broken_links:
    • Anchor not lowercase

URL: /zh-CN/docs/Web/API/XMLHttpRequest/responseText
Title: XMLHttpRequest.responseText
Flaw count: 4

  • macros:
    • wrong xref macro used (consider changing which macro you use)
    • wrong xref macro used (consider changing which macro you use)
    • wrong xref macro used (consider changing which macro you use)
    • /zh-CN/docs/Web/API/XMLHttpRequest/DONE does not exist

URL: /zh-CN/docs/Web/API/XMLHttpRequest/timeout_event
Title: timeout
Flaw count: 1

  • translation_differences:
    • Differences in the important macros (2 in common of 3 possible)

URL: /zh-CN/docs/Web/API/XMLHttpRequest/statusText
Title: XMLHttpRequest.statusText
Flaw count: 3

  • broken_links:
    • Can't resolve /zh-CN/docs/Web/API/DOMString
    • Can't resolve /zh-CN/docs/Web/API/XMLHTTPRequest/status
    • Can't resolve /zh-CN/docs/Web/HTTP/Response_codes

URL: /zh-CN/docs/Web/API/XMLHttpRequest/response
Title: XMLHttpRequest.response
Flaw count: 1

  • macros:
    • wrong xref macro used (consider changing which macro you use)

URL: /zh-CN/docs/Web/API/XMLHttpRequest/status
Title: XMLHttpRequest.status
Flaw count: 2

  • broken_links:
    • Can't resolve /zh-CN/docs/Web/HTTP/Response_codes
    • Can't resolve /zh-CN/docs/Web/HTTP/Response_codes

URL: /zh-CN/docs/Web/API/XMLHttpRequest/load_event
Title: XMLHttpRequest: load event
Flaw count: 2

  • macros:
    • /zh-CN/docs/Web/API/XMLHttpRequestEventTarget/onload redirects to /zh-CN/docs/Web/API/XMLHttpRequest/load_event
  • translation_differences:
    • Differences in the important macros (3 in common of 5 possible)

URL: /zh-CN/docs/Web/API/XMLHttpRequest/readystatechange_event
Title: XMLHttpRequest.onreadystatechange
Flaw count: 1

  • broken_links:
    • Can use the English (en-US) link as a fallback

URL: /zh-CN/docs/Web/API/XMLHttpRequest/error_event
Title: XMLHttpRequest: error 事件
Flaw count: 3

  • macros:
    • /zh-CN/docs/Web/API/XMLHttpRequestEventTarget/onerror redirects to /zh-CN/docs/Web/API/XMLHttpRequest/error_event
  • broken_links:
    • Anchor not lowercase
  • translation_differences:
    • Differences in the important macros (3 in common of 5 possible)

URL: /zh-CN/docs/Web/API/XMLHttpRequest/loadstart_event
Title: loadstart
Flaw count: 6

  • macros:
    • wrong xref macro used (consider changing which macro you use)
  • broken_links:
    • Is currently http:// but can become https://
    • Link points to the page it's already on
    • Can't resolve /zh-CN/docs/Web/API/Element/error_event
    • Can't resolve /zh-CN/docs/DOM/XMLHttpRequest/Using_XMLHttpRequest#Monitoring_progress
  • translation_differences:
    • Differences in the important macros (1 in common of 4 possible)

URL: /zh-CN/docs/Web/API/XMLHttpRequest/Synchronous_and_Asynchronous_Requests
Title: 同步和异步请求
Flaw count: 7

  • broken_links:
    • Can't resolve /zh-CN/DOM/Worker
    • Can't resolve /zh-CN/DOM/XMLHttpRequest
    • Can't resolve /zh-CN/DOM/Worker
    • Can't resolve /zh-CN/DOM/Using_web_workers
    • Can't resolve /zh-CN/docs/Web/API/Window/onunload
    • and 2 more flaws omitted

URL: /zh-CN/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest
Title: 使用 XMLHttpRequest
Flaw count: 12

  • macros:
    • /zh-CN/docs/Web/API/XMLHttpRequest/FormData redirects to /zh-CN/docs/Web/API/FormData
    • /zh-CN/docs/Web/API/XMLHttpRequest/sendAsBinary does not exist
    • /zh-CN/docs/Web/API/XMLHttpRequest/FormData redirects to /zh-CN/docs/Web/API/FormData
  • broken_links:
    • Can't resolve /zh-CN/docs/XMLSerializer
    • Is currently http:// but can become https://
    • Is currently http:// but can become https://
    • Can't resolve /zh-CN/docs/DOM/XMLHttpRequest/FormData/Using_FormData_Objects
    • No need for the pathname in anchor links if it's the same page
    • and 4 more flaws omitted

URL: /zh-CN/docs/Web/API/XMLHttpRequest/responseXML
Title: XMLHttpRequest.responseXML
Flaw count: 1

  • broken_links:
    • Can't resolve /zh-CN/docs/Web/HTTP/Basics_of_HTTP/Data_URIs

URL: /zh-CN/docs/Web/API/WorkerGlobalScope
Title: WorkerGlobalScope
Flaw count: 46

  • macros:
    • /zh-CN/docs/Web/API/WorkerNavigator does not exist but fell back to /en-US/docs/Web/API/WorkerNavigator
    • /zh-CN/docs/Web/API/SharedWorkerGlobalScope does not exist but fell back to /en-US/docs/Web/API/SharedWorkerGlobalScope
    • /zh-CN/docs/Web/API/WindowTimers does not exist
    • /zh-CN/docs/Web/API/WindowBase64 does not exist
    • /zh-CN/docs/Web/API/WindowEventHandlers does not exist
    • and 37 more flaws omitted
  • broken_links:
    • Can use the English (en-US) link as a fallback
    • Can use the English (en-US) link as a fallback
    • Can't resolve /zh-CN/docs/Web/API/Element/error_event
    • Can't resolve /zh-CN/docs/Web/Guide/Performance/Using_web_workers

URL: /zh-CN/docs/Web/API/WorkerGlobalScope/importScripts
Title: WorkerGlobalScope.importScripts()
Flaw count: 1

  • macros:
    • wrong xref macro used (consider changing which macro you use)

URL: /zh-CN/docs/Web/API/XMLSerializer
Title: XMLSerializer
Flaw count: 10

  • macros:
    • /zh-CN/docs/Web/API/XMLSerializer/serializeToString does not exist but fell back to /en-US/docs/Web/API/XMLSerializer/serializeToString
    • /zh-CN/docs/Web/API/XMLSerializer/serializeToString does not exist but fell back to /en-US/docs/Web/API/XMLSerializer/serializeToString
    • /zh-CN/docs/Web/API/XMLSerializer/serializeToStream does not exist
    • /zh-CN/docs/Web/API/XMLSerializer/serializeToString does not exist but fell back to /en-US/docs/Web/API/XMLSerializer/serializeToString
    • /zh-CN/docs/Web/API/ParentNode/append does not exist but fell back to /en-US/docs/Web/API/Element/append
    • and 4 more flaws omitted
  • broken_links:
    • Can't resolve /zh-CN/Parsing_and_serializing_XML

URL: /zh-CN/docs/Web/API/WindowClient
Title: WindowClient
Flaw count: 7

  • macros:
    • /zh-CN/docs/Web/API/WindowClient/focus does not exist but fell back to /en-US/docs/Web/API/WindowClient/focus
    • /zh-CN/docs/Web/API/WindowClient/focused does not exist but fell back to /en-US/docs/Web/API/WindowClient/focused
    • /zh-CN/docs/Web/API/WindowClient/visibilityState does not exist but fell back to /en-US/docs/Web/API/WindowClient/visibilityState
  • broken_links:
    • Can use the English (en-US) link as a fallback
    • Can use the English (en-US) link as a fallback
    • Can't resolve /zh-CN/docs/Web/Guide/Performance/Using_web_workers
  • translation_differences:
    • Differences in the important macros (3 in common of 4 possible)

URL: /zh-CN/docs/Web/API/Worker
Title: Worker
Flaw count: 20

  • macros:
    • /zh-CN/docs/Web/API/ChromeWorker does not exist
    • /zh-CN/docs/Web/API/AbstractWorker does not exist but fell back to /en-US/docs/Web/API/Worker
    • /zh-CN/docs/Web/API/AbstractWorker/onerror does not exist but fell back to /en-US/docs/Web/API/Worker/error_event
    • /zh-CN/docs/Web/API/EventListener redirects to /zh-CN/docs/Web/API/EventTarget/addEventListener
    • /zh-CN/docs/Web/API/AbstractWorker does not exist but fell back to /en-US/docs/Web/API/Worker
    • and 7 more flaws omitted
  • broken_links:
    • Can't resolve /zh-CN/DOM/XMLHttpRequest
    • Can't resolve /zh-CN/docs/Mozilla/js-ctypes
    • Can use the English (en-US) link as a fallback
    • Is currently http:// but can become https://
    • Can't resolve /zh-CN/docs/Web/API/Element/error_event
    • and 3 more flaws omitted

URL: /zh-CN/docs/Web/API/Worker/postMessage
Title: Worker.postMessage()
Flaw count: 5

  • macros:
    • /zh-CN/docs/Web/API/MessagePort/postMessage does not exist but fell back to /en-US/docs/Web/API/MessagePort/postMessage
    • /zh-CN/docs/Web/API/DedicatedWorkerGlobalScope/postMessage does not exist but fell back to /en-US/docs/Web/API/DedicatedWorkerGlobalScope/postMessage
    • /zh-CN/docs/Web/API/DedicatedWorkerGlobalScope/message_event does not exist but fell back to /en-US/docs/Web/API/DedicatedWorkerGlobalScope/message_event
    • wrong xref macro used (consider changing which macro you use)
  • broken_links:
    • Is currently http:// but can become https://

URL: /zh-CN/docs/Web/API/Worker/Worker
Title: Worker()
Flaw count: 6

  • macros:
    • wrong xref macro used (consider changing which macro you use)
    • wrong xref macro used (consider changing which macro you use)
    • wrong xref macro used (consider changing which macro you use)
    • wrong xref macro used (consider changing which macro you use)
  • broken_links:
    • Can't resolve /zh-CN/Same_origin_policy_for_JavaScript
    • Is currently http:// but can become https://

URL: /zh-CN/docs/Web/API/XPathEvaluator
Title: XPathEvaluator
Flaw count: 5

  • macros:
    • /zh-CN/docs/Web/API/XPathEvaluator/createExpression does not exist but fell back to /en-US/docs/Web/API/XPathEvaluator/createExpression
    • /zh-CN/docs/Web/API/XPathEvaluator/createNSResolver does not exist but fell back to /en-US/docs/Web/API/XPathEvaluator/createNSResolver
    • /zh-CN/docs/Web/API/XPathEvaluator/evaluate does not exist but fell back to /en-US/docs/Web/API/XPathEvaluator/evaluate
    • /zh-CN/docs/Web/API/XPathExpression does not exist but fell back to /en-US/docs/Web/API/XPathExpression
  • translation_differences:
    • Differences in the important macros (3 in common of 5 possible)

URL: /zh-CN/docs/Web/API/WritableStream
Title: WritableStream
Flaw count: 1

  • macros:
    • /zh-CN/docs/Web/API/WritableStream/close does not exist but fell back to /en-US/docs/Web/API/WritableStream/close

URL: /zh-CN/docs/Web/API/Window/scrollX
Title: Window.scrollX
Flaw count: 2

  • broken_links:
    • Is currently http:// but can become https://
  • translation_differences:
    • Differences in the important macros (0 in common of 4 possible)

URL: /zh-CN/docs/Web/API/Window/postMessage
Title: window.postMessage
Flaw count: 9

  • macros:
    • /zh-CN/docs/Web/API/Transferable does not exist
  • broken_links:
    • Can use the English (en-US) link as a fallback
    • No need for the pathname in anchor links if it's the same page
    • Can't resolve /zh-CN/docs/DOM/window.open
    • Can use the English (en-US) link as a fallback
    • Can use the English (en-US) link as a fallback
    • and 3 more flaws omitted

URL: /zh-CN/docs/Web/API/Window/scrollY
Title: Window.scrollY
Flaw count: 1

  • translation_differences:
    • Differences in the important macros (2 in common of 4 possible)

URL: /zh-CN/docs/Web/API/Window/popstate_event
Title: WindowEventHandlers.onpopstate
Flaw count: 4

  • macros:
    • /zh-CN/docs/Web/API/WindowEventHandlers does not exist
  • broken_links:
    • Link points to the page it's already on
    • Can use the English (en-US) link as a fallback
  • translation_differences:
    • Differences in the important macros (2 in common of 4 possible)

URL: /zh-CN/docs/Web/API/Window/unhandledrejection_event
Title: unhandledrejection
Flaw count: 3

  • macros:
    • /zh-CN/docs/Web/API/WindowEventHandlers/onunhandledrejection does not exist but fell back to /en-US/docs/Web/API/Window/unhandledrejection_event
    • /zh-CN/docs/Web/API/WindowEventHandlers/onunhandledrejection does not exist but fell back to /en-US/docs/Web/API/Window/unhandledrejection_event
    • /zh-CN/docs/Web/API/Promise does not exist but fell back to /en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise

URL: /zh-CN/docs/Web/API/Window/sidebar
Title: Window.sidebar
Flaw count: 3

  • broken_links:
    • Can't resolve /zh-CN/docs/Creating_a_Firefox_sidebar
    • Can use the English (en-US) link as a fallback
  • translation_differences:
    • Differences in the important macros (1 in common of 2 possible)

URL: /zh-CN/docs/Web/API/Window/storage_event
Title: storage
Flaw count: 7

  • macros:
    • wrong xref macro used (consider changing which macro you use)
    • wrong xref macro used (consider changing which macro you use)
    • wrong xref macro used (consider changing which macro you use)
    • wrong xref macro used (consider changing which macro you use)
    • wrong xref macro used (consider changing which macro you use)
  • broken_links:
    • Is currently http:// but can become https://
  • translation_differences:
    • Differences in the important macros (1 in common of 3 possible)

URL: /zh-CN/docs/Web/API/Window/menubar
Title: Window.menubar
Flaw count: 6

  • broken_links:
    • Can't resolve /zh-CN/DOM/window.locationbar
    • Can't resolve /zh-CN/DOM/window.personalbar
    • Can't resolve /zh-CN/DOM/window.scrollbars
    • Can't resolve /zh-CN/DOM/window.statusbar
    • Can't resolve /zh-CN/DOM/window.toolbar
  • translation_differences:
    • Differences in the important macros (2 in common of 3 possible)

URL: /zh-CN/docs/Web/API/Window/sessionStorage
Title: Window.sessionStorage
Flaw count: 2

  • broken_links:
    • Can't resolve /zh-CN/docs/Web/API/DOMString
  • translation_differences:
    • Differences in the important macros (2 in common of 4 possible)

URL: /zh-CN/docs/Web/API/Window/requestIdleCallback
Title: requestIdleCallback
Flaw count: 2

  • macros:
    • /zh-CN/docs/Web/API/Window/setTimeout redirects to /zh-CN/docs/Web/API/setTimeout
    • /zh-CN/docs/Web/API/Window/setInterval redirects to /zh-CN/docs/Web/API/setInterval

URL: /zh-CN/docs/Web/API/Window/name
Title: Window.name
Flaw count: 1

  • broken_links:
    • Is currently http:// but can become https://

URL: /zh-CN/docs/Web/API/Window/online_event
Title: Window:online 事件
Flaw count: 2

  • macros:
    • /zh-CN/docs/Web/API/Navigator/onLine does not exist but fell back to /en-US/docs/Web/API/Navigator/onLine
    • /zh-CN/docs/Web/API/GlobalEventHandlers/ononline does not exist

URL: /zh-CN/docs/Web/API/Window/locationbar
Title: Window.locationbar
Flaw count: 3

  • macros:
    • /zh-CN/docs/Web/API/Window/statusbar does not exist but fell back to /en-US/docs/Web/API/Window/statusbar
    • /zh-CN/docs/Web/API/Window/toolbar does not exist but fell back to /en-US/docs/Web/API/Window/toolbar
  • translation_differences:
    • Differences in the important macros (2 in common of 3 possible)

URL: /zh-CN/docs/Web/API/Window/open
Title: Window.open()
Flaw count: 42

  • macros:
    • wrong xref macro used (consider changing which macro you use)
  • broken_links:
    • Anchor not lowercase
    • Anchor not lowercase
    • Anchor not lowercase
    • Anchor not lowercase
    • Anchor not lowercase
    • and 35 more flaws omitted
  • translation_differences:
    • Differences in the important macros (2 in common of 3 possible)

URL: /zh-CN/docs/Web/API/Window/pagehide_event
Title: Window: 页面隐藏事件 (pagehide event)
Flaw count: 2

  • macros:
    • /zh-CN/docs/Web/API/Window/onpagehide does not exist
    • /zh-CN/docs/Web/API/Window/onpagehide does not exist

URL: /zh-CN/docs/Web/API/Window/personalbar
Title: Window.personalbar
Flaw count: 5

  • macros:
    • Unknown macro todo
    • /zh-CN/docs/Web/API/Window/statusbar does not exist but fell back to /en-US/docs/Web/API/Window/statusbar
    • /zh-CN/docs/Web/API/Window/toolbar does not exist but fell back to /en-US/docs/Web/API/Window/toolbar
  • broken_links:
    • Can't resolve /zh-CN/docs/Bypassing_Security_Restrictions_and_Signing_Code
  • translation_differences:
    • Differences in the important macros (2 in common of 3 possible)

URL: /zh-CN/docs/Web/API/Window/opener
Title: window.opener
Flaw count: 1

  • translation_differences:
    • Differences in the important macros (2 in common of 4 possible)

URL: /zh-CN/docs/Web/API/Window/pageshow_event
Title: pageshow
Flaw count: 5

  • macros:
    • wrong xref macro used (consider changing which macro you use)
  • broken_links:
    • Is currently http:// but can become https://
    • Can use the English (en-US) link as a fallback
    • Can use the English (en-US) link as a fallback
  • translation_differences:
    • Differences in the important macros (2 in common of 4 possible)

URL: /zh-CN/docs/Web/API/Window/matchMedia
Title: Window.matchMedia()
Flaw count: 7

  • macros:
    • /zh-CN/docs/Web/API/MediaQueryList/media does not exist but fell back to /en-US/docs/Web/API/MediaQueryList/media
    • /zh-CN/docs/Web/API/MediaQueryListListener does not exist but fell back to /en-US/docs/Web/API/MediaQueryList
  • broken_links:
    • Can use the English (en-US) link as a fallback
    • Can use the English (en-US) link as a fallback
    • Can use the English (en-US) link as a fallback
    • Can use the English (en-US) link as a fallback
  • translation_differences:
    • Differences in the important macros (3 in common of 5 possible)

URL: /zh-CN/docs/Web/API/Window/scroll
Title: Window.scroll()
Flaw count: 2

  • macros:
    • /zh-CN/docs/Web/API/ScrollToOptions redirects to /zh-CN/docs/Web/API/Window/scroll
  • translation_differences:
    • Differences in the important macros (2 in common of 3 possible)

URL: /zh-CN/docs/Web/API/Window/orientationchange_event
Title: orientationchange
Flaw count: 3

  • macros:
    • /zh-CN/docs/Web/API/Window/onorientationchange does not exist
    • /zh-CN/docs/Web/API/Window/onorientationchange does not exist
  • translation_differences:
    • Differences in the important macros (2 in common of 3 possible)

URL: /zh-CN/docs/Web/API/Window/window
Title: Window.window
Flaw count: 2

  • broken_links:
    • Can't resolve /zh-CN/docs/Mozilla/JavaScript_code_modules
  • translation_differences:
    • Differences in the important macros (2 in common of 3 possible)

URL: /zh-CN/docs/Web/API/Window/unload_event
Title: unload
Flaw count: 3

  • macros:
    • /zh-CN/docs/Web/API/WindowEventHandlers/onunload redirects to /zh-CN/docs/Web/API/Window/unload_event
  • broken_links:
    • Can use the English (en-US) link as a fallback
    • Can use the English (en-US) link as a fallback

(comment last updated: 2023-07-30 02:40:21)

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.

Thanks

@yin1999 yin1999 merged commit fa02a62 into main Jul 30, 2023
9 checks passed
@yin1999 yin1999 deleted the zh-cn/prettier/web/api/12 branch July 30, 2023 02:39
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.

2 participants