Add a helper script for localization (#15789)
* Add a helper script for localization The script generates a report of outdated contents in `content/<l10n-lang>` directory by comparing two l10n team milestone branches. * Add description for scripts/diff_l10n_branches.py
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
9535c7eb3b
commit
b76689388b
@@ -5,6 +5,9 @@
|
||||
- `test_examples.sh`: This script tests whether a change affects example files bundled in the website.
|
||||
- `check-headers-file.sh`: This script checks the headers if you are in a production environment.
|
||||
- `hugo-version-check.sh`: This script checks whether your local Hugo version matches the version used in production.
|
||||
- `diff_l10n_branches.py`: This script generates a report of outdated contents in `content/<l10n-lang>` directory
|
||||
by comparing two l10n team milestone branches.
|
||||
|
||||
|
||||
## Requirements
|
||||
|
||||
@@ -71,3 +74,22 @@ This script checks the headers if you are in a production environment.
|
||||
This script checks whether your local Hugo version matches the version used in production.
|
||||
|
||||
./scripts/hugo-version-check.sh
|
||||
|
||||
## diff_l10n_branches.py
|
||||
|
||||
```
|
||||
$ scripts/diff_l10n_branches.py --help
|
||||
Usage: diff_l10n_branches.py [OPTIONS] L10N_LANG L_COMMIT R_COMMIT
|
||||
|
||||
This script generates a report of outdated contents in `content/<l10n-
|
||||
lang>` directory by comparing two l10n team milestone branches.
|
||||
|
||||
L10n team owners can open a GitHub issue with the report generated by this
|
||||
script when they start a new team milestone.
|
||||
|
||||
ex: `scripts/diff_l10n_branches.py ko dev-1.15-ko.3 dev-1.15-ko.4`
|
||||
|
||||
Options:
|
||||
--src-lang TEXT Source language
|
||||
--help Show this message and exit.
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user