Skip to content

Commit 571f986

Browse files
author
Lian Li
authored
Merge pull request #612 from cncf/improve-language-support
Duplicate missing content from default language during build
2 parents 1ef93f8 + a38e546 commit 571f986

File tree

232 files changed

+26
-10701
lines changed

Some content is hidden

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

232 files changed

+26
-10701
lines changed

.github/ISSUE_TEMPLATE/translation.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,8 @@ body:
3232
value: |
3333
If this is a new translation, please complete the following items:
3434
- [ ] Enable i18n by update website/config.toml and website/i18n/<short-language-code>.toml
35-
- [ ] Copy all contents to content/<short-language-code>
3635
3736
All translations require the following items:
38-
- [ ] Translate some key pages (e.g. content/<short-language-code>/_index.md)
37+
- [ ] Translate some key pages (e.g. content/_short-language-code_/_index.md)
3938
- [ ] Local testing
4039
- [ ] Reviews by additional native speakers

.github/workflows/notice-i18n-tasks.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,5 @@ jobs:
3636
message: |
3737
### Action Required
3838
You are adding or updating English content so please take the following actions for other languages.
39-
- If you add new content under `website/content/en` or targets of the symbolic links in the same directory, please replicate it in the corresponding directories of all other languages. (e.g. If you create `website/content/en/blog/new-post.md`, you should copy it to `website/content/ja/blog/new-post.md`, etc.)
40-
- If you update the content in the same location, please perform the following actions for the corresponding content in other languages.
41-
- If the content has not been translated yet, replace the files with the updated English version.
42-
- If the content has already been translated, include a note suggesting that users check the English page for the most recent updates.
39+
- If you update content, that has corresponding files in other languages, include a note suggesting that users check the English page for the most recent updates in those translated pages.
40+
- If you add new content under `website/content/en` there is nothing you need to do.

website/Makefile

+2
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@ serve:
1414

1515
production-build:
1616
git submodule update --init --recursive
17+
./duplicate_missing_content.sh
1718
hugo \
1819
--minify
1920
npx -y pagefind --site public
2021

2122
preview-build:
2223
git submodule update --init --recursive
24+
./duplicate_missing_content.sh
2325
hugo \
2426
--baseURL $(DEPLOY_PRIME_URL) \
2527
--buildDrafts \

website/content/en/about/_index.md

-19
This file was deleted.

website/content/en/about/wg-platforms.md

-24
This file was deleted.

website/content/es/_index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Today there are two active working groups under the TAG -
3131

3232
## Meetings
3333

34-
Every two weeks on Wednesday at 16:00 UTC ([convert to your local
34+
1st and 3rd Wednesday of each month at 16:00 UTC ([convert to your local
3535
time](https://dateful.com/convert/utc?t=16)).
3636

3737
Meetings are listed on the [main CNCF calendar](https://www.cncf.io/calendar/)

website/content/es/about/_index.md

-19
This file was deleted.

website/content/es/about/wg-platforms.md

-24
This file was deleted.

website/content/es/blog/2023-10-kubecon-chicago.md

-72
This file was deleted.

website/content/es/blog/2024-03-practical-paths-platform-maturity-kubecon.md

-24
This file was deleted.

website/content/es/blog/_index.md

-6
This file was deleted.

website/content/es/blog/announce-platforms-paper.md

-87
This file was deleted.

0 commit comments

Comments
 (0)