xcstrings translator is a simple tool to translate .xcstrings
files, using Apple's Translate framework.
The tool is written in Swift and uses the Apple's Translate framework to translate the .xcstrings
files.
- Translate in all supported languages with one button.
- Skip string if it's already translated.
- Skip strings marked with
shouldTranslate: false
.
- Input language detection.
- Translate to a specific language.
- Save translated strings to the input file.
- Save translated strings to a new file. (only if test mode is enabled)
![image](https://private-user-images.githubusercontent.com/1290461/409687305-f4d1bb94-957c-40a8-a9c0-cb961047454a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNTM1MDMsIm5iZiI6MTczOTE1MzIwMywicGF0aCI6Ii8xMjkwNDYxLzQwOTY4NzMwNS1mNGQxYmI5NC05NTdjLTQwYTgtYTljMC1jYjk2MTA0NzQ1NGEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTBUMDIwNjQzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OGNiMjY4NDg5NWRjMTE4MzBiYWM3MDZlNGYyZDlhM2Y4ZDZhMDJkYzJlZTRlMzA4ZTgyOWRlZGE4OGVhNmZkZiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.8RW0q3AACagO2wngVcDFYEAFk4TJ6xs0PomxpPaX9WA)
xcstrings-translator.mov
I'm not planning to add support for Google Translate
, DeepL
, Microsoft Translator
or any other (AI) translation service, If you think it should be added, feel welcome to create a pull request.
Alternatives to this tool are (but not limited to):
- TranslateKit by Cihat Gündüz, TranslateKit uses
DeepL
,Google Translate
andMicrosoft Translator
, it relies on in-app subscriptions.
Special thanks to these wonderful people:
- Zhenyi Tan for his help on a saving issue which I encountered.
- Cihat Gündüz creating TranslateKit which gave me an idea how to build the GUI of this application.
Here are the frameworks/packages used in this project:
🦋 @0xWDG 🐘 mastodon.social/@0xWDG 🐦 @0xWDG 🧵 @0xWDG 🌐 wesleydegroot.nl 🤖 Discord
Interested learning more about Swift? Check out my blog.