feat: use hugo mounts to mount the per folder i18n translations

pull/49643/head
Sayak Mukhopadhyay 2025-02-05 00:45:48 +05:30
parent 5df8efd6bc
commit ca22e81514
No known key found for this signature in database
GPG Key ID: 89EEFF3FB23D3FFD
55 changed files with 83 additions and 32 deletions

View File

@ -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

View File

@ -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"

View File

@ -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

View File

@ -1 +0,0 @@
../data/i18n/bn/bn.toml

View File

@ -1 +0,0 @@
../data/i18n/de/de.toml

View File

@ -1 +0,0 @@
../data/i18n/en/en.toml

View File

@ -1 +0,0 @@
../data/i18n/es/es.toml

View File

@ -1 +0,0 @@
../data/i18n/fr/fr.toml

View File

@ -1 +0,0 @@
../data/i18n/hi/hi.toml

View File

@ -1 +0,0 @@
../data/i18n/id/id.toml

View File

@ -1 +0,0 @@
../data/i18n/it/it.toml

View File

@ -1 +0,0 @@
../data/i18n/ja/ja.toml

View File

@ -1 +0,0 @@
../data/i18n/ko/ko.toml

View File

@ -1 +0,0 @@
../data/i18n/nl/nl.toml

View File

@ -1 +0,0 @@
../data/i18n/no/no.toml

View File

@ -1 +0,0 @@
../data/i18n/pl/pl.toml

View File

@ -1 +0,0 @@
../data/i18n/pt-br/pt-br.toml

View File

@ -1 +0,0 @@
../data/i18n/ru/ru.toml

View File

@ -1 +0,0 @@
../data/i18n/uk/uk.toml

View File

@ -1 +0,0 @@
../data/i18n/vi/vi.toml

View File

@ -1 +0,0 @@
../data/i18n/zh-cn/zh-cn.toml