CLI Commands

scaffold

Create empty locale files for new languages, copying the key structure of the default locale with every value set to an empty string.

Synopsis

the-i18n-cli scaffold

Flags

FlagTypeRequiredDefaultDescription
--localesstringno—Locale codes to scaffold empty files for (e.g., "sv", "ja", "pt-BR"). If omitted, auto-detects the locales the config declares but has no files for. Comma-separated.
--layerstringno—Layer to scaffold in (e.g., "root", "app-admin"). If omitted, scaffolds across every layer.
--dryRunbooleannofalseReport the files that would be created without writing them. Default: false.
Copyright © 2026