feat: use hugo mounts to mount the per folder i18n translations
parent
5df8efd6bc
commit
ca22e81514
|
@ -1,11 +0,0 @@
|
|||
# See the OWNERS docs at https://go.k8s.io/owners
|
||||
|
||||
# This is the directory for all source content.
|
||||
# Teams and members are visible at https://github.com/orgs/kubernetes/teams.
|
||||
|
||||
reviewers:
|
||||
- sig-docs-localization-reviewers
|
||||
|
||||
approvers:
|
||||
- sig-docs-localization-owners
|
||||
- sig-docs-website-owners
|
73
hugo.toml
73
hugo.toml
|
@ -293,7 +293,6 @@ languageName = "English"
|
|||
# Weight used for sorting.
|
||||
weight = 1
|
||||
languagedirection = "ltr"
|
||||
i18nDir = "./data/i18n"
|
||||
|
||||
[languages.en.params]
|
||||
description = "Production-Grade Container Orchestration"
|
||||
|
@ -517,3 +516,75 @@ languagedirection = "ltr"
|
|||
languageNameLatinScript = "Tiếng Việt"
|
||||
description = "Giải pháp điều phối container trong môi trường production"
|
||||
|
||||
# Ensure that the correct file names are in the correct directory. For e.g. i18n/en should contain en.toml and never de.toml
|
||||
[[module.mounts]]
|
||||
source = "i18n/bn"
|
||||
target = "i18n"
|
||||
|
||||
[[module.mounts]]
|
||||
source = "i18n/de"
|
||||
target = "i18n"
|
||||
|
||||
[[module.mounts]]
|
||||
source = "i18n/en"
|
||||
target = "i18n"
|
||||
|
||||
[[module.mounts]]
|
||||
source = "i18n/es"
|
||||
target = "i18n"
|
||||
|
||||
[[module.mounts]]
|
||||
source = "i18n/fr"
|
||||
target = "i18n"
|
||||
|
||||
[[module.mounts]]
|
||||
source = "i18n/hi"
|
||||
target = "i18n"
|
||||
|
||||
[[module.mounts]]
|
||||
source = "i18n/id"
|
||||
target = "i18n"
|
||||
|
||||
[[module.mounts]]
|
||||
source = "i18n/it"
|
||||
target = "i18n"
|
||||
|
||||
[[module.mounts]]
|
||||
source = "i18n/ja"
|
||||
target = "i18n"
|
||||
|
||||
[[module.mounts]]
|
||||
source = "i18n/ko"
|
||||
target = "i18n"
|
||||
|
||||
[[module.mounts]]
|
||||
source = "i18n/nl"
|
||||
target = "i18n"
|
||||
|
||||
[[module.mounts]]
|
||||
source = "i18n/no"
|
||||
target = "i18n"
|
||||
|
||||
[[module.mounts]]
|
||||
source = "i18n/pl"
|
||||
target = "i18n"
|
||||
|
||||
[[module.mounts]]
|
||||
source = "i18n/pt-br"
|
||||
target = "i18n"
|
||||
|
||||
[[module.mounts]]
|
||||
source = "i18n/ru"
|
||||
target = "i18n"
|
||||
|
||||
[[module.mounts]]
|
||||
source = "i18n/uk"
|
||||
target = "i18n"
|
||||
|
||||
[[module.mounts]]
|
||||
source = "i18n/vi"
|
||||
target = "i18n"
|
||||
|
||||
[[module.mounts]]
|
||||
source = "i18n/zh-cn"
|
||||
target = "i18n"
|
||||
|
|
13
i18n/OWNERS
13
i18n/OWNERS
|
@ -1,2 +1,11 @@
|
|||
# No owner overrides here
|
||||
# See data/i18n/*/OWNERS instead
|
||||
# See the OWNERS docs at https://go.k8s.io/owners
|
||||
|
||||
# This is the directory for all source content.
|
||||
# Teams and members are visible at https://github.com/orgs/kubernetes/teams.
|
||||
|
||||
reviewers:
|
||||
- sig-docs-localization-reviewers
|
||||
|
||||
approvers:
|
||||
- sig-docs-localization-owners
|
||||
- sig-docs-website-owners
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
../data/i18n/bn/bn.toml
|
|
@ -1 +0,0 @@
|
|||
../data/i18n/de/de.toml
|
|
@ -1 +0,0 @@
|
|||
../data/i18n/en/en.toml
|
|
@ -1 +0,0 @@
|
|||
../data/i18n/es/es.toml
|
|
@ -1 +0,0 @@
|
|||
../data/i18n/fr/fr.toml
|
|
@ -1 +0,0 @@
|
|||
../data/i18n/hi/hi.toml
|
|
@ -1 +0,0 @@
|
|||
../data/i18n/id/id.toml
|
|
@ -1 +0,0 @@
|
|||
../data/i18n/it/it.toml
|
|
@ -1 +0,0 @@
|
|||
../data/i18n/ja/ja.toml
|
|
@ -1 +0,0 @@
|
|||
../data/i18n/ko/ko.toml
|
|
@ -1 +0,0 @@
|
|||
../data/i18n/nl/nl.toml
|
|
@ -1 +0,0 @@
|
|||
../data/i18n/no/no.toml
|
|
@ -1 +0,0 @@
|
|||
../data/i18n/pl/pl.toml
|
|
@ -1 +0,0 @@
|
|||
../data/i18n/pt-br/pt-br.toml
|
|
@ -1 +0,0 @@
|
|||
../data/i18n/ru/ru.toml
|
|
@ -1 +0,0 @@
|
|||
../data/i18n/uk/uk.toml
|
|
@ -1 +0,0 @@
|
|||
../data/i18n/vi/vi.toml
|
|
@ -1 +0,0 @@
|
|||
../data/i18n/zh-cn/zh-cn.toml
|
Loading…
Reference in New Issue