Skip to content

Conversation

sebastianAtWillowTree
Copy link

@sebastianAtWillowTree sebastianAtWillowTree commented Oct 14, 2025

#811

Crowdin Localization

Requirements

Github actions Environment variables

I chose Staging but if we want a different environment name we can set that in the crowdin_pull.yml

  • secrets.CROWDIN_PERSONAL_TOKEN
    permissions needed:
    - Project Access - Read access to the specific project (CROWDIN_PROJECT_ID)
    - Bundles - Read/Download permissions for bundles
    - Translations - Download permissions for translations

  • vars.CROWDIN_BUNDLE_ID
    bundle settings: https://crowdin.com/project/vocable-ios-clone/translations -> Target File Bundles
    - Source files path: Vocable/Supporting Files/*.xcstrings
    - Format: Apple Strings Catalog Exporter (I can't seem to add the app, maybe elevated perms are needed?
    - Export Pattern: CrowdinExport/%file_name%.xcstrings

  • vars.CROWDIN_PROJECT_ID
    get this from the dashboard: 397168

Files changed

fastfile

  • simplified the workflow by using xcstrings files instead of xliff files

crowdin_pull.yml

  • Workflow can be manually called
  • Environment name is used (Staging) so that action can use Github’s variables and secrets
  • Up ruby version and use xcstrings_import from fastlane file

crowdin_push.yml

  • added environment and fix variables

crowdin.yml

  • updated the translations path
  • added api_token_env and project_id_env variables

Notes

When to dispatch

  • Originally it was set to be a cron job every 3 hours.
  • Instead we should run this action as part of our release workflow
    -needs to just call this workflow instead of calling xliff export
  • have a manual workflow dispatch if we want this to run otherwise

commit fd9ed483bc3d5430ef1cb04953d57eef4219e0a0
Author: sebasAtWillowTree <[email protected]>
Date:   Tue Oct 14 12:40:25 2025 -0400

    revert to original xcstrings files

commit da7bffb
Author: sebasAtWillowTree <[email protected]>
Date:   Tue Oct 14 11:18:16 2025 -0400

    remove on push to develop branch trigger

commit 100ac1c
Merge: e4bfba6 58608a6
Author: sebasAtWillowTree <[email protected]>
Date:   Mon Oct 13 14:50:57 2025 -0400

    Merge branch 'develop' of https://github.com/sebastianAtWillowTree/vocable-ios-1 into develop

commit e4bfba6
Author: sebasAtWillowTree <[email protected]>
Date:   Mon Oct 13 14:50:29 2025 -0400

    Update crowdin.yml

commit 58608a6
Merge: 99ea112 b81be56
Author: sebastianAtWillowTree <[email protected]>
Date:   Mon Oct 13 14:47:35 2025 -0400

    Merge pull request #3 from sebastianAtWillowTree/crowdin/update-translations-bot

    [CI] Update Localizations

commit b81be56
Author: sebastianAtWillowTree <[email protected]>
Date:   Mon Oct 13 18:45:21 2025 +0000

    Update Localizations

commit 99ea112
Author: sebasAtWillowTree <[email protected]>
Date:   Mon Oct 13 14:44:24 2025 -0400

    Update crowdin.yml

commit bf58ff8
Author: sebasAtWillowTree <[email protected]>
Date:   Mon Oct 13 14:31:48 2025 -0400

    add tokens

commit 748bde1
Author: sebasAtWillowTree <[email protected]>
Date:   Mon Oct 13 14:18:50 2025 -0400

    add yml back

commit 61bb4d9
Merge: d9e38a4 cbd691e
Author: sebastianAtWillowTree <[email protected]>
Date:   Mon Oct 13 14:00:03 2025 -0400

    Merge pull request #2 from sebastianAtWillowTree/crowdin/update-translations-bot

    [CI] Update Localizations

commit cbd691e
Author: sebastianAtWillowTree <[email protected]>
Date:   Mon Oct 13 16:39:10 2025 +0000

    Update Localizations

commit d9e38a4
Merge: 86f078e 521240b
Author: sebastianAtWillowTree <[email protected]>
Date:   Mon Oct 13 12:16:57 2025 -0400

    Merge pull request #1 from sebastianAtWillowTree/crowdin/update-translations-bot

    [CI] Update Localizations

commit 521240b
Author: sebastianAtWillowTree <[email protected]>
Date:   Mon Oct 13 16:12:20 2025 +0000

    Update Localizations

commit 86f078e
Author: sebasAtWillowTree <[email protected]>
Date:   Mon Oct 13 10:27:17 2025 -0400

    move actions to correct place

commit 312e70f
Author: sebasAtWillowTree <[email protected]>
Date:   Mon Oct 13 09:55:57 2025 -0400

    add Staging environment and runner information

commit 72dd089
Author: sebasAtWillowTree <[email protected]>
Date:   Fri Oct 10 16:03:04 2025 -0400

    Crowdin Localization Actions Integration

    crowdin_pull.yml now downloads and bundles latests localizations on pull request
@WTA-Security-CI
Copy link

WTA-Security-CI commented Oct 14, 2025

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Licenses 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@wt-custom-integrations
Copy link

wt-custom-integrations commented Oct 14, 2025

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants