Initialize Gleef in your project by detecting locale files and creating configuration
gleef init
command sets up Gleef in your project by automatically discovering localization files and creating the necessary configuration.
init
command performs several important setup tasks:
.gleef/config.json
.json
- JSON localization files.xml
- XML localization files.yaml
/ .yml
- YAML localization files.strings
- iOS strings files.
(except localization files)init
, you’ll find a .gleef/config.json
file in your project:
Property | Description |
---|---|
localeFilePatterns | Glob patterns matching your localization files |
formatOptions | Output format settings for each file type |
customFileNames | Maps locales to specific filenames when they don’t match the locale code |
src/locales/*.json
is created
src/i18n/*.json
public/locales/*.xml
mobile/strings/*.strings
apps/web/src/locales/*.json
apps/mobile/assets/*.json
with custom namesshared/i18n/*.yaml
with custom names.gleef/config.json
.gleef/config.json
manually.gleef
folder and run gleef init
againgleef init
from your project root directory for best results..gleef/config.json
after initialization.gleef/config.json
to version control