From 821203777d6844538df12b72be4ec2d651d02bb9 Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Tue, 21 Apr 2020 23:38:30 +0200 Subject: [PATCH] Rename 'cn' locale to 'zh', cn code is unassigned --- exampleSite/config.toml | 4 ++-- exampleSite/config.yaml | 4 ++-- exampleSite/{content.cn => content.zh}/_index.md | 0 i18n/{cn.yaml => zh.yaml} | 0 4 files changed, 4 insertions(+), 4 deletions(-) rename exampleSite/{content.cn => content.zh}/_index.md (100%) rename i18n/{cn.yaml => zh.yaml} (100%) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 93325cf..424d320 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -31,9 +31,9 @@ enableGitInfo = true contentDir = 'content.ru' weight = 2 -[languages.cn] +[languages.zh] languageName = 'Chinese' - contentDir = 'content.cn' + contentDir = 'content.zh' weight = 3 [menu] diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index bf05b2a..2a4bc33 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -29,9 +29,9 @@ languages: languageName: Russian contentDir: content.ru weight: 2 - cn: + zh: languageName: Chinese - contentDir: content.cn + contentDir: content.zh weight: 3 menu: diff --git a/exampleSite/content.cn/_index.md b/exampleSite/content.zh/_index.md similarity index 100% rename from exampleSite/content.cn/_index.md rename to exampleSite/content.zh/_index.md diff --git a/i18n/cn.yaml b/i18n/zh.yaml similarity index 100% rename from i18n/cn.yaml rename to i18n/zh.yaml