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 1) #14673

Merged
merged 3 commits into from
Jul 29, 2023

Conversation

queengooborg
Copy link
Collaborator

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

@queengooborg queengooborg requested a review from a team as a code owner July 28, 2023 09:49
@queengooborg queengooborg requested review from jasonren0403 and removed request for a team July 28, 2023 09:49
@github-actions github-actions bot added the l10n-zh Issues related to Chinese content. label Jul 28, 2023
Comment on lines 26 to 27
abort();
abort(reason);
Copy link
Contributor

Choose a reason for hiding this comment

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

a handy update

Suggested change
abort();
abort(reason);
AbortSignal.abort()
AbortSignal.abort(reason)

@@ -23,8 +23,8 @@ return controller.signal;
## 语法

```js
Copy link
Contributor

Choose a reason for hiding this comment

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

Should have nolint

Suggested change
```js
```js-nolint

@@ -14,7 +14,7 @@ slug: Web/API/AbortSignal/throwIfAborted
## 语法

```js
throwIfAborted()
throwIfAborted();
Copy link
Contributor

Choose a reason for hiding this comment

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

API part may contain a lot of code without nolint :(

Suggested change
throwIfAborted();
throwIfAborted()

@@ -14,7 +14,7 @@ slug: Web/API/AbortSignal/throwIfAborted
## 语法

```js
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
```js
```js-nolint

@@ -17,7 +17,7 @@ original_slug: Web/API/AbortSignal/timeout
## 语法

```js
timeout(time)
timeout(time);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
timeout(time);
AbortSignal.timeout(time)

@@ -17,7 +17,7 @@ original_slug: Web/API/AbortSignal/timeout
## 语法

```js
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
```js
```js-nolint

Copy link
Contributor

@jasonren0403 jasonren0403 left a comment

Choose a reason for hiding this comment

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

Thank you @queengooborg , I've allowed myself to fix some occurences where 'nolint' should be added.

Copy link
Contributor

@jasonren0403 jasonren0403 Jul 29, 2023

Choose a reason for hiding this comment

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

It seems that we should not put anything in 5th param of EmbedLiveSample, or build would broke up.

I'm not sure if we should do a scan to batch remove 5th param in en-US content.

/cc @yin1999

image

Copy link
Member

Choose a reason for hiding this comment

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

There does have a issue: mdn/content#25005

@github-actions
Copy link
Contributor

Preview URLs (100 pages)
Flaws (377)

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

URL: /zh-CN/docs/Web/API/AudioBuffer
Title: AudioBuffer
Flaw count: 3

  • macros:
    • /zh-CN/docs/Web/API/AudioContext/decodeAudioData redirects to /zh-CN/docs/Web/API/BaseAudioContext/decodeAudioData
    • /zh-CN/docs/Web/API/AudioContext/createBuffer redirects to /zh-CN/docs/Web/API/BaseAudioContext/createBuffer
    • /zh-CN/docs/Web/API/AudioBuffer/copyToChannel does not exist but fell back to /en-US/docs/Web/API/AudioBuffer/copyToChannel

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

  • macros:
    • /zh-CN/docs/Web/API/Float32Array does not exist but fell back to /en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array
    • /zh-CN/docs/Web/API/Float32Array does not exist but fell back to /en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array

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

  • macros:
    • /zh-CN/docs/Web/API/Float32Array does not exist but fell back to /en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array

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

  • macros:
    • /zh-CN/docs/Web/API/Boolean does not exist but fell back to /en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean
    • /zh-CN/docs/Web/API/AbortSignal/abort redirects to /zh-CN/docs/Web/API/AbortSignal/abort_static
    • /zh-CN/docs/Web/API/AbortSignal/timeout redirects to /zh-CN/docs/Web/API/AbortSignal/timeout_static
    • /zh-CN/docs/Web/API/AbortSignal/timeout redirects to /zh-CN/docs/Web/API/AbortSignal/timeout_static
    • /zh-CN/docs/Web/API/AbortSignal/timeout redirects to /zh-CN/docs/Web/API/AbortSignal/timeout_static

URL: /zh-CN/docs/Web/API/AbortSignal/aborted
Title: AbortSignal.aborted
Flaw count: 1

  • macros:
    • /zh-CN/docs/Web/API/Boolean does not exist but fell back to /en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean

URL: /zh-CN/docs/Web/API/AbortSignal/reason
Title: AbortSignal.reason
Flaw count: 1

  • macros:
    • /zh-CN/docs/Web/API/AbortSignal/abort redirects to /zh-CN/docs/Web/API/AbortSignal/abort_static

URL: /zh-CN/docs/Web/API/Accelerometer
Title: Accelerometer
Flaw count: 6

  • macros:
    • /zh-CN/docs/Web/API/Accelerometer/Accelerometer does not exist but fell back to /en-US/docs/Web/API/Accelerometer/Accelerometer
    • /zh-CN/docs/Web/API/Accelerometer/x does not exist but fell back to /en-US/docs/Web/API/Accelerometer/x
    • /zh-CN/docs/Web/API/Accelerometer/y does not exist but fell back to /en-US/docs/Web/API/Accelerometer/y
    • /zh-CN/docs/Web/API/Accelerometer/z does not exist but fell back to /en-US/docs/Web/API/Accelerometer/z
    • /zh-CN/docs/Web/API/Sensor/onreading does not exist but fell back to /en-US/docs/Web/API/Sensor/reading_event
  • translation_differences:
    • Differences in the important macros (2 in common of 5 possible)

URL: /zh-CN/docs/Web/API/Animation/playState
Title: Animation.playState
Flaw count: 4

  • macros:
    • /zh-CN/docs/Web/API/Animation/pause does not exist but fell back to /en-US/docs/Web/API/Animation/pause
  • broken_links:
    • Is currently http:// but can become https://
    • Is currently http:// but can become https://
  • translation_differences:
    • Differences in the important macros (3 in common of 4 possible)

URL: /zh-CN/docs/Web/API/Animation/finished
Title: Animation.finished
Flaw count: 2

  • broken_links:
    • Can use the English (en-US) link as a fallback
  • translation_differences:
    • Differences in the important macros (2 in common of 5 possible)

URL: /zh-CN/docs/Web/API/Animation/play
Title: Animation.play()
Flaw count: 4

  • macros:
    • /zh-CN/docs/Web/API/Animation/pause does not exist but fell back to /en-US/docs/Web/API/Animation/pause
    • /zh-CN/docs/Web/API/Animation/reverse does not exist but fell back to /en-US/docs/Web/API/Animation/reverse
  • broken_links:
    • Is currently http:// but can become https://
  • translation_differences:
    • Differences in the important macros (3 in common of 4 possible)

URL: /zh-CN/docs/Web/API/Animation/finish
Title: Animation.finish()
Flaw count: 3

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

URL: /zh-CN/docs/Web/API/Animation/effect
Title: Animation.effect
Flaw count: 4

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

URL: /zh-CN/docs/Web/API/Canvas_API
Title: Canvas
Flaw count: 17

  • macros:
    • /zh-CN/docs/Web/API/CanvasImageSource redirects to /zh-CN/docs/Web/API/CanvasRenderingContext2D
    • /zh-CN/docs/Web/API/RenderingContext does not exist
    • /zh-CN/docs/Web/API/CanvasCaptureMediaStream redirects to /zh-CN/docs/Web/API/CanvasCaptureMediaStreamTrack
  • broken_links:
    • Can't resolve /zh-CN/docs/Web/WebGL
    • Can't resolve /zh-CN/docs/Web/WebGL
    • Can't resolve /zh-CN/docs/Web/Guide/HTML/Canvas_tutorial
    • Can't resolve /zh-CN/Add-ons/Code_snippets/Canvas
    • Is currently http:// but can become https://
    • and 8 more flaws omitted
  • translation_differences:
    • Differences in the important macros (2 in common of 5 possible)

URL: /zh-CN/docs/Web/API/Canvas_API/Manipulating_video_using_canvas
Title: 使用 canvas 处理视频
Flaw count: 4

  • broken_links:
    • Can't resolve /samples/video/chroma-key/index.xhtml
    • Can't resolve /samples/video/chroma-key/index.xhtml
    • 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/Canvas_API/Tutorial/Drawing_text
Title: 绘制文本
Flaw count: 3

  • broken_links:
    • Is currently http:// but can become https://
    • Anchor not lowercase
  • translation_differences:
    • Differences in the important macros (1 in common of 7 possible)

URL: /zh-CN/docs/Web/API/Canvas_API/Tutorial/Drawing_shapes
Title: 使用 canvas 来绘制图形
Flaw count: 3

  • broken_links:
    • Anchor not lowercase
    • Can use the English (en-US) link as a fallback
  • translation_differences:
    • Differences in the important macros (1 in common of 19 possible)

URL: /zh-CN/docs/Web/API/Canvas_API/Tutorial/Basic_animations
Title: 基本的动画
Flaw count: 5

  • macros:
    • /zh-CN/docs/Web/API/Window/setInterval redirects to /zh-CN/docs/Web/API/setInterval
    • /zh-CN/docs/Web/API/Window/setTimeout redirects to /zh-CN/docs/Web/API/setTimeout
    • /zh-CN/docs/Web/API/WindowTimers/setInterval does not exist but fell back to /en-US/docs/Web/API/setInterval
    • /zh-CN/docs/Web/API/WindowTimers/setTimeout does not exist but fell back to /en-US/docs/Web/API/setTimeout
  • translation_differences:
    • Differences in the important macros (1 in common of 9 possible)

URL: /zh-CN/docs/Web/API/Canvas_API/Tutorial/Optimizing_canvas
Title: canvas 的优化
Flaw count: 3

  • macros:
    • /zh-CN/docs/Web/API/Window/setInterval redirects to /zh-CN/docs/Web/API/setInterval
  • broken_links:
    • Can't resolve /zh-CN/docs/Web/Guide/CSS/Using_CSS_transforms
    • Is currently http:// but can become https://

URL: /zh-CN/docs/Web/API/Canvas_API/Tutorial/Transformations
Title: 变形 Transformations
Flaw count: 2

  • broken_links:
    • Anchor not lowercase
  • translation_differences:
    • Differences in the important macros (1 in common of 11 possible)

URL: /zh-CN/docs/Web/API/Canvas_API/Tutorial/Compositing
Title: 组合 Compositing
Flaw count: 2

  • macros:
    • unable to find any live code samples for "合成示例" within /zh-CN/docs/Web/API/Canvas_API/Tutorial/Compositing
  • translation_differences:
    • Differences in the important macros (1 in common of 5 possible)

URL: /zh-CN/docs/Web/API/Canvas_API/Tutorial/Compositing/Example
Title: Compositing 示例
Flaw count: 1

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

URL: /zh-CN/docs/Web/API/Canvas_API/Tutorial/Pixel_manipulation_with_canvas
Title: 像素操作
Flaw count: 2

  • broken_links:
    • Can't resolve /zh-CN/docs/Web/HTTP/data_URIs
  • translation_differences:
    • Differences in the important macros (3 in common of 5 possible)

URL: /zh-CN/docs/Web/API/Canvas_API/Tutorial/Applying_styles_and_colors
Title: 使用样式和颜色
Flaw count: 2

  • broken_links:
    • Can't resolve /zh-CN/Canvas_tutorial/Drawing_shapes
  • translation_differences:
    • Differences in the important macros (1 in common of 30 possible)

URL: /zh-CN/docs/Web/API/Canvas_API/Tutorial/Basic_usage
Title: Canvas 的基本用法
Flaw count: 5

  • macros:
    • /zh-CN/docs/Web/API/WindowTimers/setTimeout does not exist but fell back to /en-US/docs/Web/API/setTimeout
    • /zh-CN/docs/Web/API/WindowTimers/setInterval does not exist but fell back to /en-US/docs/Web/API/setInterval
  • broken_links:
    • Can't resolve /zh-CN/docs/Web/WebGL
    • Is currently http:// but can become https://
  • translation_differences:
    • Differences in the important macros (1 in common of 5 possible)

URL: /zh-CN/docs/Web/API/Canvas_API/Tutorial/Advanced_animations
Title: 高级动画
Flaw count: 5

  • broken_links:
    • Can't resolve /zh-CN/docs/Web/Guide/HTML/Canvas_tutorial/Basic_animations
    • Can use the English (en-US) link as a fallback
    • Can't resolve /zh-CN/docs/Web/Events/click
    • Can use the English (en-US) link as a fallback
  • translation_differences:
    • Differences in the important macros (1 in common of 9 possible)

URL: /zh-CN/docs/Web/API/Canvas_API/Tutorial/Using_images
Title: 使用图像
Flaw count: 5

  • macros:
    • /zh-CN/docs/Web/API/CanvasImageSource redirects to /zh-CN/docs/Web/API/CanvasRenderingContext2D
  • broken_links:
    • Is currently http:// but can become https://
    • Can use the English (en-US) link as a fallback
    • Can't resolve /zh-CN/docs/CORS_Enabled_Image#.E4.BB.80.E4.B9.88.E6.98.AF.22.E8.A2.AB.E6.B1.A1.E6.9F.93.22.E7.9A.84canvas
  • translation_differences:
    • Differences in the important macros (1 in common of 9 possible)

URL: /zh-CN/docs/Web/API/Background_Tasks_API
Title: Background Tasks API
Flaw count: 9

  • macros:
    • /zh-CN/docs/Web/API/Promise does not exist but fell back to /en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise
    • /zh-CN/docs/Web/API/WindowTimers/setTimeout does not exist but fell back to /en-US/docs/Web/API/setTimeout
    • /zh-CN/docs/Web/API/WindowTimers/setTimeout does not exist but fell back to /en-US/docs/Web/API/setTimeout
    • /zh-CN/docs/Web/API/IdleDeadline/didTimeout does not exist but fell back to /en-US/docs/Web/API/IdleDeadline/didTimeout
    • /zh-CN/docs/Web/API/WindowTimers/clearTimeout redirects to /zh-CN/docs/Web/API/clearTimeout
    • and 2 more flaws omitted
  • broken_links:
    • Can't resolve /zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Math/random?document_saved=true#Getting_a_random_integer_between_two_values_inclusive
  • translation_differences:
    • Differences in the important macros (3 in common of 5 possible)

URL: /zh-CN/docs/Web/API/AudioDestinationNode
Title: AudioDestinationNode
Flaw count: 3

  • macros:
    • /zh-CN/docs/Web/API/AudioContext/destination redirects to /zh-CN/docs/Web/API/BaseAudioContext/destination
  • broken_links:
    • Is currently http:// but can become https://
    • Is currently http:// but can become https://

URL: /zh-CN/docs/Web/API/AudioWorkletNode
Title: AudioWorkletNode
Flaw count: 9

  • macros:
    • /zh-CN/docs/Web/API/BaseAudioContext/audioWorklet does not exist but fell back to /en-US/docs/Web/API/BaseAudioContext/audioWorklet
    • /zh-CN/docs/Web/API/AudioWorkletNode/AudioWorkletNode does not exist but fell back to /en-US/docs/Web/API/AudioWorkletNode/AudioWorkletNode
    • /zh-CN/docs/Web/API/AudioWorkletNode/port does not exist but fell back to /en-US/docs/Web/API/AudioWorkletNode/port
    • /zh-CN/docs/Web/API/AudioWorkletProcessor/port does not exist but fell back to /en-US/docs/Web/API/AudioWorkletProcessor/port
    • /zh-CN/docs/Web/API/AudioWorkletNode/parameters does not exist but fell back to /en-US/docs/Web/API/AudioWorkletNode/parameters
    • and 3 more flaws omitted
  • translation_differences:
    • Differences in the important macros (3 in common of 4 possible)

URL: /zh-CN/docs/Web/API/AudioNode
Title: AudioNode
Flaw count: 13

  • macros:
    • /zh-CN/docs/Web/API/AudioNode/context does not exist but fell back to /en-US/docs/Web/API/AudioNode/context
    • /zh-CN/docs/Web/API/AudioNode/numberOfInputs does not exist but fell back to /en-US/docs/Web/API/AudioNode/numberOfInputs
    • /zh-CN/docs/Web/API/AudioNode/numberOfOutputs does not exist but fell back to /en-US/docs/Web/API/AudioNode/numberOfOutputs
    • /zh-CN/docs/Web/API/AudioNode/channelCount does not exist but fell back to /en-US/docs/Web/API/AudioNode/channelCount
    • /zh-CN/docs/Web/API/AudioNode/channelCountMode does not exist but fell back to /en-US/docs/Web/API/AudioNode/channelCountMode
    • and 7 more flaws omitted
  • translation_differences:
    • Differences in the important macros (3 in common of 4 possible)

URL: /zh-CN/docs/Web/API/Attr/namespaceURI
Title: Attr.namespaceURI
Flaw count: 3

  • macros:
    • /zh-CN/docs/Web/API/LocalName does not exist
    • /zh-CN/docs/Web/API/Node/namespaceURI does not exist but fell back to /en-US/docs/Web/API/Element/namespaceURI
  • translation_differences:
    • Differences in the important macros (3 in common of 4 possible)

URL: /zh-CN/docs/Web/API/Attr/localName
Title: Attr.localName
Flaw count: 3

  • macros:
    • wrong xref macro used (consider changing which macro you use)
    • /zh-CN/docs/Web/API/Node/localName does not exist but fell back to /en-US/docs/Web/API/Element/localName
  • translation_differences:
    • Differences in the important macros (3 in common of 5 possible)

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

  • broken_links:
    • Is currently http:// but can become https://
    • Can use the English (en-US) link as a fallback

URL: /zh-CN/docs/Web/API/AudioContext/createMediaStreamDestination
Title: AudioContext.createMediaStreamDestination()
Flaw count: 6

  • macros:
    • /zh-CN/docs/Web/API/MediaStreamAudioDestinationNode does not exist but fell back to /en-US/docs/Web/API/MediaStreamAudioDestinationNode
    • /zh-CN/docs/Web/API/MediaStreamAudioDestinationNode does not exist but fell back to /en-US/docs/Web/API/MediaStreamAudioDestinationNode
    • /zh-CN/docs/Web/API/MediaStreamAudioDestinationNode does not exist but fell back to /en-US/docs/Web/API/MediaStreamAudioDestinationNode
    • /zh-CN/docs/Web/API/MediaStreamAudioDestinationNode does not exist but fell back to /en-US/docs/Web/API/MediaStreamAudioDestinationNode
  • broken_links:
    • Can use the English (en-US) link as a fallback
    • Can use the English (en-US) link as a fallback

URL: /zh-CN/docs/Web/API/AudioContext/baseLatency
Title: AudioContext.baseLatency
Flaw count: 1

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

URL: /zh-CN/docs/Web/API/AudioContext/suspend
Title: AudioContext.suspend()
Flaw count: 4

  • macros:
    • /zh-CN/docs/Web/API/AudioContext/state redirects to /zh-CN/docs/Web/API/BaseAudioContext/state
    • /zh-CN/docs/Web/API/Resume does not exist
  • broken_links:
    • Is currently http:// but can become https://
    • Can use the English (en-US) link as a fallback

URL: /zh-CN/docs/Web/API/AudioContext/resume
Title: AudioContext.resume()
Flaw count: 3

  • macros:
    • /zh-CN/docs/Web/API/AudioContext/state redirects to /zh-CN/docs/Web/API/BaseAudioContext/state
    • /zh-CN/docs/Web/API/Suspend does not exist
  • broken_links:
    • Is currently http:// but can become https://

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

  • broken_links:
    • Is currently http:// but can become https://
    • Can use the English (en-US) link as a fallback

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

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

URL: /zh-CN/docs/Web/API/BatteryManager/charging
Title: 电池管理器
Flaw count: 1

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

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

  • macros:
    • /zh-CN/docs/Web/API/AnalyserNode/minDecibels does not exist but fell back to /en-US/docs/Web/API/AnalyserNode/minDecibels
    • /zh-CN/docs/Web/API/AnalyserNode/maxDecibels does not exist but fell back to /en-US/docs/Web/API/AnalyserNode/maxDecibels
    • /zh-CN/docs/Web/API/Float32Array does not exist but fell back to /en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array
    • /zh-CN/docs/Web/API/Uint8Array does not exist but fell back to /en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array
    • /zh-CN/docs/Web/API/AnalyserNode/getFloatTimeDomainData does not exist but fell back to /en-US/docs/Web/API/AnalyserNode/getFloatTimeDomainData
    • and 2 more flaws omitted
  • broken_links:
    • Can use the English (en-US) link as a fallback

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

  • macros:
    • /zh-CN/docs/Web/API/Float32Array does not exist but fell back to /en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array
    • /zh-CN/docs/Web/API/Uint8Array does not exist but fell back to /en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array
    • /zh-CN/docs/Web/API/Float32Array does not exist but fell back to /en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array
  • broken_links:
    • Is currently http:// but can become https://
    • Can use the English (en-US) link as a fallback

URL: /zh-CN/docs/Web/API/Cache
Title: Cache
Flaw count: 6

  • macros:
    • /zh-CN/docs/Web/API/StorageEstimate redirects to /zh-CN/docs/Web/API/StorageManager/estimate
    • /zh-CN/docs/Web/API/Globalfetch/fetch redirects to /zh-CN/docs/Web/API/fetch
  • 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 5 possible)

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

  • macros:
    • /zh-CN/docs/Web/API/Boolean does not exist but fell back to /en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean
    • /zh-CN/docs/Web/API/Boolean does not exist but fell back to /en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean
    • /zh-CN/docs/Web/API/Boolean does not exist but fell back to /en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean
    • wrong xref macro used (consider changing which macro you use)
    • /zh-CN/docs/Web/API/WorkerGlobalScope/caches does not exist but fell back to /en-US/docs/Web/API/caches
  • broken_links:
    • Can use the English (en-US) link as a fallback
  • translation_differences:
    • Differences in the important macros (3 in common of 4 possible)

URL: /zh-CN/docs/Web/API/Cache/add
Title: Cache.add()
Flaw count: 3

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

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

  • macros:
    • /zh-CN/docs/Web/API/Boolean does not exist but fell back to /en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean
    • /zh-CN/docs/Web/API/Boolean does not exist but fell back to /en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean
    • /zh-CN/docs/Web/API/Boolean does not exist but fell back to /en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean
    • wrong xref macro used (consider changing which macro you use)
    • /zh-CN/docs/Web/API/WorkerGlobalScope/caches does not exist but fell back to /en-US/docs/Web/API/caches
  • broken_links:
    • Can use the English (en-US) link as a fallback
  • translation_differences:
    • Differences in the important macros (3 in common of 4 possible)

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

  • macros:
    • /zh-CN/docs/Web/API/Boolean does not exist but fell back to /en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean
    • /zh-CN/docs/Web/API/Boolean does not exist but fell back to /en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean
    • /zh-CN/docs/Web/API/Boolean does not exist but fell back to /en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean
    • wrong xref macro used (consider changing which macro you use)
    • /zh-CN/docs/Web/API/WorkerGlobalScope/caches does not exist but fell back to /en-US/docs/Web/API/caches
  • broken_links:
    • Can use the English (en-US) link as a fallback
  • translation_differences:
    • Differences in the important macros (3 in common of 4 possible)

URL: /zh-CN/docs/Web/API/Cache/put
Title: Cache.put()
Flaw count: 4

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

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

  • macros:
    • /zh-CN/docs/Web/API/Boolean does not exist but fell back to /en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean
    • /zh-CN/docs/Web/API/Boolean does not exist but fell back to /en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean
    • /zh-CN/docs/Web/API/Boolean does not exist but fell back to /en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean
    • wrong xref macro used (consider changing which macro you use)
    • /zh-CN/docs/Web/API/WorkerGlobalScope/caches does not exist but fell back to /en-US/docs/Web/API/caches
  • broken_links:
    • Can use the English (en-US) link as a fallback
  • translation_differences:
    • Differences in the important macros (3 in common of 4 possible)

URL: /zh-CN/docs/Web/API/Cache/addAll
Title: Cache.addAll()
Flaw count: 3

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

URL: /zh-CN/docs/Web/API/AudioWorkletProcessor
Title: AudioWorkletProcessor
Flaw count: 15

  • macros:
    • /zh-CN/docs/Web/API/AudioWorkletGlobalScope does not exist but fell back to /en-US/docs/Web/API/AudioWorkletGlobalScope
    • /zh-CN/docs/Web/API/AudioWorkletProcessor/AudioWorkletProcessor does not exist but fell back to /en-US/docs/Web/API/AudioWorkletProcessor/AudioWorkletProcessor
    • /zh-CN/docs/Web/API/AudioWorkletProcessor/port does not exist but fell back to /en-US/docs/Web/API/AudioWorkletProcessor/port
    • /zh-CN/docs/Web/API/AudioWorkletNode/port does not exist but fell back to /en-US/docs/Web/API/AudioWorkletNode/port
    • /zh-CN/docs/Web/API/AudioWorkletProcessor/process does not exist but fell back to /en-US/docs/Web/API/AudioWorkletProcessor/process
    • and 8 more flaws omitted
  • broken_links:
    • Can use the English (en-US) link as a fallback
    • Anchor not lowercase

URL: /zh-CN/docs/Web/API/AudioTrack
Title: AudioTrack
Flaw count: 15

  • macros:
    • /zh-CN/docs/Web/API/AudioTrack/enabled does not exist but fell back to /en-US/docs/Web/API/AudioTrack/enabled
    • /zh-CN/docs/Web/API/AudioTrack/enabled does not exist but fell back to /en-US/docs/Web/API/AudioTrack/enabled
    • /zh-CN/docs/Web/API/AudioTrack/id does not exist but fell back to /en-US/docs/Web/API/AudioTrack/id
    • wrong xref macro used (consider changing which macro you use)
    • /zh-CN/docs/Web/API/AudioTrackList/getTrackById does not exist but fell back to /en-US/docs/Web/API/AudioTrackList/getTrackById
    • and 9 more flaws omitted
  • broken_links:
    • Can use the English (en-US) link as a fallback

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

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

URL: /zh-CN/docs/Web/API/BroadcastChannel/messageerror_event
Title: BroadcastChannel: messageerror event
Flaw count: 2

  • broken_links:
    • Can't resolve /zh-CN/docs/Web/API/BroadcastChannel/onmessageerror
    • Can't resolve /zh-CN/docs/Web/API/BroadcastChannel/onmessage

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

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

URL: /zh-CN/docs/Web/API/BroadcastChannel/message_event
Title: BroadcastChannel:message 事件
Flaw count: 7

  • macros:
    • /zh-CN/docs/Web/API/MessageEvent/data does not exist but fell back to /en-US/docs/Web/API/MessageEvent/data
    • /zh-CN/docs/Web/API/MessageEvent/origin does not exist but fell back to /en-US/docs/Web/API/MessageEvent/origin
    • /zh-CN/docs/Web/API/MessageEvent/lastEventId does not exist but fell back to /en-US/docs/Web/API/MessageEvent/lastEventId
    • /zh-CN/docs/Web/API/MessageEvent/source does not exist but fell back to /en-US/docs/Web/API/MessageEvent/source
    • /zh-CN/docs/Glossary/WindowProxy does not exist but fell back to /en-US/docs/Glossary/WindowProxy
    • and 1 more flaws omitted
  • translation_differences:
    • Differences in the important macros (3 in common of 9 possible)

URL: /zh-CN/docs/Web/API/CacheStorage
Title: CacheStorage
Flaw count: 4

  • macros:
    • /zh-CN/docs/Web/API/WorkerGlobalScope/caches does not exist but fell back to /en-US/docs/Web/API/caches
    • /zh-CN/docs/Web/API/WorkerGlobalScope/caches does not exist but fell back to /en-US/docs/Web/API/caches
  • broken_links:
    • 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/CacheStorage/has
Title: CacheStorage.has()
Flaw count: 4

  • macros:
    • wrong xref macro used (consider changing which macro you use)
    • /zh-CN/docs/Web/API/WorkerGlobalScope/caches does not exist but fell back to /en-US/docs/Web/API/caches
  • broken_links:
    • Can use the English (en-US) link as a fallback
  • translation_differences:
    • Differences in the important macros (3 in common of 4 possible)

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

  • macros:
    • /zh-CN/docs/Web/API/Boolean does not exist but fell back to /en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean
    • /zh-CN/docs/Web/API/Boolean does not exist but fell back to /en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean
    • /zh-CN/docs/Web/API/Boolean does not exist but fell back to /en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean
    • wrong xref macro used (consider changing which macro you use)
    • /zh-CN/docs/Web/API/WorkerGlobalScope/caches does not exist but fell back to /en-US/docs/Web/API/caches
  • broken_links:
    • Can use the English (en-US) link as a fallback
  • translation_differences:
    • Differences in the important macros (3 in common of 4 possible)

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

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

URL: /zh-CN/docs/Web/API/CacheStorage/delete
Title: CacheStorage.delete()
Flaw count: 3

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

URL: /zh-CN/docs/Web/API/Broadcast_Channel_API
Title: Broadcast Channel API
Flaw count: 3

  • macros:
    • 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/BroadcastChannel/onmessage redirects to /zh-CN/docs/Web/API/BroadcastChannel/message_event

URL: /zh-CN/docs/Web/API/AuthenticatorResponse
Title: AuthenticatorResponse
Flaw count: 9

  • macros:
    • /zh-CN/docs/Web/API/PublicKeyCredential/response does not exist but fell back to /en-US/docs/Web/API/PublicKeyCredential/response
    • /zh-CN/docs/Web/API/AuthenticatorAssertionResponse does not exist but fell back to /en-US/docs/Web/API/AuthenticatorAssertionResponse
    • /zh-CN/docs/Web/API/AuthenticatorAttestationResponse does not exist but fell back to /en-US/docs/Web/API/AuthenticatorAttestationResponse
    • wrong xref macro used (consider changing which macro you use)
    • /zh-CN/docs/Web/API/CredentialsContainer/create does not exist but fell back to /en-US/docs/Web/API/CredentialsContainer/create
    • and 4 more flaws omitted

URL: /zh-CN/docs/Web/API/AuthenticatorResponse/clientDataJSON
Title: AuthenticatorResponse.clientDataJSON
Flaw count: 11

  • macros:
    • wrong xref macro used (consider changing which macro you use)
    • /zh-CN/docs/Web/API/CredentialsContainer/create does not exist but fell back to /en-US/docs/Web/API/CredentialsContainer/create
    • /zh-CN/docs/Web/API/CredentialsContainer/get does not exist but fell back to /en-US/docs/Web/API/CredentialsContainer/get
    • /zh-CN/docs/Web/API/AuthenticatorAttestationResponse does not exist but fell back to /en-US/docs/Web/API/AuthenticatorAttestationResponse
    • /zh-CN/docs/Web/API/AuthenticatorAssertionResponse does not exist but fell back to /en-US/docs/Web/API/AuthenticatorAssertionResponse
    • and 3 more flaws omitted
  • broken_links:
    • Can't resolve /zh-CN/docs/Web/API/WindowBase64/Base64_encoding_and_decoding
    • Can use the English (en-US) link as a fallback
    • Can't resolve /zh-CN/docs/Web/API/WindowBase64/Base64_encoding_and_decoding

URL: /zh-CN/docs/Web/API/BaseAudioContext/state
Title: AudioContext.state
Flaw count: 3

  • macros:
    • wrong xref macro used (consider changing which macro you use)
    • /zh-CN/docs/Web/API/AudioContext/onstatechange redirects to /zh-CN/docs/Web/API/BaseAudioContext/statechange_event
  • broken_links:
    • Can use the English (en-US) link as a fallback

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

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

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

  • broken_links:
    • Is currently http:// but can become https://
    • Can use the English (en-US) link as a fallback

URL: /zh-CN/docs/Web/API/BaseAudioContext/statechange_event
Title: AudioContext.onstatechange
Flaw count: 4

  • macros:
    • /zh-CN/docs/Web/API/State does not exist
  • broken_links:
    • Can use the English (en-US) link as a fallback
    • Is currently http:// but can become https://
    • Can use the English (en-US) link as a fallback

URL: /zh-CN/docs/Web/API/BaseAudioContext/createChannelSplitter
Title: AudioContext.createChannelSplitter()
Flaw count: 4

  • macros:
    • /zh-CN/docs/Web/API/ChannelSplitterNode does not exist but fell back to /en-US/docs/Web/API/ChannelSplitterNode
    • /zh-CN/docs/Web/API/ChannelSplitterNode does not exist but fell back to /en-US/docs/Web/API/ChannelSplitterNode
    • /zh-CN/docs/Web/API/AudioNode/connect(AudioNode) does not exist but fell back to /en-US/docs/Web/API/AudioNode/connect
  • broken_links:
    • Can use the English (en-US) link as a fallback

URL: /zh-CN/docs/Web/API/BaseAudioContext/createChannelMerger
Title: AudioContext.createChannelMerger()
Flaw count: 1

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

URL: /zh-CN/docs/Web/API/BaseAudioContext/decodeAudioData
Title: AudioContext.decodeAudioData()
Flaw count: 6

  • macros:
    • wrong xref macro used (consider changing which macro you use)
    • /zh-CN/docs/Web/API/AudioContext/createBufferSource redirects to /zh-CN/docs/Web/API/BaseAudioContext/createBufferSource
    • /zh-CN/docs/Web/API/AudioContext/destination redirects to /zh-CN/docs/Web/API/BaseAudioContext/destination
    • /zh-CN/docs/Web/API/Promise does not exist but fell back to /en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise
  • broken_links:
    • Is currently http:// but can become https://
    • Can use the English (en-US) link as a fallback

URL: /zh-CN/docs/Web/API/BaseAudioContext/createBuffer
Title: AudioContext.createBuffer()
Flaw count: 4

  • broken_links:
    • Anchor not lowercase
    • Is currently http:// but can become https://
    • Can use the English (en-US) link as a fallback
  • translation_differences:
    • Differences in the important macros (2 in common of 3 possible)

URL: /zh-CN/docs/Web/API/BaseAudioContext/createScriptProcessor
Title: AudioContext.createScriptProcessor()
Flaw count: 3

  • macros:
    • /zh-CN/docs/Web/API/AudioContext/decodeAudioData redirects to /zh-CN/docs/Web/API/BaseAudioContext/decodeAudioData
  • broken_links:
    • Can use the English (en-US) link as a fallback
    • Can use the English (en-US) link as a fallback

URL: /zh-CN/docs/Web/API/BaseAudioContext/createBufferSource
Title: AudioContext.createBufferSource()
Flaw count: 4

  • macros:
    • /zh-CN/docs/Web/API/AudioContext/createBuffer redirects to /zh-CN/docs/Web/API/BaseAudioContext/createBuffer
    • /zh-CN/docs/Web/API/AudioContext/decodeAudioData redirects to /zh-CN/docs/Web/API/BaseAudioContext/decodeAudioData
  • broken_links:
    • Is currently http:// but can become https://
    • Can use the English (en-US) link as a fallback

URL: /zh-CN/docs/Web/API/Blob
Title: Blob
Flaw count: 6

  • macros:
    • 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/URL/createObjectURL redirects to /zh-CN/docs/Web/API/URL/createObjectURL_static
    • /zh-CN/docs/Web/API/URL/createObjectURL redirects to /zh-CN/docs/Web/API/URL/createObjectURL_static
  • broken_links:
    • Can't resolve /zh-CN/docs/Web/JavaScript/Typed_arrays
  • translation_differences:
    • Differences in the important macros (3 in common of 5 possible)

URL: /zh-CN/docs/Web/API/Blob/type
Title: Blob.type
Flaw count: 3

  • macros:
    • wrong xref macro used (consider changing which macro you use)
    • wrong xref macro used (consider changing which macro you use)
  • translation_differences:
    • Differences in the important macros (3 in common of 5 possible)

URL: /zh-CN/docs/Web/API/Blob/size
Title: Blob.size
Flaw count: 3

  • macros:
    • wrong xref macro used (consider changing which macro you use)
    • wrong xref macro used (consider changing which macro you use)
  • translation_differences:
    • Differences in the important macros (3 in common of 4 possible)

URL: /zh-CN/docs/Web/API/Blob/Blob
Title: Blob()
Flaw count: 5

  • 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)
    • /zh-CN/docs/Web/API/BlobBuilder redirects to /zh-CN/docs/Web/API/Blob

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

  • macros:
    • /zh-CN/docs/Web/API/AudioWorkletProcessor/parameterDescriptors does not exist but fell back to /en-US/docs/Web/API/AudioWorkletProcessor/parameterDescriptors
    • /zh-CN/docs/Web/API/AudioWorkletNode/parameters does not exist but fell back to /en-US/docs/Web/API/AudioWorkletNode/parameters
    • wrong xref macro used (consider changing which macro you use)
    • /zh-CN/docs/Web/API/AudioWorkletNode/parameters does not exist but fell back to /en-US/docs/Web/API/AudioWorkletNode/parameters
    • /zh-CN/docs/Web/API/AudioWorkletProcessor/process does not exist but fell back to /en-US/docs/Web/API/AudioWorkletProcessor/process
    • and 1 more flaws omitted
  • broken_links:
    • Can use the English (en-US) link as a fallback
  • bad_bcd_queries:
    • No BCD data for query: api.AudioParamDescriptor

URL: /zh-CN/docs/Web/API/atob
Title: atob()
Flaw count: 7

  • macros:
    • /zh-CN/docs/Web/API/WindowBase64/btoa redirects to /zh-CN/docs/Web/API/btoa
    • /zh-CN/docs/Web/JavaScript/Reference/DOMException does not exist
  • broken_links:
    • Can use the English (en-US) link as a fallback
    • Can't resolve /zh-CN/docs/Web/API/window.btoa#Unicode_Strings
    • Can't resolve /zh-CN/docs/Web/API/WindowBase64/Base64_encoding_and_decoding
    • Can't resolve /zh-CN/docs/data_URIs
    • Can't resolve /zh-CN/docs/Components.utils.importGlobalProperties

URL: /zh-CN/docs/Web/API/AudioBufferSourceNode
Title: AudioBufferSourceNode
Flaw count: 11

  • macros:
    • /zh-CN/docs/Web/API/AudioScheduledSourceNode/start does not exist but fell back to /en-US/docs/Web/API/AudioScheduledSourceNode/start
    • /zh-CN/docs/Web/API/AudioBufferSourceNode/detune does not exist but fell back to /en-US/docs/Web/API/AudioBufferSourceNode/detune
    • /zh-CN/docs/Web/API/AudioBufferSourceNode/loop does not exist but fell back to /en-US/docs/Web/API/AudioBufferSourceNode/loop
    • /zh-CN/docs/Web/API/AudioBufferSourceNode/loopStart does not exist but fell back to /en-US/docs/Web/API/AudioBufferSourceNode/loopStart
    • /zh-CN/docs/Web/API/AudioBufferSourceNode/loopEnd does not exist but fell back to /en-US/docs/Web/API/AudioBufferSourceNode/loopEnd
    • and 4 more flaws omitted
  • broken_links:
    • Can use the English (en-US) link as a fallback
    • Is currently http:// but can become https://

URL: /zh-CN/docs/Web/API/AudioBufferSourceNode/start
Title: AudioBufferSourceNode.start()
Flaw count: 4

  • macros:
    • /zh-CN/docs/Web/API/AudioContext/currentTime redirects to /zh-CN/docs/Web/API/BaseAudioContext/currentTime
    • /zh-CN/docs/Web/API/AudioBufferSourceNode/loopEnd does not exist but fell back to /en-US/docs/Web/API/AudioBufferSourceNode/loopEnd
    • /zh-CN/docs/Web/API/AudioContext/decodeAudioData redirects to /zh-CN/docs/Web/API/BaseAudioContext/decodeAudioData
  • broken_links:
    • Is currently http:// but can become https://

@jasonren0403 jasonren0403 merged commit 19c5158 into main Jul 29, 2023
9 checks passed
@jasonren0403 jasonren0403 deleted the zh-cn/prettier/web/api/1 branch July 29, 2023 12:32
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