From 084a3d004594f4a27e2f7981f737c7a47b801560 Mon Sep 17 00:00:00 2001 From: Patrice Chalin Date: Fri, 7 Jun 2024 07:07:24 -0400 Subject: [PATCH 1/2] [CI & i18n] GH action to run i18n-check + new fix GH action --- .github/workflows/check-i18n.yml | 13 ++++++++++ .github/workflows/pr-actions.yml | 2 +- .../workflows/scripts/i18n-check-helper.sh | 26 +++++++++++++++++++ package.json | 1 + 4 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/check-i18n.yml create mode 100755 .github/workflows/scripts/i18n-check-helper.sh diff --git a/.github/workflows/check-i18n.yml b/.github/workflows/check-i18n.yml new file mode 100644 index 000000000000..43ce869eb2f2 --- /dev/null +++ b/.github/workflows/check-i18n.yml @@ -0,0 +1,13 @@ +name: i18n + +on: + pull_request: + +jobs: + i18n-check: + name: I18N check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: scripts/i18n-check.sh -u + - run: .github/workflows/scripts/i18n-check-helper.sh diff --git a/.github/workflows/pr-actions.yml b/.github/workflows/pr-actions.yml index 360287437cf9..57fffbee6d7a 100644 --- a/.github/workflows/pr-actions.yml +++ b/.github/workflows/pr-actions.yml @@ -31,7 +31,7 @@ jobs: run: | PR_ACTION=$(echo $COMMENT | grep -oP '/fix:\K\w+') echo "Action is $PR_ACTION" - ACTION_NAMES="all|dict|filenames|format|markdown|refcache|submodules" + ACTION_NAMES="all|dict|filenames|format|i18n|markdown|refcache|submodules|text" if [[ ! "$PR_ACTION" =~ ^($ACTION_NAMES)$ ]]; then echo "Invalid action name: $PR_ACTION" echo "Action name should be one of: $ACTION_NAMES" diff --git a/.github/workflows/scripts/i18n-check-helper.sh b/.github/workflows/scripts/i18n-check-helper.sh new file mode 100755 index 000000000000..8887a0dcf45e --- /dev/null +++ b/.github/workflows/scripts/i18n-check-helper.sh @@ -0,0 +1,26 @@ +#!/bin/bash -e + +echo "For localization docs, see https://opentelemetry.io/docs/contributing/localization" + +CHANGES=`git status --porcelain` + +if [[ -z $CHANGES ]]; then + echo "All localization pages have the requisit commit hash. <3" + exit; +fi + +cat < Date: Fri, 7 Jun 2024 07:47:41 -0400 Subject: [PATCH 2/2] Update `ja` pages --- content/ja/docs/_index.md | 1 + content/ja/docs/what-is-opentelemetry.md | 1 + 2 files changed, 2 insertions(+) diff --git a/content/ja/docs/_index.md b/content/ja/docs/_index.md index 32811e4b8bfe..e4cd7c1fc1b4 100644 --- a/content/ja/docs/_index.md +++ b/content/ja/docs/_index.md @@ -1,6 +1,7 @@ --- title: ドキュメント menu: { main: { weight: 10 } } +default_lang_commit: 93ab1301 --- OTelの略称でも知られるOpenTelemetryは、[トレース](/docs/concepts/signals/traces/)、[メトリクス](/docs/concepts/signals/metrics/)、[ログ](/docs/concepts/signals/logs/)のようなテレメトリーデータを計装、生成、収集、エクスポートするためのベンダー非依存なオープンソースの[オブザーバビリティ](/docs/concepts/observability-primer/#what-is-observability)フレームワークです。 diff --git a/content/ja/docs/what-is-opentelemetry.md b/content/ja/docs/what-is-opentelemetry.md index 58eca622b3a5..38e883c08eeb 100644 --- a/content/ja/docs/what-is-opentelemetry.md +++ b/content/ja/docs/what-is-opentelemetry.md @@ -2,6 +2,7 @@ title: OpenTelemetryとは description: OpenTelemetryが何であり、何でないかについての簡単な説明。 weight: 150 +default_lang_commit: 93ab1301 --- OpenTelemetryは[オブザーバビリティ](/docs/concepts/observability-primer/#what-is-observability)フレームワークであり、[トレース](/docs/concepts/signals/traces/)、[メトリクス](/docs/concepts/signals/metrics/)、[ログ](/docs/concepts/signals/logs/)のようなテレメトリーデータを作成・管理するためにデザインされたツールキットです。