# gt: General Translation CLI tool: プレーンテキスト URL: https://generaltranslation.com/ja/docs/cli/reference/formats/plain-text-files.mdx --- title: プレーンテキスト 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)を参照してください。