# gt: General Translation CLI tool: プレーンテキスト
URL: https://generaltranslation.com/ja/docs/cli/reference/formats/plain-text-files.mdx
Docs index: https://generaltranslation.com/llms.txt
Description: General Translation CLI を使ってプレーンテキストファイルを翻訳します。プレーンテキストファイル形式の API リファレンス。

CLI はマークアップを解析せず、`txt` ファイル全体を翻訳対象コンテンツとして扱います。空白に基づくフォーマットは保持されますが、構造に基づいてコンテンツをスキップすることはありません。

## 設定 [#config]

`files` の下に、glob パターンを指定する `include` 配列を含む `txt` エントリを追加します。CLI がソースファイルを見つけて、翻訳を正しいパスに保存できるように、`[locale]` プレースホルダーを使用します。

```json title="gt.config.json"
{
  "defaultLocale": "en",
  "locales": ["es", "fr"],
  "files": {
    "txt": {
      "include": ["docs/[locale]/**/*.txt"]
    }
  }
}
```

翻訳後の出力ファイル名を変更する `transform` を含む、すべてのファイルキーについては、[設定リファレンス](/docs/cli/reference/config#files)を参照してください。

## Sitemap

See the full [sitemap](https://generaltranslation.com/sitemap.md) for all pages.
