Assistant for Android localization. Automatically translates strings.xml and arrays.xml using various AI and translation services directly within VS Code.
Features
Multi-Service Support:
OpenAI (ChatGPT)
Google Vertex AI (Gemini)
Microsoft Translator
Google Translate
DeepL
AWS Translate
Smart Parsing: Reads strings.xml and preserves file structure/formatting as much as possible.
Selective Translation: Choose specific strings to translate via a checkbox UI.
Context Aware: Provide context/instructions to the AI (e.g., "Formal tone", "Medical app", "Max 10 chars") for better quality translations.
Seamless Integration: accessible via Command Palette or Context Menu.
Installation
From VSIX
Download the .vsix file.
In VS Code, go to the Extensions view (Cmd+Shift+X or Ctrl+Shift+X).
Click the ... (Views and More Actions) menu at the top right of the Extensions view.
Select Install from VSIX....
Choose the android-localization-helper-x.x.x.vsix file.
User Manual
1. Open an Android Project
Open your Android project folder in VS Code. Navigate to your resource directory, typically app/src/main/res/values/.
2. Start Translation
You can start the translation process in two ways:
Context Menu: Right-click on a strings.xml or arrays.xml file in the Explorer and select Translate Android Strings.
Command Palette: Open the Command Palette (Cmd+Shift+P / Ctrl+Shift+P) and type Translate Android Strings.
3. Configure Translation
A Webview panel will open with the following configuration options: