π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Add mobile crowdin action
Manav Rathic6e1a0f59c6e
diff --git a/.github/workflows/mobile-crowdin.yml b/.github/workflows/mobile-crowdin.ymlnew file mode 100644index 0000000000..a5f5915522--- /dev/null+++ b/.github/workflows/mobile-crowdin.yml@@ -0,0 +1,37 @@+name: "Sync Crowdin translations (mobile)"++on:+ push:+ # Run action when mobiles's intl_en.arb is changed+ paths:+ - "mobile/lib/l10n/intl_en.arb"+ branches: [main]+ schedule:+ # Run every 24 hours - https://crontab.guru/#0_*/24_*_*_*+ - cron: "0 */24 * * *"+ workflow_dispatch: # Allow manually running the action++jobs:+ synchronize-with-crowdin:+ runs-on: ubuntu-latest++ steps:+ - name: Checkout+ uses: actions/checkout@v4++ - name: Crowdin's action+ uses: crowdin/github-action@v1+ with:+ upload_sources: true+ upload_translations: true+ download_translations: true+ localization_branch_name: crowdin-translations-mobile+ create_pull_request: true+ skip_untranslated_strings: true+ pull_request_title: "New translations (mobile)"+ pull_request_body: "New translations via [Crowdin GH Action](https://github.com/crowdin/github-action)"+ pull_request_base_branch_name: "main"+ env:+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}+ CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID_MOBILE }}+ CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}diff --git a/.github/workflows/web-crowdin.yml b/.github/workflows/web-crowdin.ymlindex b6c632b86d..45428313c6 100644--- a/.github/workflows/web-crowdin.yml+++ b/.github/workflows/web-crowdin.yml@@ -1,15 +1,15 @@-name: "Sync crowdin translations (web)"+name: "Sync Crowdin translations (web)"on:push:- # Run action when web's en-US/translation.json file is changed+ # Run action when web's en-US/translation.json is changedpaths:- "web/apps/photos/public/locales/en-US/translation.json"branches: [main]schedule:- # Run every 24 hours - https://crontab.guru/#0_*/12_*_*_*+ # Run every 24 hours - https://crontab.guru/#0_*/24_*_*_*- cron: "0 */24 * * *"- workflow_dispatch: # For manually running the action+ workflow_dispatch: # Allow manually running the actionjobs:synchronize-with-crowdin:@@ -28,7 +28,7 @@ jobs:localization_branch_name: crowdin-translations-webcreate_pull_request: trueskip_untranslated_strings: true- pull_request_title: "New Translations"+ pull_request_title: "New translations (web)"pull_request_body: "New translations via [Crowdin GH Action](https://github.com/crowdin/github-action)"pull_request_base_branch_name: "main"env:diff --git a/.github/workflows/web-lint.yml b/.github/workflows/web-lint.ymlindex 3d0e858cfd..d8e24c37d9 100644--- a/.github/workflows/web-lint.yml+++ b/.github/workflows/web-lint.yml@@ -5,7 +5,7 @@ on:push:# But only if something changes inside webpaths:- - 'web/**''+ - "web/**"jobs:lint:diff --git a/mobile/.github/workflows/crowdin.yml b/mobile/.github/workflows/crowdin.ymldeleted file mode 100644index bbb0e32a70..0000000000--- a/mobile/.github/workflows/crowdin.yml+++ /dev/null@@ -1,36 +0,0 @@-name: Sync crowdin translation--on:- workflow_dispatch:- push:- paths:- - 'lib/l10n/intl_en.arb'- branches: [ main ]- schedule:- - cron: '0 */12 * * *' # Every 12 hours - https://crontab.guru/#0_*/12_*_*_*--jobs:- synchronize-with-crowdin:- runs-on: ubuntu-latest-- steps:- - name: Checkout- uses: actions/checkout@v3-- - name: crowdin action- uses: crowdin/github-action@v1- with:- upload_sources: true- upload_translations: true- download_translations: true- localization_branch_name: l10n_translations- create_pull_request: true- skip_untranslated_strings: true- pull_request_title: 'New Translations'- pull_request_body: 'New translations via [Crowdin GH Action](https://github.com/crowdin/github-action)'- pull_request_base_branch_name: 'main'- pull_request_reviewers: ashilkn,vishnukvmd,ua741- env:- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}- CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}- CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}