-
Notifications
You must be signed in to change notification settings - Fork 0
Quick Start
EhsanAzish80 edited this page Dec 15, 2025
·
1 revision
Get up and running with auto-translate-localizables in 5 minutes.
✅ Python 3.7+ installed
✅ pip package manager
✅ Xcode project with localization files
# From GitHub (current method)
git clone https://github.com/EhsanAzish80/Auto-Translate-localizables.git
cd Auto-Translate-localizables
pip install -e .
# Verify
auto-translate-xcloc --version- Open your Xcode project
- Product → Export Localizations...
- Choose location (e.g.,
~/Desktop/Localization) - Select languages to export
- Click Export
You should now have a folder structure like:
Localization/
├── en.xcloc/
├── de.xcloc/
├── fr.xcloc/
└── es.xcloc/
auto-translate-xcloc --workspace ~/Desktop/LocalizationThis will:
- ✅ Find all
.xclocfolders - ✅ Translate all languages (except English)
- ✅ Validate placeholder preservation
- ✅ Save translated XLIFF files
auto-translate-xcloc --workspace ~/Desktop/Localization --dry-runThis shows what would be translated without making changes.
- In Xcode: Product → Import Localizations...
- Select the
Localizationfolder - Review changes
- Click Import
✅ Done! Your app now has translated strings.
auto-translate-xcloc --workspace ~/Desktop/Localizationauto-translate-xcloc --workspace ~/Desktop/Localization --dry-runauto-translate-xcloc --workspace ~/Desktop/Localization --only-missingauto-translate-xcloc --workspace ~/Desktop/Localization --only de fr esauto-translate-xcloc --list-languages============================================================
XLIFF Bulk Translation
============================================================
Workspace: /Users/you/Desktop/Localization
Skipping: en
Mode: TRANSLATION
============================================================
============================================================
Processing DE -> de
============================================================
[FILE] Localizable.xliff
[✓] Translated 245 entries (0 errors)
============================================================
Processing FR -> fr
============================================================
[FILE] Localizable.xliff
[✓] Translated 245 entries (0 errors)
============================================================
TRANSLATION SUMMARY
============================================================
[✓] de -> 245 translated, 0 errors
[✓] fr -> 245 translated, 0 errors
============================================================
TOTAL: 490 entries translated
0 errors
============================================================
Make sure you're pointing to the correct directory:
ls ~/Desktop/Localization
# Should show: en.xcloc de.xcloc fr.xclocAdd to PATH:
export PATH="$HOME/.local/bin:$PATH"
# Or for macOS:
export PATH="$HOME/Library/Python/3.11/bin:$PATH"Use --dry-run first to check:
auto-translate-xcloc --workspace ~/Desktop/Localization --dry-run🎉 You're ready! Here's what to explore next:
- CLI Reference - All command options
- Workflow Integration - Automate with Git
- GitHub Actions Setup - Full CI/CD automation
- Python API - Use in your scripts
�� Use --only-missing for incremental updates
💡 Use --dry-run before making changes
💡 Keep English (en) in skip list - it's usually your source
💡 Review git diff after translating to check changes
💡 Use --fail-on-placeholder-mismatch in CI pipelines
Questions? See FAQ or Troubleshooting