imaun/GPT Translate Action - Translate any files with OpenAI ChatGPT
Detects changes in specified file types, translates them using OpenAI API, and commits the translations.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| api_key | AI Service API Key | yes | — |
| ai_service | AI service provider (openai, gemini, claude, azure) | no | openai |
| ai_model | AI model Specify model (e.g., gemini-pro, claude-v1) | no | gpt-4 |
| target_lang | Target language for translation (e.g., Persian, Spanish, German, French) | no | Persian |
| target_lang_code | Target language code. (e.g: fa for Persian, or ru for Russian) | no | fa |
| file_exts | Comma-separated list of file extensions to translate (e.g., md,json,txt) | no | md |
| output_format | Pattern for translated filenames. Use {lang} for language and {ext} for extension (e.g., *-{lang}.{ext}, translated_*.{ext}) | no | *-{lang}.{ext} |
| user_prompt | Customized user-prompt to send to AI model. | no | Translate this text to {TARGET_LANG} while keeping YAML keys, Any html or json markups unchanged: {text} |
| system_prompt | Customized system-prompt to send to AI model. | no | You are a translator specializing in software development. Preserve YAML metadata, HTML, and other markuo formats or codes. and also technical terms in general software development DO NOT translate them to target language. Translate the text to {TARGET_LANG}. |
| base_branch | The base branch to diff against (if not automatically detected) | no | — |
Outputs
no outputs