瀏覽代碼

fix: Language name doesn't appear for zh-Hant

Language name doesn't appear when LanguageCode has a sub-code

The issue appears to be an inconsistency/bug with Hugo's `.Translations` lowercasing zh-Hant to zh-hant without offering a way to get the language code as it was defined.

We can workaround it for now by converting to lowercase to align with Hugo's current implementation.

Fix #2256
George Cushen 4 年之前
父節點
當前提交
97ff003d9f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      wowchemy/data/i18n/languages.yaml

+ 1 - 1
wowchemy/data/i18n/languages.yaml

@@ -32,4 +32,4 @@
 'uk': 'Українська'
 'vi': 'Tiếng Việt'
 'zh': '中文 (简体)'
-'zh-Hant': '中文 (繁體)'
+'zh-hant': '中文 (繁體)'