You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+58Lines changed: 58 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,64 @@ If your repo has certain guidelines for contribution, put them here ahead of the
16
16
-[Kubernetes Contributor Guide](http://git.k8s.io/community/contributors/guide) - Main contributor documentation, or you can just jump directly to the [contributing section](http://git.k8s.io/community/contributors/guide#contributing)
17
17
-[Contributor Cheat Sheet](https://git.k8s.io/community/contributors/guide/contributor-cheatsheet) - Common resources for existing developers
18
18
19
+
## Localization (i18n)
20
+
21
+
We welcome contributions to localize `kubernetes.dev`. Our localization efforts are conducted in partnership with the **SIG Docs Localization subproject**.
22
+
23
+
### Governance and Review
24
+
To ensure translation accuracy and consistency across the Kubernetes project:
25
+
-**Delegated Approval**: Approval for localized content is delegated to the established SIG Docs Language Teams.
26
+
-**Ownership**: Each language directory (e.g., `content/ko/`) should contain an `OWNERS` file that references the corresponding SIG Docs GitHub team (e.g., `@kubernetes/sig-docs-ko-owners`).
27
+
-**Process**: Localization contributors should follow the [SIG Docs Localization guide](https://kubernetes.io/docs/contribute/localization/) for best practices, but all PRs should be opened against the `kubernetes/contributor-site` repository.
28
+
29
+
### Adding a New Language (For Existing SIG Docs Localization Teams)
30
+
31
+
This guide is for **established SIG Docs localization teams** that want to add their language to the Kubernetes Contributor Site (`kubernetes.dev`). If you are interested in starting a new localization for the first time, please see the [SIG Docs Localization guide](https://kubernetes.io/docs/contribute/localization/#start-a-new-localization) and work with the SIG Docs Leads to establish your team before proceeding.
32
+
33
+
To bootstrap support for a new language on the contributor site:
34
+
35
+
1.**Update `hugo.yaml`**:
36
+
Add a new language block under `languages` in the site configuration.
37
+
```yaml
38
+
languages:
39
+
# ... existing languages
40
+
ko:
41
+
contentDir: content/ko
42
+
title: Kubernetes Contributors
43
+
languageName: 한국어
44
+
weight: 2
45
+
languagedirection: ltr
46
+
params:
47
+
languageNameLatinScript: Korean
48
+
```
49
+
50
+
2. **Create the Content Directory**:
51
+
Create the base directory for the new language (e.g., `content/ko/`) and copy the `_index.md` from `content/en/` to start.
52
+
53
+
3. **Set Up the `OWNERS` File**:
54
+
Add an `OWNERS` file in the root of the new language directory (`content/<lang>/OWNERS`) referencing the corresponding SIG Docs GitHub team.
55
+
```yaml
56
+
# content/ko/OWNERS
57
+
# This is the localization project for Korean.
58
+
# Teams and members are visible at https://github.com/orgs/kubernetes/teams.
59
+
60
+
reviewers:
61
+
- sig-docs-ko-reviews
62
+
63
+
approvers:
64
+
- sig-docs-ko-owners
65
+
66
+
labels:
67
+
- area/localization
68
+
- language/ko
69
+
```
70
+
71
+
4. **Translate UI Strings**:
72
+
Create a new translation file in `i18n/<lang>/<lang>.toml` (e.g., `i18n/ko/ko.toml`) and translate the English site strings used in the layouts.
73
+
74
+
5. **Update README.md**:
75
+
Add a link to the new localized `README-<lang>.md` file in the root `README.md` under the Localization section.
76
+
19
77
## Mentorship
20
78
21
79
- [Mentoring Initiatives](https://git.k8s.io/community/mentoring) - We have a diverse set of mentorship programs available that are always looking for volunteers!
**Destination:**`/en/resources/release/` ([View on kubernetes.dev](https://kubernetes.dev/en/resources/release/))
31
+
32
+
> **Note:** The release version in this source changes over time. Check the [sig-release repository](https://git.k8s.io/sig-release/releases/) for the latest release.
0 commit comments