Vibe Coding with Cursor - Modern iOS localization file translator with beautiful CLI
https://github.com/hwangdev97/Rosetta.git
π― This is a vibe coding project β A personal passion project built with modern Rust for iOS localization. Feel free to fork, modify, and make it your own! If you find it useful, give it a star β
A modern, blazing-fast CLI tool for translating iOS .xcstrings files using multiple AI providers with a beautiful terminal interface.
.xcstrings localization filesDownload from Releases (Recommended)
# Download the latest binary from GitHub releases
# https://github.com/hwangdev97/Rosetta/releases
Via Homebrew
brew tap hwangdev97/tools
brew install rosetta
Build from Source
git clone https://github.com/hwangdev97/Rosetta.git
cd Rosetta
chmod +x build.sh
./build.sh
Via Cargo
cargo install --git https://github.com/hwangdev97/Rosetta.git
rosetta setup
Choose your preferred AI provider and enter your API key:
rosetta config # View current configuration
rosetta test # Test AI provider connection
# Translate to Japanese
rosetta translate ja
# Translate to Simplified Chinese
rosetta translate zh-Hans
# Translate to Korean
rosetta translate ko
# Specify custom .xcstrings file path
rosetta translate ja --file /path/to/Localizable.xcstrings
# Fresh translation (retranslate all keys)
rosetta translate ja --mode fresh
# Auto-translate all keys without interaction
rosetta translate ja --auto
# Use specific AI model
rosetta translate ja --model gpt-4
Translation Task
Target: ja
Mode: Supplement (skip existing)
Keys: 25
Key: "Good morning, how are you today?"
β― Translate
Mark as no translation needed
Batch translate next 30
Skip
Save and exit
| Code | Language | Code | Language |
|---|---|---|---|
ja | Japanese | fr | French |
zh-Hans | Simplified Chinese | de | German |
zh-Hant | Traditional Chinese | es | Spanish |
ko | Korean | pt-PT | Portuguese (Portugal) |
it | Italian | pt-BR | Portuguese (Brazil) |
ru | Russian | ar | Arabic |
hi | Hindi | tr | Turkish |
nl | Dutch | pl | Polish |
sv | Swedish | no | Norwegian |
da | Danish | fi | Finnish |
cs | Czech | ro | Romanian |
uk | Ukrainian | el | Greek |
he | Hebrew | id | Indonesian |
th | Thai | vi | Vietnamese |
ml | Malayalam | en-US | English (US) |
en-GB | English (UK) | en-AU | English (Australia) |
rosetta translate.xcstrings files to your target language. See above for options.
rosetta cleanrosetta clean
.xcstrings.backup_* files in the current (or specified) directory (recursively).rosetta clean --directory /path/to/your/project
Want to contribute or customize?
MIT License β see LICENSE for details.