# gt: General Translation CLI tool: PO / POT URL: https://generaltranslation.com/ja/docs/cli/reference/formats/po-pot-files.mdx --- title: PO / POT description: General Translation CLI で PO および POT の gettext ファイルを翻訳します。PO および POT ファイル形式の API リファレンス。 --- CLI は、[GNU gettext](https://www.gnu.org/software/gettext/) で使用される [PO (Portable Object)](https://www.gnu.org/software/gettext/manual/html_node/PO-Files.html) ファイルと POT (PO Template) ファイルを翻訳します。POT ファイルにはコードから抽出されたソース文字列が格納され、PO ファイルには各ロケールの翻訳が格納されます。翻訳後も、元の PO/POT 構文は保持されます。 ## 設定 [#config] `files` の下に `pot` エントリを追加します。POT ファイルはソーステンプレートなので、翻訳後の出力が `.po` ファイルとして書き出されるよう、`transformationFormat` を `PO` に設定します。 ```json title="gt.config.json" { "defaultLocale": "en", "locales": ["zh", "es", "ja"], "files": { "pot": { "include": ["locales/[locale]/*.pot"], "transformationFormat": "PO" } } } ``` `pot` と `POT` は、どちらも設定キーとして使用できます。すべてのファイルキーについては、[設定リファレンス](/docs/cli/reference/config#files)を参照してください。