# commandTranslations

`function` in `plugin-i18n` · v0.1.0

<https://seedcord.org/docs/packages/plugin-i18n/0.1.0/functions/command-translations>

Wraps one locale's command translations. Export it as the default from `locales/<locale>.ts`, like
`locales/pl.ts`. Before each deploy, the plugin adds the translations to your commands.

```ts
commandTranslations(
    translations: CommandTranslations
): CommandTranslationFile
```

Wraps one locale's command translations. Export it as the default from `locales/<locale>.ts`, like
`locales/pl.ts`. Before each deploy, the plugin adds the translations to your commands.

Parameters.

- `translations` `CommandTranslations`

Returns `CommandTranslationFile`.
