Creating a language file
We support any i18n library. However, to help AI understand the context and generate better translations, we recommend having “description” fields in your translation files to provide more context for each translation key.Pattern 1
Schema:Pattern 2
Schema:Generating translations
For generating translations, it’s highly recommended to use one of our integrations. You can edit translations manually using our web editor if you find any mistakes. If you need a list of available locales for locale switcher or other purposes, check out @honyaku-dev/locales package.Loading translations
Using our integration with CI/CD, you can automatically update translations when new translation keys are added, or when messages are modified. After new translations are generated, the changes are automatically committed to your repository. Because there is some delay before those changes are committed, it is highly recommended to prepare a fallback mechanism when loading translations. You can use a code snippet from our example project.request.ts
Updating translations
If you use coding agents, you can use our update-translations skill. Install the skill by simply running this command:/update-translations and let the coding agent read unstaged / uncommitted changes and update the language file accordingly.