A specialized tool for translating Localizable.xcstrings files using AI. This tool streamlines the localization process by providing context-aware translations while maintaining the structure and formatting of your Apple platform string files.
The .xcstrings format is Apple's modern localization resource format used in Xcode for macOS, iOS, watchOS, and tvOS applications. It uses a structured JSON format that efficiently manages string variations, pluralization rules, and provides valuable context for translators. This format is designed to handle complex localization scenarios while maintaining a clean, organized structure that's both human-readable and machine-processable.
Try the tool now at https://xcstrings-translator-react.pages.dev/.
- π Direct support for Localizable.xcstrings files
- π€ AI-powered translations via OpenRouter
- π Support for multiple target languages
- π Preserves string contexts and comments
- π― Maintains string formatting and placeholders
- πΎ Export translations back to xcstrings format
- Clone and install dependencies:
git clone https://github.com/okturan/xcstrings-translator-react.git
cd xcstrings-translator-react
npm install
- Start the development server:
npm run dev
- Set up your OpenRouter API key:
- Visit OpenRouter to get your API key
- When you launch the app, you'll see an API key input section at the top
- Enter your key - it will be securely stored in your browser
- Load your Localizable.xcstrings file using the file picker
- Select your target language
- Use the AI translation feature to generate translations
- Review and edit translations as needed
- Export the updated strings file
The tool maintains all metadata, comments, and formatting from your original xcstrings file while adding the new translations.
Built with:
- React + TypeScript for robust frontend development
- Vite for lightning-fast builds
- Tailwind CSS for styling
- OpenRouter API (Claude) for AI translations
Contributions are welcome! Feel free to:
- Report bugs
- Suggest features
- Submit pull requests