i18next-cli

CLI tool for managing and extracting i18next translation keys

npmmacoslinuxwindows
Try with needOr install directly
Source

About

A unified, high-performance i18next CLI.

Commands

i18next

Examples

extract translation keys from source code files$ i18next scan src/ --output locales
generate missing translation keys in JSON files$ i18next extract src/ -o locales/{{lng}}/{{ns}}.json
validate and check translation file structure$ i18next validate locales/ --config i18next.config.js
sort translation keys alphabetically in JSON$ i18next sort locales/en/translation.json
merge multiple translation files into one$ i18next merge locales/en/ locales/es/ -o locales/merged/