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/http using Prettier #14670

Merged
merged 1 commit into from
Jul 28, 2023
Merged

Conversation

queengooborg
Copy link
Collaborator

This PR formats the /web/http folder of the Simplified Chinese locale using Prettier.

@queengooborg queengooborg requested a review from a team as a code owner July 28, 2023 08:56
@queengooborg queengooborg requested review from t7yang and removed request for a team July 28, 2023 08:56
@github-actions github-actions bot added l10n-zh Issues related to Chinese content. system Infrastructure and configuration for the project labels Jul 28, 2023
@github-actions
Copy link
Contributor

Preview URLs (123 pages)
Flaws (172)

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

URL: /zh-CN/docs/Web/HTTP/Compression
Title: HTTP 协议中的数据压缩
Flaw count: 1

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

URL: /zh-CN/docs/Web/HTTP/Content_negotiation
Title: 内容协商
Flaw count: 1

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

URL: /zh-CN/docs/Web/HTTP/Content_negotiation/List_of_default_Accept_values
Title: Accept 默认值
Flaw count: 7

  • broken_links:
    • Is currently http:// but can become https://
    • Is currently http:// but can become https://
    • Is currently http:// but can become https://
    • Is currently http:// but can become https://
    • Is currently http:// but can become https://
    • and 2 more flaws omitted

URL: /zh-CN/docs/Web/HTTP/Browser_detection_using_the_user_agent
Title: 使用用户代理字段进行浏览器检测
Flaw count: 2

  • broken_links:
    • Can't resolve /zh-CN/docs/Gecko_user_agent_string_reference
    • Is currently http:// but can become https://

URL: /zh-CN/docs/Web/HTTP/Basics_of_HTTP/Evolution_of_HTTP
Title: HTTP 的发展
Flaw count: 1

  • macros:
    • /zh-CN/docs/Glossary/QUIC does not exist but fell back to /en-US/docs/Glossary/QUIC

URL: /zh-CN/docs/Web/HTTP/Basics_of_HTTP/MIME_types
Title: MIME 类型
Flaw count: 6

  • broken_links:
    • Can't resolve /zh-CN/docs/Web/Guide/HTML/Forms
    • Can use the English (en-US) link as a fallback
    • Can't resolve /zh-CN/docs/Web/Guide/HTML/Forms
    • Can't resolve /En/Media_formats_supported_by_the_audio_and_video_elements
    • Can't resolve /zh-CN/docs/Web/Security/Securing_your_site/Configuring_server_MIME_types
    • and 1 more flaws omitted

URL: /zh-CN/docs/Web/HTTP/Basics_of_HTTP/Identifying_resources_on_the_Web
Title: 标识互联网上的内容
Flaw count: 4

  • broken_links:
    • Can't resolve /zh-CN/docs/Web/HTTP/data_URIs
    • Can use the English (en-US) link as a fallback
    • Can't resolve /zh-CN/docs/Learn/Common_questions/What_is_a_URL
    • Is currently http:// but can become https://

URL: /zh-CN/docs/Web/HTTP/Redirections
Title: HTTP 的重定向
Flaw count: 2

  • broken_links:
    • Can't resolve /zh-CN/docs/Glossary/https
    • Is currently http:// but can become https://

URL: /zh-CN/docs/Web/HTTP/CORS
Title: 跨源资源共享(CORS)
Flaw count: 1

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

URL: /zh-CN/docs/Web/HTTP/Proxy_servers_and_tunneling/Proxy_Auto-Configuration_PAC_file
Title: 代理自动配置文件(PAC)文件
Flaw count: 12

  • broken_links:
    • Anchor not lowercase
    • Anchor not lowercase
    • Anchor not lowercase
    • Anchor not lowercase
    • Anchor not lowercase
    • and 7 more flaws omitted

URL: /zh-CN/docs/Web/HTTP/Cookies
Title: HTTP Cookie
Flaw count: 6

  • broken_links:
    • Can't resolve /zh-CN/docs/Tools/Storage_Inspector
    • 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
    • Anchor not lowercase
    • and 1 more flaws omitted

URL: /zh-CN/docs/Web/HTTP/CSP
Title: 内容安全策略(CSP)
Flaw count: 1

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

URL: /zh-CN/docs/Web/HTTP/Caching
Title: HTTP 缓存
Flaw count: 3

  • macros:
    • /zh-CN/docs/Glossary/Certificate_authority does not exist but fell back to /en-US/docs/Glossary/Certificate_authority
    • /zh-CN/docs/Glossary/DSL/Domain_specific_language does not exist but fell back to /en-US/docs/Glossary/DSL/Domain_specific_language
    • /zh-CN/docs/Glossary/TTL does not exist but fell back to /en-US/docs/Glossary/TTL

URL: /zh-CN/docs/Web/HTTP/Resources_and_specifications
Title: HTTP 资源与规范
Flaw count: 1

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

URL: /zh-CN/docs/Web/HTTP/Headers/X-Content-Type-Options
Title: X-Content-Type-Options
Flaw count: 1

  • broken_links:
    • Anchor not lowercase

URL: /zh-CN/docs/Web/HTTP/Headers/Sec-Fetch-User
Title: Sec-Fetch-User
Flaw count: 1

  • macros:
    • /zh-CN/docs/Glossary/CORS-safelisted_request_header does not exist but fell back to /en-US/docs/Glossary/CORS-safelisted_request_header

URL: /zh-CN/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only
Title: Content-Security-Policy-Report-Only
Flaw count: 1

  • broken_links:
    • Can't resolve /zh-CN/docs/Tools/GCLI/Display_security_and_privacy_policies

URL: /zh-CN/docs/Web/HTTP/Headers/Cross-Origin-Embedder-Policy
Title: Cross-Origin-Embedder-Policy
Flaw count: 1

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

URL: /zh-CN/docs/Web/HTTP/Headers/Set-Cookie
Title: Set-Cookie
Flaw count: 4

  • macros:
    • /zh-CN/docs/Glossary/Whitespace does not exist but fell back to /en-US/docs/Glossary/Whitespace
  • broken_links:
    • No need for the pathname in anchor links if it's the same page
    • No need for the pathname in anchor links if it's the same page
    • No need for the pathname in anchor links if it's the same page

URL: /zh-CN/docs/Web/HTTP/Headers/Warning
Title: Warning
Flaw count: 1

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

URL: /zh-CN/docs/Web/HTTP/Headers/Proxy-Authorization
Title: Proxy-Authorization
Flaw count: 4

  • broken_links:
    • Anchor not lowercase
    • Anchor not lowercase
    • Is currently http:// but can become https://
    • Can't resolve /zh-CN/docs/Web/API/WindowBase64/Base64_encoding_and_decoding

URL: /zh-CN/docs/Web/HTTP/Headers/Accept-Patch
Title: Accept-Patch
Flaw count: 1

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

URL: /zh-CN/docs/Web/HTTP/Headers/User-Agent/Firefox
Title: Firefox 用户代理字符串 (user agent string) 参考
Flaw count: 6

  • broken_links:
    • Can't resolve /zh-CN/docs/Mozilla/Gecko
    • Can't resolve /En/User_Agent_Strings_Reference
    • Can't resolve /zh-CN/Setting_HTTP_request_headers
    • Is currently http:// but can become https://
    • Can't resolve /zh-CN/Browser_Detection_and_Cross_Browser_Support
    • and 1 more flaws omitted

URL: /zh-CN/docs/Web/HTTP/Headers/Access-Control-Allow-Headers
Title: Access-Control-Allow-Headers
Flaw count: 1

  • macros:
    • /zh-CN/docs/Glossary/simple_headers does not exist

URL: /zh-CN/docs/Web/HTTP/Headers/Accept-CH
Title: Accept-CH
Flaw count: 5

  • 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 (2 in common of 4 possible)

URL: /zh-CN/docs/Web/HTTP/Headers/Cross-Origin-Resource-Policy
Title: Cross-Origin-Resource-Policy
Flaw count: 1

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

URL: /zh-CN/docs/Web/HTTP/Headers/Permissions-Policy
Title: Permissions-Policy
Flaw count: 13

  • 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/Navigator/requestMediaKeySystemAccess does not exist but fell back to /en-US/docs/Web/API/Navigator/requestMediaKeySystemAccess
    • /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/PositionError redirects to /zh-CN/docs/Web/API/GeolocationPositionError
    • /zh-CN/docs/Web/API/Navigator/requestMIDIAccess does not exist but fell back to /en-US/docs/Web/API/Navigator/requestMIDIAccess
    • and 2 more flaws omitted
  • broken_links:
    • Can't resolve /zh-CN/docs/Web/HTTP/Feature_Policy
    • 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/HTTP/Feature_Policy
    • Can't resolve /zh-CN/docs/Web/HTTP/Feature_Policy/Using_Feature_Policy
  • translation_differences:
    • Differences in the important macros (3 in common of 4 possible)

URL: /zh-CN/docs/Web/HTTP/Headers/Permissions-Policy/picture-in-picture
Title: Permissions-Policy: picture-in-picture
Flaw count: 2

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

URL: /zh-CN/docs/Web/HTTP/Headers/Permissions-Policy/camera
Title: Permissions-Policy: camera
Flaw count: 2

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

URL: /zh-CN/docs/Web/HTTP/Headers/Permissions-Policy/autoplay
Title: Permissions-Policy: autoplay
Flaw count: 3

  • macros:
    • /zh-CN/docs/Web/API/Promise does not exist but fell back to /en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise
  • broken_links:
    • Can't resolve /zh-CN/docs/Web/HTTP/Feature_Policy
    • Can't resolve /zh-CN/docs/Web/HTTP/Feature_Policy/Using_Feature_Policy

URL: /zh-CN/docs/Web/HTTP/Headers/Connection
Title: Connection
Flaw count: 1

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

URL: /zh-CN/docs/Web/HTTP/Headers/SourceMap
Title: SourceMap
Flaw count: 2

  • broken_links:
    • Can't resolve /zh-CN/docs/Tools/Debugger/How_to/Use_a_source_map
    • Can't resolve /zh-CN/docs/Tools/Debugger/How_to/Use_a_source_map

URL: /zh-CN/docs/Web/HTTP/Headers/Transfer-Encoding
Title: Transfer-Encoding
Flaw count: 2

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

URL: /zh-CN/docs/Web/HTTP/Headers/Upgrade-Insecure-Requests
Title: Upgrade-Insecure-Requests
Flaw count: 1

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

URL: /zh-CN/docs/Web/HTTP/Headers/Proxy-Authenticate
Title: Proxy-Authenticate
Flaw count: 4

  • broken_links:
    • Anchor not lowercase
    • Anchor not lowercase
    • 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/HTTP/Headers/X-Frame-Options
Title: X-Frame-Options
Flaw count: 1

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

URL: /zh-CN/docs/Web/HTTP/Headers/Sec-CH-UA-Full-Version-List
Title: Sec-CH-UA-Full-Version-List
Flaw count: 1

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

URL: /zh-CN/docs/Web/HTTP/Headers/ETag
Title: ETag
Flaw count: 1

  • broken_links:
    • Anchor not lowercase

URL: /zh-CN/docs/Web/HTTP/Headers/Sec-Fetch-Site
Title: Sec-Fetch-Site
Flaw count: 2

  • macros:
    • /zh-CN/docs/Glossary/CORS-safelisted_response_header does not exist but fell back to /en-US/docs/Glossary/CORS-safelisted_response_header
    • /zh-CN/docs/Glossary/CORS-safelisted_request_header does not exist but fell back to /en-US/docs/Glossary/CORS-safelisted_request_header

URL: /zh-CN/docs/Web/HTTP/Headers/Sec-Fetch-Dest
Title: Sec-Fetch-Dest
Flaw count: 5

  • macros:
    • /zh-CN/docs/Glossary/CORS-safelisted_request_header does not exist but fell back to /en-US/docs/Glossary/CORS-safelisted_request_header
    • /zh-CN/docs/Web/API/Request/destination does not exist but fell back to /en-US/docs/Web/API/Request/destination
    • /zh-CN/docs/Web/API/Worklet/addModule does not exist but fell back to /en-US/docs/Web/API/Worklet/addModule
    • /zh-CN/docs/Web/API/Worklet/addModule does not exist but fell back to /en-US/docs/Web/API/Worklet/addModule
  • broken_links:
    • Can use the English (en-US) link as a fallback

URL: /zh-CN/docs/Web/HTTP/Headers/Server-Timing
Title: Server-Timing
Flaw count: 3

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

URL: /zh-CN/docs/Web/HTTP/Headers/Tk
Title: Tk
Flaw count: 1

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

URL: /zh-CN/docs/Web/HTTP/Headers/Accept-CH-Lifetime
Title: Accept-CH-Lifetime
Flaw count: 4

  • 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
  • translation_differences:
    • Differences in the important macros (2 in common of 3 possible)

URL: /zh-CN/docs/Web/HTTP/Headers/Clear-Site-Data
Title: Clear-Site-Data
Flaw count: 2

  • macros:
    • /zh-CN/docs/Web/API/IDBFactory/deleteDatabase does not exist but fell back to /en-US/docs/Web/API/IDBFactory/deleteDatabase
  • broken_links:
    • Can't resolve /zh-CN/docs/Web/HTML/Using_the_application_cache

URL: /zh-CN/docs/Web/HTTP/Headers/Referrer-Policy
Title: Referrer-Policy
Flaw count: 1

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

URL: /zh-CN/docs/Web/HTTP/Headers/Device-Memory
Title: Device-Memory
Flaw count: 3

  • 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

URL: /zh-CN/docs/Web/HTTP/Headers/Content-Security-Policy
Title: Content-Security-Policy
Flaw count: 5

  • macros:
    • /zh-CN/docs/Glossary/XSS does not exist but fell back to /en-US/docs/Glossary/Cross-site_scripting
    • /zh-CN/docs/Glossary/SRI does not exist but fell back to /en-US/docs/Glossary/SRI
  • broken_links:
    • Can't resolve /docs/Web/API/WebRTC_API
    • Can't resolve /zh-CN/docs/Tools/GCLI/Display_security_and_privacy_policies
  • heading_links:
    • h3 heading contains an <a> tag

URL: /zh-CN/docs/Web/HTTP/Headers/Content-Security-Policy/block-all-mixed-content
Title: CSP: block-all-mixed-content
Flaw count: 2

  • 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/HTTP/Headers/Content-Security-Policy/default-src
Title: CSP: default-src
Flaw count: 6

  • broken_links:
    • Can't resolve /zh-CN/docs/URIs_and_URLs
    • Can't resolve /zh-CN/docs/Web/HTTP/Basics_of_HTTP/Data_URIs
    • 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
    • and 1 more flaws omitted

URL: /zh-CN/docs/Web/HTTP/Headers/Content-Security-Policy/upgrade-insecure-requests
Title: CSP: upgrade-insecure-requests
Flaw count: 1

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

URL: /zh-CN/docs/Web/HTTP/Headers/Content-Security-Policy/base-uri
Title: CSP: base-uri
Flaw count: 1

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

URL: /zh-CN/docs/Web/HTTP/Headers/Content-Security-Policy/frame-ancestors
Title: CSP:frame-ancestors
Flaw count: 3

  • broken_links:
    • Can't resolve /zh-CN/docs/URIs_and_URLs
    • Can't resolve /zh-CN/docs/Web/HTTP/Basics_of_HTTP/Data_URIs
    • Can use the English (en-US) link as a fallback

URL: /zh-CN/docs/Web/HTTP/Headers/Content-Security-Policy/child-src
Title: CSP: child-src
Flaw count: 2

  • 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/HTTP/Headers/Content-Security-Policy/sandbox
Title: CSP: sandbox
Flaw count: 1

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

URL: /zh-CN/docs/Web/HTTP/Headers/Content-Security-Policy/worker-src
Title: CSP: worker-src
Flaw count: 2

  • 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/HTTP/Headers/Content-Security-Policy/connect-src
Title: CSP: connect-src
Flaw count: 2

  • 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/HTTP/Headers/Content-Security-Policy/script-src-elem
Title: CSP: script-src-elem
Flaw count: 3

  • 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

URL: /zh-CN/docs/Web/HTTP/Headers/Content-Security-Policy/font-src
Title: CSP: font-src
Flaw count: 2

  • 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/HTTP/Headers/DPR
Title: DPR
Flaw count: 3

  • macros:
    • /zh-CN/docs/Glossary/DPR does not exist
  • broken_links:
    • 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/HTTP/Headers/X-DNS-Prefetch-Control
Title: X-DNS-Prefetch-Control
Flaw count: 1

  • broken_links:
    • Can't resolve /zh-CN/docs/Web/HTML/Link_types

URL: /zh-CN/docs/Web/HTTP/Headers/Digest
Title: Digest
Flaw count: 1

  • macros:
    • /zh-CN/docs/Glossary/%E6%91%98%E8%A6%81 does not exist

URL: /zh-CN/docs/Web/HTTP/Headers/Location
Title: Location
Flaw count: 2

  • broken_links:
    • Link points to the page it's already on
    • Link points to the page it's already on

URL: /zh-CN/docs/Web/HTTP/Headers/Large-Allocation
Title: Large-Allocation
Flaw count: 3

  • broken_links:
    • Can't resolve /zh-CN/docs/Tools/Web_Console
    • Can't resolve /zh-CN/docs/Mozilla/Firefox/Multiprocess_Firefox
    • Can't resolve /zh-CN/docs/Mozilla/Add-ons/SDK

URL: /zh-CN/docs/Web/HTTP/Headers/Sec-Fetch-Mode
Title: Sec-Fetch-Mode
Flaw count: 1

  • macros:
    • /zh-CN/docs/Glossary/CORS-safelisted_request_header does not exist but fell back to /en-US/docs/Glossary/CORS-safelisted_request_header

URL: /zh-CN/docs/Web/HTTP/Headers/Accept-Encoding
Title: Accept-Encoding
Flaw count: 1

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

URL: /zh-CN/docs/Web/HTTP/Headers/X-XSS-Protection
Title: X-XSS-Protection
Flaw count: 1

  • macros:
    • /zh-CN/docs/Glossary/XSS does not exist but fell back to /en-US/docs/Glossary/Cross-site_scripting
External URLs (14)

URL: /zh-CN/docs/Web/HTTP/Resources_and_specifications
Title: HTTP 资源与规范


URL: /zh-CN/docs/Web/HTTP/Headers/X-DNS-Prefetch-Control
Title: X-DNS-Prefetch-Control

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 056ff8b into main Jul 28, 2023
7 checks passed
@yin1999 yin1999 deleted the zh-cn/prettier/web/http branch July 28, 2023 09:08
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. system Infrastructure and configuration for the project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants