Internationalization
The Zopio CLI provides robust tools for managing translations and locales in yourzopio application. This page covers how to use the CLI to add, update, and manage translations.
Directory Structure
The Zopio framework uses bothnext-international and next-intl for internationalization, which requires translations to be stored in two locations:
i18n Command
Thei18n command helps you manage translations and locales in your zopio application.
Options
--add <locale>- Add a new locale--remove <locale>- Remove a locale--extract- Extract translation keys from source files--sync- Synchronize translation files across locales--check- Check for missing translations--default <locale>- Set the default locale
Examples
Supported Locales
The Zopio CLI supports the following locales out of the box:en- English (default)tr- Turkishes- Spanishde- German
i18n --add command.