Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

fix(i18n/config): fix hrefLang for zh-cn & zh-tw#2652

Merged
ovflowd merged 2 commits into
nodejs:mainfrom
zedifen:i18n-ch-fix
Aug 18, 2022
Merged

fix(i18n/config): fix hrefLang for zh-cn & zh-tw#2652
ovflowd merged 2 commits into
nodejs:mainfrom
zedifen:i18n-ch-fix

Conversation

@zedifen

@zedifen zedifen commented Aug 18, 2022

Copy link
Copy Markdown
Contributor

Check List

Description

The hrefLang code for "Simplified Chinese" should be zh-Hans, while zh-Hant for "Traditional Chinese".

The t in zh-Hant means "traditional" while s in zh-Hans means "Simplified".

See references under "Script codes" section on https://hreflang.org/list-of-hreflang-codes/ for "Han (Simplified variant)" and Han (Traditional variant).

Related Issues

This PR tries to fix a mistake in PR #2644

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

Merging #2652 (2ebf85a) into main (70ee0cf) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #2652   +/-   ##
=======================================
  Coverage   83.46%   83.46%           
=======================================
  Files         103      103           
  Lines        1113     1113           
  Branches      310      310           
=======================================
  Hits          929      929           
  Misses        178      178           
  Partials        6        6           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@willin willin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@ovflowd ovflowd merged commit bf234b7 into nodejs:main Aug 18, 2022
@zedifen zedifen deleted the i18n-ch-fix branch August 18, 2022 14:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants