Skip to content

Commit c52818c

Browse files
committed
Switch language name 'zh' to 'zh-cn'
This is the first step to rename 'zh' to 'zh-cn'. There are several reasons why we rename the language name. - The upstream docsy theme changed the language name, leading to many warnings during site build; The side-effect is that the i18n strings are no longer working. - We believe renaming the language is the right thing to do, because this move can make room for other variants of Chinese language, such as 'zh-tw', 'zh-sg' etc. There would be several follow-ups to this PR, such as fixing the intra-site links, adding redirects etc. We will lock up changes to zh/zh-cn pages for the moment, until this one gets in. This PR is based on commit cdad0a7.
1 parent 3d345b1 commit c52818c

File tree

1,347 files changed

+8
-6
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,347 files changed

+8
-6
lines changed

config.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -302,15 +302,15 @@ languageName = "English"
302302
weight = 1
303303
languagedirection = "ltr"
304304

305-
[languages.zh]
305+
[languages.zh-cn]
306306
title = "Kubernetes"
307307
description = "生产级别的容器编排系统"
308308
languageName = "中文 Chinese"
309309
weight = 2
310-
contentDir = "content/zh"
310+
contentDir = "content/zh-cn"
311311
languagedirection = "ltr"
312312

313-
[languages.zh.params]
313+
[languages.zh-cn.params]
314314
time_format_blog = "2006.01.02"
315315
language_alternatives = ["en"]
316316

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)