@intlayer/chokidar
Version:
Uses chokidar to scan and build Intlayer declaration files into dictionaries based on Intlayer configuration.
92 lines (90 loc) • 2.43 kB
Plain Text
{
/**
* Intlayer configuration file documentation
* @see https://intlayer.org/doc/concept/configuration
*/
"internationalization": {
"locales": ["en"],
/**
* Default locale used as a fallback if the requested locale is not found.
*/
"defaultLocale": "en"
},
"routing": {
/**
* Locale routing strategy.
* - "prefix-no-default": Prefix all except the default locale (e.g., /dashboard, /fr/dashboard).
* - "prefix-all": Prefix all locales (e.g., /en/dashboard, /fr/dashboard).
* - "no-prefix": No locale in the URL.
* - "search-params": Use search params to define the locale (e.g., /dashboard/?locale=en, /dashboard/?locale=fr)
* Default: "prefix-no-default"
*/
"mode": "prefix-no-default"
},
"editor": {
/**
* Whether the visual editor is enabled.
*/
"enabled": false,
/**
* URL of your application for origin validation.
*/
"applicationURL": "http://localhost:3000"
},
"ai": {
/**
* AI provider to use.
* Options: "openai", "anthropic", "mistral", "deepseek", "gemini", "ollama", etc.
*/
"provider": "openai",
"model": "gpt-4o",
/**
* API Key. Note: JSON does not support process.env.
* This value should be provided as a string or handled by your loader.
*/
"apiKey": "",
/**
* Additional context for the translations.
*/
"applicationContext": ""
},
"compiler": {
"enabled": true,
/**
* Defines the output files path for autogenerated content.
* Example: "./{{fileName}}.content.ts"
*/
"output": "./{{fileName}}.content.ts",
/**
* If true, the compiler will rewrite the component file on disk.
*/
"saveComponents": false
},
"dictionary": {
/**
* Controls how dictionaries are imported.
* - "static": Statically imported at build time.
* - "dynamic": Dynamically imported using Suspense.
* - "fetch": Fetched dynamically via the live sync API.
*/
"importMode": "static"
},
"build": {
/**
* (Experimental feature)
*
* Minify the dictionaries to reduce the bundle size.
*/
"minify": true,
/**
* (Experimental feature)
*
* Purge the unused keys in a dictionaries
*/
"purge": true,
/**
* Indicates if the build should check TypeScript types
*/
"checkTypes": false
}
}