{"id":30769907,"url":"https://github.com/botforge-pro/ios-i18n-sync","last_synced_at":"2026-02-25T16:07:40.633Z","repository":{"id":311695239,"uuid":"1043482725","full_name":"botforge-pro/ios-i18n-sync","owner":"botforge-pro","description":"iOS localization sync tool for .strings files","archived":false,"fork":false,"pushed_at":"2026-02-23T11:30:51.000Z","size":88,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-23T19:51:37.425Z","etag":null,"topics":["cli","i18n","ios","localization","python","swift","xcode","yaml"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/botforge-pro.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-24T00:32:35.000Z","updated_at":"2026-02-23T11:30:54.000Z","dependencies_parsed_at":"2025-08-26T03:31:36.729Z","dependency_job_id":"c51e62d5-460c-471d-99e2-1fefe25ed494","html_url":"https://github.com/botforge-pro/ios-i18n-sync","commit_stats":null,"previous_names":["botforge-pro/ios-i18n-sync"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/botforge-pro/ios-i18n-sync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botforge-pro%2Fios-i18n-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botforge-pro%2Fios-i18n-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botforge-pro%2Fios-i18n-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botforge-pro%2Fios-i18n-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/botforge-pro","download_url":"https://codeload.github.com/botforge-pro/ios-i18n-sync/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botforge-pro%2Fios-i18n-sync/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29829413,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T15:41:19.027Z","status":"ssl_error","status_checked_at":"2026-02-25T15:40:47.150Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","i18n","ios","localization","python","swift","xcode","yaml"],"created_at":"2025-09-04T23:02:39.156Z","updated_at":"2026-02-25T16:07:40.600Z","avatar_url":"https://github.com/botforge-pro.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Tests](https://github.com/botforge-pro/ios-i18n-sync/workflows/Tests/badge.svg)\n[![Python](https://img.shields.io/badge/python-3.9%2B-blue.svg)](https://www.python.org)\n\n# iOS i18n Sync\n\nManage iOS localization files (`.strings`) through a single YAML file. No more editing dozens of separate files for each language. Automatically handles both `Localizable.strings` and `InfoPlist.strings`.\n\n## Why?\n\n- 📝 **Single source of truth** - All translations in one YAML file\n- 🔍 **Easy to review** - See all languages for each key side by side\n- ✅ **Find missing translations** - Instantly see which keys are missing in which languages\n- 🚀 **Simple workflow** - Extract, edit, apply\n- 🎯 **Smart key routing** - Automatically puts `NS*` and `CF*` keys into InfoPlist.strings\n- 🔢 **Plurals support** - Parses `.stringsdict` and generates Android `\u003cplurals\u003e`\n- 🌐 **Per-app language** - Auto-generates `locales_config.xml` for Android\n\n## Installation\n\n```bash\npip install git+https://github.com/botforge-pro/ios-i18n-sync.git\n```\n\n## Usage\n\n### iOS\n\nFrom your iOS project root:\n\n```bash\n# Extract all .strings files (both Localizable and InfoPlist) to translations.yaml\ni18n-sync extract --resources Resources\n\n# Edit translations.yaml with your favorite editor\n# Then apply changes back:\ni18n-sync apply --resources Resources\n```\n\n### Android\n\nGenerate Android `strings.xml` files from the same YAML:\n\n```bash\n# Generate strings.xml for all languages\ni18n-sync apply-android --input translations.yaml --res app/src/main/res\n```\n\nThis creates the proper Android resource structure:\n```\nres/\n├── values/strings.xml           # Default (English)\n├── values-ru/strings.xml        # Russian\n├── values-zh-rCN/strings.xml    # Chinese Simplified\n├── values-pt-rBR/strings.xml    # Portuguese Brazil\n├── xml/locales_config.xml       # Per-app language support\n└── ...\n```\n\nLanguage codes are automatically converted from iOS to Android format (e.g., `zh-Hans` → `zh-rCN`, `pt-BR` → `pt-rBR`).\n\n### Plurals\n\niOS `.stringsdict` files are automatically parsed and converted to Android `\u003cplurals\u003e`:\n\n```yaml\n# In translations.yaml\nPlurals:\n  items_count:\n    en:\n      one: \"%d item\"\n      other: \"%d items\"\n    ru:\n      one: \"%d элемент\"\n      few: \"%d элемента\"\n      many: \"%d элементов\"\n      other: \"%d элементов\"\n```\n\nGenerates Android:\n```xml\n\u003cplurals name=\"items_count\"\u003e\n    \u003citem quantity=\"one\"\u003e%1$d item\u003c/item\u003e\n    \u003citem quantity=\"other\"\u003e%1$d items\u003c/item\u003e\n\u003c/plurals\u003e\n```\n\n### Per-App Language Support\n\nThe tool automatically generates `locales_config.xml` for Android 13+ per-app language settings:\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003clocale-config xmlns:android=\"http://schemas.android.com/apk/res/android\"\u003e\n    \u003clocale android:name=\"de\" /\u003e\n    \u003clocale android:name=\"en\" /\u003e\n    \u003clocale android:name=\"ru\" /\u003e\n    \u003clocale android:name=\"zh-CN\" /\u003e\n\u003c/locale-config\u003e\n```\n\nReference it in your `AndroidManifest.xml`:\n```xml\n\u003capplication\n    android:localeConfig=\"@xml/locales_config\"\n    ...\u003e\n```\n\nThe tool automatically:\n- Extracts from both `Localizable.strings` and `InfoPlist.strings`\n- Organizes translations into sections in YAML\n- Preserves the structure when applying back\n\nDefault paths:\n- Resources: `Resources/` directory\n- YAML file: `translations.yaml`\n\n## YAML Format\n\nThe YAML file is organized into sections corresponding to different .strings files:\n\n```yaml\nLocalizable:\n  cancel:\n    en: \"Cancel\"\n    ru: \"Отмена\"\n    de: \"Abbrechen\"\n    es: \"Cancelar\"\n\n  save:\n    en: \"Save\"\n    ru: \"Сохранить\"\n    de: \"Speichern\"\n    es: \"Guardar\"\n\nInfoPlist:\n  CFBundleDisplayName:\n    en: \"My App\"\n    ru: \"Мое приложение\"\n    de: \"Meine App\"\n    es: \"Mi aplicación\"\n\n  NSCameraUsageDescription:\n    en: \"This app needs camera access\"\n    ru: \"Приложению нужен доступ к камере\"\n    de: \"Diese App benötigt Kamerazugriff\"\n    es: \"Esta aplicación necesita acceso a la cámara\"\n```\n\n## Features\n\n- Handles multiple .strings files (`Localizable.strings`, `InfoPlist.strings`)\n- Parses `.stringsdict` for pluralization rules\n- Generates Android `strings.xml` with proper `\u003cplurals\u003e` elements\n- Auto-generates `locales_config.xml` for Android per-app language\n- Converts iOS format specifiers to Android (`%@` → `%s`, positional args)\n- Organized YAML structure with sections\n- Preserves file headers (comments at the top of .strings files)\n- Sorts keys alphabetically within sections\n- Reports missing translations during extract\n- Handles Unicode correctly\n\n## Why no `check` command?\n\nThe `extract` command already serves as a check - it reports the status of all translations when extracting to YAML. You'll see output like:\n- `All keys present in all languages ✓` - Everything is consistent\n- Missing keys are reported per language if found\n\nThere's no need for a separate `check` command since `extract` is non-destructive to your .strings files and provides all the validation information you need.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbotforge-pro%2Fios-i18n-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbotforge-pro%2Fios-i18n-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbotforge-pro%2Fios-i18n-sync/lists"}