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

feat(github-actions): 13922 - fail pipeline if after i18n:msgmerge we… #336

Merged
merged 1 commit into from
Dec 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' || !github.event.pull_request.draft }}
steps:
- run: sudo apt-get update && sudo apt-get install -y gettext
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
Expand All @@ -33,6 +34,16 @@ jobs:
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm run i18n:msgmerge
- shell: bash
run: |
status=$(git status --porcelain)
if [ -n "$status" ]; then
echo "You have gettext translation files unsynced. Please run i18n:msgmerge locally."
exit 1
else
echo "Translations are synced."
fi
- run: npm ci --include=dev
- run: npm run postinstall
- run: npm run lint
Expand Down
4 changes: 2 additions & 2 deletions src/core/localization/gettext/ar/common.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: i18next-conv\n"
"POT-Creation-Date: 2022-12-20T12:08:30.986Z\n"
"POT-Creation-Date: 2022-12-21T10:53:46.140Z\n"
"PO-Revision-Date: 2022-11-28T17:15:49.862Z\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -950,7 +950,7 @@ msgid ""
"optional cookies to improve Disaster Ninja and your experience. You can "
"manage cookies settings or withdraw consent to optional cookies at any "
"time.\n"
"For more information, please, check our [Privacy Policy](/about/privacy)"
"For more information, please, check our [Privacy Policy](about/privacy)"
msgstr ""

#: cookie_banner##decline_all
Expand Down
4 changes: 2 additions & 2 deletions src/core/localization/gettext/de/common.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: i18next-conv\n"
"POT-Creation-Date: 2022-12-20T12:08:30.986Z\n"
"POT-Creation-Date: 2022-12-21T10:53:46.140Z\n"
"PO-Revision-Date: 2022-11-28T17:15:49.862Z\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -966,7 +966,7 @@ msgid ""
"optional cookies to improve Disaster Ninja and your experience. You can "
"manage cookies settings or withdraw consent to optional cookies at any "
"time.\n"
"For more information, please, check our [Privacy Policy](/about/privacy)"
"For more information, please, check our [Privacy Policy](about/privacy)"
msgstr ""

#: cookie_banner##decline_all
Expand Down
4 changes: 2 additions & 2 deletions src/core/localization/gettext/es/common.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: i18next-conv\n"
"POT-Creation-Date: 2022-12-20T12:08:30.986Z\n"
"POT-Creation-Date: 2022-12-21T10:53:46.140Z\n"
"PO-Revision-Date: 2022-11-28T17:15:49.862Z\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -962,7 +962,7 @@ msgid ""
"optional cookies to improve Disaster Ninja and your experience. You can "
"manage cookies settings or withdraw consent to optional cookies at any "
"time.\n"
"For more information, please, check our [Privacy Policy](/about/privacy)"
"For more information, please, check our [Privacy Policy](about/privacy)"
msgstr ""

#: cookie_banner##decline_all
Expand Down
4 changes: 2 additions & 2 deletions src/core/localization/gettext/id/common.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: i18next-conv\n"
"POT-Creation-Date: 2022-12-20T12:08:30.986Z\n"
"POT-Creation-Date: 2022-12-21T10:53:46.140Z\n"
"PO-Revision-Date: 2022-11-28T17:15:49.862Z\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -958,7 +958,7 @@ msgid ""
"optional cookies to improve Disaster Ninja and your experience. You can "
"manage cookies settings or withdraw consent to optional cookies at any "
"time.\n"
"For more information, please, check our [Privacy Policy](/about/privacy)"
"For more information, please, check our [Privacy Policy](about/privacy)"
msgstr ""

#: cookie_banner##decline_all
Expand Down
4 changes: 2 additions & 2 deletions src/core/localization/gettext/ko/common.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: i18next-conv\n"
"POT-Creation-Date: 2022-12-20T12:08:30.986Z\n"
"POT-Creation-Date: 2022-12-21T10:53:46.140Z\n"
"PO-Revision-Date: 2022-11-28T17:15:49.862Z\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -949,7 +949,7 @@ msgid ""
"optional cookies to improve Disaster Ninja and your experience. You can "
"manage cookies settings or withdraw consent to optional cookies at any "
"time.\n"
"For more information, please, check our [Privacy Policy](/about/privacy)"
"For more information, please, check our [Privacy Policy](about/privacy)"
msgstr ""

#: cookie_banner##decline_all
Expand Down