i18n-actions/i18n Translate Action

Automatically translate i18n files using LLM providers (Anthropic, OpenAI, Ollama, AWS Bedrock)

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
providerLLM provider to use (anthropic, openai, ollama, bedrock)yesanthropic
api-keyAPI key for the LLM provider (not required for Ollama or Bedrock)no
modelModel to use for translationno""
source-languageSource language code (e.g., en, en-US)yesen
target-languagesComma-separated list of target language codesyes
filesGlob pattern for translation filesyes**/*.xliff
formatFile format (xliff-1.2, xliff-2.0, json-flat, json-nested, auto)noauto
config-filePath to configuration fileno.i18n-translate.yml
commitWhether to commit changesnotrue
commit-messageCommit message templatenochore(i18n): update translations
batch-sizeNumber of strings to translate per API callno10
max-retriesMaximum number of retries for failed API callsno3
ollama-urlOllama server URL (for ollama provider)nohttp://localhost:11434
aws-regionAWS region for the bedrock provider (e.g., us-east-1)no""
aws-access-key-idAWS access key ID for the bedrock provider. Optional — falls back to the default AWS credential chain (e.g., aws-actions/configure-aws-credentials / OIDC) when omitted.no""
aws-secret-access-keyAWS secret access key for the bedrock provider (paired with aws-access-key-id).no""
aws-session-tokenAWS session token for temporary credentials (bedrock provider).no""
dry-runRun without making actual changesnofalse
contextAdditional context for translationsno""
glossary-filePath to glossary YAML file for consistent terminologyno""
namedescription
translated-countNumber of strings translated
files-updatedNumber of files updated
reportTranslation report in markdown format
commit-shaSHA of the commit (if committed)