Complete reference for the .gleef/config.json configuration file
.gleef/config.json
file controls how Gleef CLI processes your localization files. This file is created automatically by gleef init
but can be customized for complex project setups.
string[]
{locale}
placeholder.
Placeholder | Description | Example |
---|---|---|
{locale} | Required - Locale identifier | en , fr-FR , es-ES |
{feature} | Optional - Feature/namespace name | common , auth , dashboard |
{namespace} | Optional - Alternative to feature | header , footer , modal |
Pattern | Matches | Structure |
---|---|---|
src/{locale}.json | src/en.json , src/fr.json | Simple structure |
locales/{locale}/{feature}.json | locales/en/common.json , locales/fr/auth.json | Locale-first namespacing |
i18n/{feature}.{locale}.json | i18n/common.en.json , i18n/auth.fr.json | Feature-first namespacing |
assets/{locale}/strings.xml | assets/en/strings.xml , assets/fr/strings.xml | Folder-based locales |
object
nested
(boolean): Use nested object structure vs flat keysnested
(boolean): Use nested elements vs flat structurenested
(boolean): Use nested structure vs flat keysobject
fr
instead of fr-FR
)en.lproj
)"fr-FR"
maps to file/folder name "french"
src/{locale}.json
resolves to src/french.json
fr-FR
translations