You've already forked comprehensive-rust
mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-07-04 21:58:46 +02:00
Publish report of translation status. (#2190)
This commit is contained in:
4
.github/workflows/install-mdbook/action.yml
vendored
4
.github/workflows/install-mdbook/action.yml
vendored
@ -28,6 +28,10 @@ runs:
|
||||
run: cargo install mdbook-i18n-helpers --locked --version 0.3.3
|
||||
shell: bash
|
||||
|
||||
- name: Install i18n-report
|
||||
run: cargo install i18n-report --locked --version 0.1.0
|
||||
shell: bash
|
||||
|
||||
- name: Install mdbook-exerciser
|
||||
run: cargo install --path mdbook-exerciser --locked
|
||||
shell: bash
|
||||
|
10
.github/workflows/publish.yml
vendored
10
.github/workflows/publish.yml
vendored
@ -49,6 +49,16 @@ jobs:
|
||||
mv book/$po_lang/html book/html/$po_lang
|
||||
done
|
||||
|
||||
- name: Build translation report
|
||||
run: i18n-report book/html/translation_report.html po/*.po
|
||||
|
||||
- name: Build synced translation report
|
||||
run: |
|
||||
cp -r po synced-po
|
||||
MDBOOK_OUTPUT='{"xgettext": {"pot-file": "messages.pot", "granularity": 0}}' mdbook build -d synced-po
|
||||
for file in synced-po/*.po; do msgmerge --update $file synced-po/messages.pot ; done
|
||||
i18n-report book/html/synced_translation_report.html synced-po/*.po
|
||||
|
||||
- name: Setup Pages
|
||||
uses: actions/configure-pages@v5
|
||||
|
||||
|
Reference in New Issue
Block a user