diff --git a/.github/workflows/localazy-download.yml b/.github/workflows/localazy-download.yml deleted file mode 100644 index 95dffc250ea..00000000000 --- a/.github/workflows/localazy-download.yml +++ /dev/null @@ -1,48 +0,0 @@ -name: Download translations from Localazy - -on: - schedule: - # Every midnight - - cron: "0 0 * * *" - - workflow_dispatch: - -jobs: - localazy-download: - name: Download strings from Localazy - runs-on: ubuntu-22.04 - permissions: - contents: write - pull-requests: write - steps: - - uses: actions/checkout@v4.2.2 - - uses: GetStream/android-ci-actions/actions/setup-java@main - - uses: tibdex/github-app-token@v1.7.0 - id: generate-token - with: - app_id: ${{ secrets.APP_ID_OBTAIN_TOKEN }} - private_key: ${{ secrets.APP_PRIVATE_KEY_OBTAIN_TOKEN }} - - uses: localazy/download@v1.1.0 - with: - read_key: ${{ secrets.LOCALAZY_READ_KEY }} - write_key: ${{ secrets.LOCALAZY_WRITE_KEY }} - - uses: GetStream/android-ci-actions/actions/gradle-cache@main - with: - cache-name: gradle-lint - - name: Add license headers - run: ./gradlew spotlessApply - - name: Create Pull Request - uses: peter-evans/create-pull-request@v6 - with: - commit-message: "AUTOMATION: Update translations" - title: "AUTOMATION: Update translations" - delete-branch: true - reviewers: GetStream/android-developers - body: | - - Translations downloaded from Localazy - - Auto-generated by [create-pull-request][1] - - [1]: https://github.com/peter-evans/create-pull-request - branch: update-translations - token: ${{ steps.generate-token.outputs.token }} diff --git a/.github/workflows/localazy-upload.yml b/.github/workflows/localazy-upload.yml deleted file mode 100644 index 7b32adc60b0..00000000000 --- a/.github/workflows/localazy-upload.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: Upload to Localazy -on: - push: - branches: - - develop - paths: - - 'stream-chat-android-client/src/main/res/values/strings.xml' - - 'stream-chat-android-compose/src/main/res/values/strings.xml' - - 'stream-chat-android-ui-common/src/main/res/values/strings.xml' - - 'stream-chat-android-ui-components/src/main/res/values/strings.xml' - -jobs: - localazy-upload: - name: Upload strings to Localazy - runs-on: ubuntu-22.04 - steps: - - uses: actions/checkout@v4.2.2 - - uses: localazy/upload@v1 - with: - read_key: ${{ secrets.LOCALAZY_READ_KEY }} - write_key: ${{ secrets.LOCALAZY_WRITE_KEY }} diff --git a/localazy.json b/localazy.json deleted file mode 100644 index ea9bb0681f3..00000000000 --- a/localazy.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "upload": { - "type": "android", - "deprecate": "project", - "files": [ - { - "pattern": "stream-chat-android-client/src/main/res/values/strings.xml", - "file": "strings-client.xml" - }, - { - "pattern": "stream-chat-android-compose/src/main/res/values/strings.xml", - "file": "strings-compose.xml" - }, - { - "pattern": "stream-chat-android-ui-common/src/main/res/values/strings.xml", - "file": "strings-ui-common.xml" - }, - { - "pattern": "stream-chat-android-ui-components/src/main/res/values/strings.xml", - "file": "strings-ui-components.xml" - }, - { - "group": "client-all", - "pattern": "stream-chat-android-client/src/main/res/values-*/strings.xml", - "lang": "${autodetectLang}", - "file": "strings-client.xml" - }, - { - "group": "compose-all", - "pattern": "stream-chat-android-compose/src/main/res/values-*/strings.xml", - "lang": "${autodetectLang}", - "file": "strings-compose.xml" - }, - { - "group": "ui-common-all", - "pattern": "stream-chat-android-ui-common/src/main/res/values-*/strings.xml", - "lang": "${autodetectLang}", - "file": "strings-ui-common.xml" - }, - { - "group": "ui-components-all", - "pattern": "stream-chat-android-ui-components/src/main/res/values-*/strings.xml", - "lang": "${autodetectLang}", - "file": "strings-ui-components.xml" - } - ] - }, - "download": { - "files": [ - { - "stop": true, - "conditions": "equals: ${file}, strings-client.xml", - "output": "stream-chat-android-client/src/main/res/values-${langAndroidRes}/strings.xml" - }, - { - "stop": true, - "conditions": "equals: ${file}, strings-ui-common.xml", - "output": "stream-chat-android-ui-common/src/main/res/values-${langAndroidRes}/strings.xml" - }, - { - "stop": true, - "conditions": "equals: ${file}, strings-compose.xml", - "output": "stream-chat-android-compose/src/main/res/values-${langAndroidRes}/strings.xml" - }, - { - "stop": true, - "conditions": "equals: ${file}, strings-ui-components.xml", - "output": "stream-chat-android-ui-components/src/main/res/values-${langAndroidRes}/strings.xml" - } - ] - } -}