Files
hugo-theme-stack/demo/config/_default/languages.toml
T
JimmyandGitHub c872a77edb refactor: migrate i18n files from YAML to TOML format and simplify structure (#1230)
* refactor: migrate i18n files from YAML to TOML format and simplify structure

* refactor: make translation file adjust to gohugoio/locales language code so date translation can work properly

* refactor: use hyphens instead of underscores for i18n, because that's how Hugo pick the translation file

* docs: update comments for i18n language availability and CJK language detection in hugo.toml.
2026-01-25 21:01:32 +01:00

36 lines
857 B
TOML

[en]
languageName = "English"
title = "Example Site"
weight = 1
[en.params.sidebar]
subtitle = "Example description"
[zh]
languageName = "简体中文"
title = "演示站点"
weight = 2
[zh.params.sidebar]
subtitle = "演示说明"
[zh-hant-tw]
languageName = "正體中文"
title = "演示站點"
weight = 2
[zh-hant-tw.params.sidebar]
subtitle = "演示說明"
[ja]
languageName = "日本語"
title = "サンプルサイト"
weight = 2
[ja.params.sidebar]
subtitle = "サンプル説明"
[ar]
languageName = "عربي"
languagedirection = "rtl"
title = "موقع تجريبي"
weight = 3
[ar.params.sidebar]
subtitle = "وصف تجريبي"