Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CaiJimmy/hugo-theme-stack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJimmy Cai <github@jimmycai.com>2022-03-09 18:04:24 +0300
committerGitHub <noreply@github.com>2022-03-09 18:04:24 +0300
commit7d1713d40729fa6984ff92c6fd9e41c864915ff2 (patch)
tree6083cf5e8da3a1b65c3aa4c6223d339d2a809243
parentb5d0c5b37d8d774d30c66d533efa3982fe6d50a5 (diff)
refactor(i18n): use lowercase language codes
Related with this Hugo issue: https://github.com/gohugoio/hugo/issues/7344
-rw-r--r--exampleSite/config.yaml4
-rw-r--r--exampleSite/content/_index.zh-cn.md (renamed from exampleSite/content/_index.zh-CN.md)0
-rw-r--r--i18n/pt-br.yaml (renamed from i18n/pt-BR.yaml)0
-rw-r--r--i18n/zh-cn.yaml (renamed from i18n/zh-CN.yaml)0
-rw-r--r--i18n/zh-tw.yaml (renamed from i18n/zh-TW.yaml)0
5 files changed, 2 insertions, 2 deletions
diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml
index bc07d59..545116d 100644
--- a/exampleSite/config.yaml
+++ b/exampleSite/config.yaml
@@ -9,7 +9,7 @@ languages:
languageName: English
title: Example Site
weight: 1
- zh-CN:
+ zh-cn:
languageName: 中文
title: 演示站点
weight: 2
@@ -26,7 +26,7 @@ disqusShortname: hugo-theme-stack
googleAnalytics:
# Theme i18n support
-# Available values: en, fr, id, ja, ko, pt-br, zh-CN, zh-TW, es, de, nl, it, th, el, uk, ar
+# Available values: en, fr, id, ja, ko, pt-br, zh-cn, zh-tw, es, de, nl, it, th, el, uk, ar
DefaultContentLanguage: en
# Set hasCJKLanguage to true if DefaultContentLanguage is in [zh-cn ja ko]
diff --git a/exampleSite/content/_index.zh-CN.md b/exampleSite/content/_index.zh-cn.md
index e4b59a8..e4b59a8 100644
--- a/exampleSite/content/_index.zh-CN.md
+++ b/exampleSite/content/_index.zh-cn.md
diff --git a/i18n/pt-BR.yaml b/i18n/pt-br.yaml
index ffdbe41..ffdbe41 100644
--- a/i18n/pt-BR.yaml
+++ b/i18n/pt-br.yaml
diff --git a/i18n/zh-CN.yaml b/i18n/zh-cn.yaml
index 3579945..3579945 100644
--- a/i18n/zh-CN.yaml
+++ b/i18n/zh-cn.yaml
diff --git a/i18n/zh-TW.yaml b/i18n/zh-tw.yaml
index 871d937..871d937 100644
--- a/i18n/zh-TW.yaml
+++ b/i18n/zh-tw.yaml