⚒️ Syncing iOS localization gaps with Google Sheets and GitHub PR placeholders

219 views · ⚒️ Engineering

💡 Pro Tip — If you need GitHub data beyond what the REST API gives you, ScraperNode has a repository scraper that extracts metadata at scale without token rate limits.

View All Scrapers

Description

Fill iOS localization gaps from .strings → Google Sheets and PR with placeholders (GitHub)

This n8n workflow automatically identifies missing translations in .strings files across iOS localizations (e.g., Base.lproj vs fr.lproj) and generates a report in Google Sheets. Optionally, it creates a GitHub PR to insert placeholder strings ("__TODO_TRANSLATE__") so builds don’t fail. Supports DRY_RUN mode.

Who’s it for

How it works

  1. A GitHub Webhook triggers on push or pull request.
  2. The iOS repo is scanned for .strings files under Base.lproj or en.lproj and their target-language counterparts.
  3. It compares keys and identifies what’s missing.
  4. A new or existing Google Sheet tab (e.g., fr) is updated with missing entries.
  5. If enabled, it creates a GitHub PR with placeholder keys (e.g., "__TODO_TRANSLATE__").

How to set up

  1. Import the Workflow JSON into your n8n instance.
  2. Set Config Node values like:
{
"GITHUB_OWNER": "your-github-user-name",
"GITHUB_REPO": "your-iOS-repo-name",
"BASE_BRANCH": "develop",
"SHEET_ID": "<YOUR_GOOGLE_SHEET_ID>",
"ENABLE_PR": "true",
"IOS_SOURCE_GLOB": "**/Base.lproj/*.strings,**/en.lproj/*.strings",
"IOS_TARGET_GLOB": "**/*.lproj/*.strings",
"PLACEHOLDER_VALUE": "__TODO_TRANSLATE__",
"BRANCH_TEMPLATE": "chore/l10n-gap-{{YYYYMMDD}}",
}
  1. Create GitHub Webhook

    • URL: https://your-n8n-instance/webhook/l10n-gap-ios
    • Content-Type: application/json
    • Trigger on: Push, Pull Request
  2. Connect credentials

    • GitHub token with repo scope
    • Google Sheets API
    • (Optional) Slack OAuth + SMTP

Requirements

ToolNeeded ForNotes
GitHub RepoWebhook, API for PRsrepo token or App
Google SheetsSheet outputNeeds valid SHEET_ID or create-per-run
Slack (optional)Notificationschat:write scope
SMTP (optional)Email fallbackStandard SMTP creds

How to customize

Add‑ons

Use Case Examples

Common troubleshooting

IssuePossible CauseSolution
No source files foundGlob doesn’t match Base.lproj or en.lprojAdjust IOS_SOURCE_GLOB
Target file missingfr.lproj doesn’t exist yetWill be created in placeholder PR
Parsing skips entriesNon-standard string format in fileEnsure proper .strings format "key" = "value";
Sheet not updatingSHEET_ID missing or insufficient permissionAdd valid ID or allow write access
PR not createdENABLE_PR=false or no missing keysEnable PR and ensure at least one key is missing
Slack/Email not receivedMissing credentials or configConfigure Slack/SMTP properly and set recipient fields

Need Help?

Want to expand this for Android? Loop through 5+ locales at once? Or replace GitHub with GitLab? Contact our n8n Team at WeblineIndia with your repo & locale setup and we’ll help tailor it to your translation workflow!

🔗 Nodes Used

Google Sheets, HTTP Request, Webhook

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup