Setup
Get an API key
Generate an API key from the settings page.
Add the API key to your repository
Go to your repository’s Settings > Secrets and variables > Actions and create a new secret named
HONYAKU_API_KEY with your API key.Inputs
| Name | Required | Default | Description |
|---|---|---|---|
source-file | Yes | Path to the source translation file | |
output-dir | Yes | Output directory for translated files | |
targets | Yes | Comma-separated list of target locales in <locale>:<filename> format | |
api-key | Yes | API key for authentication | |
translator-id | No | gpt_4_1_mini | Translator model ID |
custom-prompt | No | "" | Custom prompt for the translator |
base-url | No | https://honyaku.dev/api/v1 | Base URL of the Honyaku API |
Custom Prompts
You can use thecustom-prompt input to give the translator additional context about your project:
Lock File
The action creates ahonyaku-lock.json file in your repository root to track the analysis history. Commit this file to your repository. It enables incremental processing by linking new analyses to previous ones.
To avoid unnecessary runs, use the paths filter in your workflow trigger to only run the action when the source file changes (see the example workflow above).
How It Works
- Uploads the source file to the Honyaku API.
- Decompiles the file to extract translatable strings (using the previous analysis history from
honyaku-lock.jsonif available for incremental processing). - Queues translation jobs for each target locale.
- Polls for job completion.
- Downloads the translated files and extracts them to the output directory.
- Updates
honyaku-lock.jsonand commits/pushes the changes.