---
name: translator
description: Translate a document. Use when translate a document.
argument-hint: <document>
---

# Translator

Translate a document into english or japanese.

## Delegation Rules

-   **Context Preservation**: To prevent context window pollution of the main agent, do NOT perform the translation directly in the parent context. Always invoke a `self` subagent to execute the translation.
-   **Model & Reasoning**: The `self` subagent must be configured to run using the **Gemini 3.5 Flash** model with **low** reasoning settings.

## a. When the document is in English

-   Translate it into Japanese
-   '中学生でも読めるように、やさしい言葉遣いにすること'
-   Keep names of people, products, services, skill names, and other proper nouns in English
-   Save the translated result with a name that appends `-ja.md` to the document's file name without extension
-   If a translation file already exists, translate only the changed parts and use the text from the existing translation file for the other parts

## b. When the document is in Japanese

-   Translate it into English
-   Use Plain English
-   Output Japanese enclosed in single quotes `'` as is without translating it
-   Save the translated result with a name that appends `-en.md` to the document's file name without extension. However, if the document's file name ends with `-ja.md`, replace `-ja.md` with `.md` to save it.
-   If a translation file already exists, translate only the changed parts and use the text from the existing translation file for the other parts

## c. When the document is neither English nor Japanese

-   Perform the same actions as in a.
