# gt: General Translation CLI tool: Plain text
URL: https://generaltranslation.com/en-US/docs/cli/reference/formats/plain-text-files.mdx
Docs index: https://generaltranslation.com/llms.txt
Description: Translate plain text files with the General Translation CLI. API reference for the plain text file format.

The CLI treats the entire `txt` file as translatable content instead of parsing markup. It preserves whitespace-based formatting but does not skip content based on structure.

## Configuration [#config]

Add a `txt` entry under `files` with an `include` array of glob patterns. Use the `[locale]` placeholder so the CLI can find source files and save translations to the right path.

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

See the [configuration reference](/docs/cli/reference/config#files) for all file keys, including `transform` for renaming translated output.

## Sitemap

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