Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI] Script to help know if localized pages need updating #4599

Merged
merged 2 commits into from
Jun 6, 2024

Conversation

chalin
Copy link
Contributor

@chalin chalin commented Jun 5, 2024

For example, this is what it outputs for zh using verbose mode:

$ ./scripts/i18n-check.sh -v content/zh          
1       1       content/en/docs/demo/_index.md
File is in sync content/zh/docs/what-is-opentelemetry.md
30      30      content/en/docs/concepts/components.md
File is in sync content/zh/docs/concepts/semantic-conventions.md
File is in sync content/zh/docs/concepts/_index.md
1       1       content/en/docs/kubernetes/_index.md
File is in sync content/zh/docs/_index.md
13      1       content/en/_index.md

Use -d to see the detailed page diff, for example:

$ ./scripts/i18n-check.sh -d content/zh/docs/kubernetes

Will output:

diff --git a/content/en/docs/kubernetes/_index.md b/content/en/docs/kubernetes/_index.md
index 3592df5d..c7980653 100644
--- a/content/en/docs/kubernetes/_index.md
+++ b/content/en/docs/kubernetes/_index.md
@@ -1,7 +1,7 @@
 ---
 title: OpenTelemetry with Kubernetes
 linkTitle: Kubernetes
-weight: 11
+weight: 350
 description: Using OpenTelemetry with Kubernetes
 ---

/cc @open-telemetry/docs-zh-approvers @ymotongpoo

@chalin chalin added the CI/infra CI & infrastructure label Jun 5, 2024
@chalin chalin requested a review from a team June 5, 2024 11:58
@chalin chalin force-pushed the chalin-im-lsync-2024-06-05 branch from e8db0ce to ca7d1dd Compare June 5, 2024 11:58
@chalin chalin force-pushed the chalin-im-lsync-2024-06-05 branch from e909219 to 21c89bc Compare June 6, 2024 14:41
@svrnm svrnm merged commit 52ac0a1 into open-telemetry:main Jun 6, 2024
15 checks passed
@chalin chalin deleted the chalin-im-lsync-2024-06-05 branch June 6, 2024 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI/infra CI & infrastructure
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants