Skip to content

Commit ca22e81

Browse files
feat: use hugo mounts to mount the per folder i18n translations
1 parent 5df8efd commit ca22e81

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+83
-32
lines changed

data/i18n/OWNERS

-11
This file was deleted.

hugo.toml

+72-1
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,6 @@ languageName = "English"
293293
# Weight used for sorting.
294294
weight = 1
295295
languagedirection = "ltr"
296-
i18nDir = "./data/i18n"
297296

298297
[languages.en.params]
299298
description = "Production-Grade Container Orchestration"
@@ -517,3 +516,75 @@ languagedirection = "ltr"
517516
languageNameLatinScript = "Tiếng Việt"
518517
description = "Giải pháp điều phối container trong môi trường production"
519518

519+
# Ensure that the correct file names are in the correct directory. For e.g. i18n/en should contain en.toml and never de.toml
520+
[[module.mounts]]
521+
source = "i18n/bn"
522+
target = "i18n"
523+
524+
[[module.mounts]]
525+
source = "i18n/de"
526+
target = "i18n"
527+
528+
[[module.mounts]]
529+
source = "i18n/en"
530+
target = "i18n"
531+
532+
[[module.mounts]]
533+
source = "i18n/es"
534+
target = "i18n"
535+
536+
[[module.mounts]]
537+
source = "i18n/fr"
538+
target = "i18n"
539+
540+
[[module.mounts]]
541+
source = "i18n/hi"
542+
target = "i18n"
543+
544+
[[module.mounts]]
545+
source = "i18n/id"
546+
target = "i18n"
547+
548+
[[module.mounts]]
549+
source = "i18n/it"
550+
target = "i18n"
551+
552+
[[module.mounts]]
553+
source = "i18n/ja"
554+
target = "i18n"
555+
556+
[[module.mounts]]
557+
source = "i18n/ko"
558+
target = "i18n"
559+
560+
[[module.mounts]]
561+
source = "i18n/nl"
562+
target = "i18n"
563+
564+
[[module.mounts]]
565+
source = "i18n/no"
566+
target = "i18n"
567+
568+
[[module.mounts]]
569+
source = "i18n/pl"
570+
target = "i18n"
571+
572+
[[module.mounts]]
573+
source = "i18n/pt-br"
574+
target = "i18n"
575+
576+
[[module.mounts]]
577+
source = "i18n/ru"
578+
target = "i18n"
579+
580+
[[module.mounts]]
581+
source = "i18n/uk"
582+
target = "i18n"
583+
584+
[[module.mounts]]
585+
source = "i18n/vi"
586+
target = "i18n"
587+
588+
[[module.mounts]]
589+
source = "i18n/zh-cn"
590+
target = "i18n"

i18n/OWNERS

+11-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
1-
# No owner overrides here
2-
# See data/i18n/*/OWNERS instead
1+
# See the OWNERS docs at https://go.k8s.io/owners
2+
3+
# This is the directory for all source content.
4+
# Teams and members are visible at https://github.com/orgs/kubernetes/teams.
5+
6+
reviewers:
7+
- sig-docs-localization-reviewers
8+
9+
approvers:
10+
- sig-docs-localization-owners
11+
- sig-docs-website-owners

i18n/bn.toml

-1
This file was deleted.

data/i18n/bn/OWNERS i18n/bn/OWNERS

File renamed without changes.
File renamed without changes.

i18n/de.toml

-1
This file was deleted.

data/i18n/de/OWNERS i18n/de/OWNERS

File renamed without changes.
File renamed without changes.

i18n/en.toml

-1
This file was deleted.

data/i18n/en/OWNERS i18n/en/OWNERS

File renamed without changes.
File renamed without changes.

i18n/es.toml

-1
This file was deleted.

data/i18n/es/OWNERS i18n/es/OWNERS

File renamed without changes.
File renamed without changes.

i18n/fr.toml

-1
This file was deleted.

data/i18n/fr/OWNERS i18n/fr/OWNERS

File renamed without changes.
File renamed without changes.

i18n/hi.toml

-1
This file was deleted.

data/i18n/hi/OWNERS i18n/hi/OWNERS

File renamed without changes.
File renamed without changes.

i18n/id.toml

-1
This file was deleted.

data/i18n/id/OWNERS i18n/id/OWNERS

File renamed without changes.
File renamed without changes.

i18n/it.toml

-1
This file was deleted.

data/i18n/it/OWNERS i18n/it/OWNERS

File renamed without changes.
File renamed without changes.

i18n/ja.toml

-1
This file was deleted.

data/i18n/ja/OWNERS i18n/ja/OWNERS

File renamed without changes.
File renamed without changes.

i18n/ko.toml

-1
This file was deleted.

data/i18n/ko/OWNERS i18n/ko/OWNERS

File renamed without changes.
File renamed without changes.

i18n/nl.toml

-1
This file was deleted.
File renamed without changes.

i18n/no.toml

-1
This file was deleted.
File renamed without changes.

i18n/pl.toml

-1
This file was deleted.

data/i18n/pl/OWNERS i18n/pl/OWNERS

File renamed without changes.
File renamed without changes.

i18n/pt-br.toml

-1
This file was deleted.
File renamed without changes.
File renamed without changes.

i18n/ru.toml

-1
This file was deleted.

data/i18n/ru/OWNERS i18n/ru/OWNERS

File renamed without changes.
File renamed without changes.

i18n/uk.toml

-1
This file was deleted.

data/i18n/uk/OWNERS i18n/uk/OWNERS

File renamed without changes.
File renamed without changes.

i18n/vi.toml

-1
This file was deleted.

data/i18n/vi/OWNERS i18n/vi/OWNERS

File renamed without changes.
File renamed without changes.

i18n/zh-cn.toml

-1
This file was deleted.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)