Skip to main content
The honyaku.dev GitHub Action translates your source file into multiple target languages and commits the results back to your repository.

Setup

1

Get an API key

Generate an API key from the settings page.
2

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.
3

Create a workflow file

Create .github/workflows/translate.yml in your repository:

Inputs

Custom Prompts

You can use the custom-prompt input to give the translator additional context about your project:

Lock File

The action creates a honyaku-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

  1. Uploads the source file to the Honyaku API.
  2. Decompiles the file to extract translatable strings (using the previous analysis history from honyaku-lock.json if available for incremental processing).
  3. Queues translation jobs for each target locale.
  4. Polls for job completion.
  5. Downloads the translated files and extracts them to the output directory.
  6. Updates honyaku-lock.json and commits/pushes the changes.