duartebarbosadev/Android Resource Translator

Checks Android resource files for missing translations and automatically translates them using modern LLM providers.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jun 4, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: duartebarbosadev/androidresourcetranslator@47314b34c41b1506a7988c0a30e09aaa8b7c0ac9 # v3.0.4

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
resources_pathsComma-separated paths to the Android resource directories (e.g., './app/src/main/res, ./library/src/main/res').no${{ github.workspace }}
dry_runRun in dry-run mode (only report missing translations without translating). Set to 'true' to enable dry-run mode.nofalse
log_traceEnable detailed logging. Set to 'true' to enable.nofalse
llm_providerLLM provider to use (e.g. openrouter, openai, gemini, anthropic, ollama, lm_studio)noopenrouter
modelModel to use for translation (e.g. 'google/gemini-2.5-flash', 'gpt-4o-mini', 'claude-3-5-sonnet-latest')nogoogle/gemini-2.5-flash
openrouter_site_urlYour site URL for OpenRouter rankings (This Github action is set by default - optional, only used with OpenRouter)nohttps://github.com/duartebarbosadev/AndroidResourceTranslator
openrouter_site_nameYour site name for OpenRouter rankings (This Github action is set by default - optional, only used with OpenRouter)noAndroidResourceTranslatorAction
openrouter_send_site_infoSend site URL and name to OpenRouter for rankings (This Github action is set by default - set to 'false' to disable)notrue
project_contextAdditional project context to include in translation prompts.no""
ignore_foldersComma-separated list of folder names to ignore during resource scanning (e.g., build).no""
include_reference_contextInclude existing translations from the target language as context for the LLM. Set to 'false' to disable.notrue
reference_context_limitMaximum number of existing translations to include as context (0 disables context).no25
batch_sizeMaximum number of items to translate in a single batch API call (default: 10).no10
namedescription
translation_reportA translation report in markdown format