Enable multilingual support
This commit is contained in:
parent
ed7245c6be
commit
4af1379d1e
2 changed files with 24 additions and 5 deletions
|
@ -10,19 +10,33 @@ enableRobotsTXT = true
|
|||
# contains `<link rel="alternate" type="application/rss+xml" href="/v1.4/v1.4/index.xml">`).
|
||||
disableKinds = ["taxonomy", "RSS"]
|
||||
|
||||
defaultContentLanguage = "zh-Hans"
|
||||
|
||||
[languages]
|
||||
[languages.zh-Hans]
|
||||
title = "Matrix 规范"
|
||||
languageName = "简体中文"
|
||||
weight = 1
|
||||
contentDir = "locales/zh-Hans"
|
||||
[languages.zh-Hans.params]
|
||||
description = "Matrix 去中心化通信规范的首页"
|
||||
[languages.en]
|
||||
title = "Matrix Specification"
|
||||
languageName ="English"
|
||||
# Weight used for sorting.
|
||||
weight = 1
|
||||
weight = 2
|
||||
contentDir = "content/"
|
||||
[languages.en.params]
|
||||
description = "Home of the Matrix specification for decentralised communication"
|
||||
|
||||
# Entries in the main menu in the header.
|
||||
[menus]
|
||||
[[menus.main]]
|
||||
name = 'Foundation'
|
||||
name = '翻译'
|
||||
url = 'https://codeberg.org/wholetrans/docs-matrix-spec'
|
||||
weight = 5
|
||||
[[menus.main]]
|
||||
name = '基金会'
|
||||
url = 'https://matrix.org/foundation/'
|
||||
weight = 10
|
||||
[[menus.main]]
|
||||
|
@ -30,7 +44,7 @@ description = "Home of the Matrix specification for decentralised communication"
|
|||
url = 'https://matrix.org/faq'
|
||||
weight = 20
|
||||
[[menus.main]]
|
||||
name = 'Blog'
|
||||
name = '博客'
|
||||
url = 'https://matrix.org/blog/posts'
|
||||
weight = 30
|
||||
|
||||
|
@ -56,7 +70,7 @@ description = "Home of the Matrix specification for decentralised communication"
|
|||
# Everything below this are Site Params
|
||||
|
||||
[params]
|
||||
copyright = "The Matrix.org Foundation CIC"
|
||||
copyright = "The Matrix.org Foundation CIC. Translation maintained by WholeTrans."
|
||||
|
||||
[params.version]
|
||||
# must be one of "unstable", "current", "historical"
|
||||
|
@ -92,6 +106,11 @@ sidebar_menu_compact = true
|
|||
# icon = "fab fa-github"
|
||||
# desc = "Matrix on GitHub"
|
||||
# Custom links shown in the center of the footer. (Only supported by our fork of docsy's 'footer/central' partial.)
|
||||
[[params.links.bottom]]
|
||||
name = "Localization Repo"
|
||||
url = "https://codeberg.org/wholetrans/docs-matrix-spec"
|
||||
icon = "far fa-language"
|
||||
desc = "Localization Repository"
|
||||
[[params.links.bottom]]
|
||||
name = "GitHub"
|
||||
url = "https://github.com/matrix-org"
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
</span>
|
||||
{{- /**/ -}}
|
||||
<span class="navbar-brand__name">
|
||||
specification
|
||||
规范
|
||||
</span>
|
||||
{{- /**/ -}}
|
||||
<span class="navbar-version"> — {{ partial "version-string" . }}</span>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue