> ## Documentation Index
> Fetch the complete documentation index at: https://docs.occtoo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# occtoo languages

> Manage the languages of the organization and the default language

Use `occtoo languages` to manage the languages of your organization, and the default language that card exports use.

```bash theme={null}
occtoo languages list
occtoo languages set sv --name Swedish
occtoo languages set en --default
occtoo languages remove sv --yes
```

| Command | What it does |
| - | - |
| `list` | Lists the languages of the organization |
| `set <CODE>` | Adds a language, or changes its name. `--name` sets the readable name, `--default` makes it the default language |
| `remove <CODES>...` | Removes one or more languages |
| `replace` | Replaces every language at once, from JSON |

A language code is 1 to 10 letters, digits, `_` or `-`. Its case matters: it has to match the code your source entries carry.

When you remove a language, its data stays. The language comes back by itself when a source receives entries in it.

## Replace every language

The API replaces the whole list at once, so `set` and `remove` read the list, change it and send it back. To send the whole list yourself, use `replace` with JSON in the shape `occtoo languages list --output json` prints:

```bash theme={null}
echo '{"defaultLanguage": "en", "items": [{"code": "en", "name": "English"}, {"code": "sv"}]}' | occtoo languages replace
```

A language you leave out is removed. Pass `--yes` to remove it without asking.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.