A Swift script to automatically download and update localization files from Traduora translation management platform.
This script automates the process of downloading localization files from Traduora and updating your iOS project's .strings files. It supports multiple locales and handles authentication automatically.
- 🔐 Automatic Authentication: Handles OAuth2 authentication with Traduora
- 🌐 Multiple Locales: Downloads localization files for specified target locales
- 📁 Directory Management: Automatically creates
.lprojdirectories - ⚙️ Environment Configuration: Uses
.envfile for secure credential management - 📊 Progress Tracking: Provides detailed console output during execution
- 🛡️ Error Handling: Comprehensive error handling with informative messages
- 📝 Flexible Format: Configurable export format (strings, json, etc.)
- macOS with Swift 5.0+
- Xcode (for iOS development)
- Traduora instance with API access
- Valid Traduora user credentials
- Environment Check: Verifies
.envfile exists - Configuration Loading: Parses environment variables
- Authentication: Obtains OAuth2 access token from Traduora
- Locale Discovery: Fetches available locales from the project
- Filtering: Matches target locales with available locales
- Download: Downloads
.stringsfiles for each locale - Processing: Processes downloaded strings
- File Management: Creates directories and saves files
The script creates the following directory structure:
/path/to/localization/
├── en.lproj/
│ └── Localizable.strings
├── es.lproj/
│ └── Localizable.strings
├── fr.lproj/
│ └── Localizable.strings
└── de.lproj/
└── Localizable.strings
- Never commit
.envfiles to version control - Add
.envto your.gitignorefile - Regularly rotate Traduora credentials
Traduora is a modern translation management platform that helps teams manage their localization workflow efficiently.
- Website: https://traduora.co
- GitHub Repository: https://github.com/ever-co/ever-traduora
- Documentation: https://docs.traduora.co
This project is licensed under the MIT License.