init command creates a default .glotrc.json configuration file in your project root.
Usage
What It Creates
Runningglot init creates a .glotrc.json file with sensible defaults:
Behavior
- Creates the file in the current directory
- Fails if
.glotrc.jsonalready exists (won’t overwrite) - Uses defaults suitable for typical Next.js projects
Example
After Initialization
After creating the config file, you should:1
Review Paths
Check that
includes matches your project structure. Adjust paths if your
components are in different directories.2
Set Primary Locale
Change
primaryLocale if your primary language isn’t English.3
Set Messages Directory
Update
messagesDir to point to your locale JSON files.4
Run Check
Test your configuration:
Related
Configuration
Full configuration reference