duartebarbosadev/Android Resource Translator
Checks Android resource files for missing translations and automatically translates them using modern LLM providers.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Jun 4, 2026
- License
- MIT
Pinned Snippet
uses: duartebarbosadev/androidresourcetranslator@47314b34c41b1506a7988c0a30e09aaa8b7c0ac9 # v3.0.4tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| resources_paths | Comma-separated paths to the Android resource directories (e.g., './app/src/main/res, ./library/src/main/res'). | no | ${{ github.workspace }} |
| dry_run | Run in dry-run mode (only report missing translations without translating). Set to 'true' to enable dry-run mode. | no | false |
| log_trace | Enable detailed logging. Set to 'true' to enable. | no | false |
| llm_provider | LLM provider to use (e.g. openrouter, openai, gemini, anthropic, ollama, lm_studio) | no | openrouter |
| model | Model to use for translation (e.g. 'google/gemini-2.5-flash', 'gpt-4o-mini', 'claude-3-5-sonnet-latest') | no | google/gemini-2.5-flash |
| openrouter_site_url | Your site URL for OpenRouter rankings (This Github action is set by default - optional, only used with OpenRouter) | no | https://github.com/duartebarbosadev/AndroidResourceTranslator |
| openrouter_site_name | Your site name for OpenRouter rankings (This Github action is set by default - optional, only used with OpenRouter) | no | AndroidResourceTranslatorAction |
| openrouter_send_site_info | Send site URL and name to OpenRouter for rankings (This Github action is set by default - set to 'false' to disable) | no | true |
| project_context | Additional project context to include in translation prompts. | no | "" |
| ignore_folders | Comma-separated list of folder names to ignore during resource scanning (e.g., build). | no | "" |
| include_reference_context | Include existing translations from the target language as context for the LLM. Set to 'false' to disable. | no | true |
| reference_context_limit | Maximum number of existing translations to include as context (0 disables context). | no | 25 |
| batch_size | Maximum number of items to translate in a single batch API call (default: 10). | no | 10 |
Outputs
| name | description |
|---|---|
| translation_report | A translation report in markdown format |