# gt: General Translation CLI tool: PO / POT
URL: https://generaltranslation.com/it/docs/cli/reference/formats/po-pot-files.mdx
Docs index: https://generaltranslation.com/llms.txt
Description: Traduci i file gettext PO e POT con la CLI di General Translation. Riferimento API per il formato di file PO e POT.

La CLI traduce i file [PO (Portable Object)](https://www.gnu.org/software/gettext/manual/html_node/PO-Files.html) e POT (PO Template) usati da [GNU gettext](https://www.gnu.org/software/gettext/). I file POT contengono le stringhe sorgente estratte dal codice, mentre i file PO contengono le traduzioni per ogni impostazione regionale. Le traduzioni preservano la sintassi originale dei file PO/POT.

## Configurazione [#config]

Aggiungi una voce `pot` in `files`. Poiché i file POT sono template sorgente, imposta `transformationFormat` su `PO` in modo che l&#39;output tradotto venga salvato come file `.po`.

```json title="gt.config.json"
{
  "defaultLocale": "en",
  "locales": ["zh", "es", "ja"],
  "files": {
    "pot": {
      "include": ["locales/[locale]/*.pot"],
      "transformationFormat": "PO"
    }
  }
}
```

Sono accettati sia `pot` sia `POT` come chiave di configurazione. Consulta il [riferimento della configurazione](/docs/cli/reference/config#files) per l&#39;elenco completo delle chiavi dei file.

## Sitemap

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