@intlayer/types 8.0.4 → 8.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- //#region rolldown:runtime
1
+ //#region \0rolldown/runtime.js
2
2
  var __defProp = Object.defineProperty;
3
- var __exportAll = (all, symbols) => {
3
+ var __exportAll = (all, no_symbols) => {
4
4
  let target = {};
5
5
  for (var name in all) {
6
6
  __defProp(target, name, {
@@ -8,11 +8,12 @@ var __exportAll = (all, symbols) => {
8
8
  enumerable: true
9
9
  });
10
10
  }
11
- if (symbols) {
11
+ if (!no_symbols) {
12
12
  __defProp(target, Symbol.toStringTag, { value: "Module" });
13
13
  }
14
14
  return target;
15
15
  };
16
16
 
17
17
  //#endregion
18
- export { __exportAll };
18
+
19
+ exports.__exportAll = __exportAll;
@@ -1,3 +1,4 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
1
2
 
2
3
  //#region src/config.ts
3
4
  let AiProviders = /* @__PURE__ */ function(AiProviders) {
@@ -1 +1 @@
1
- {"version":3,"file":"config.cjs","names":[],"sources":["../../src/config.ts"],"sourcesContent":["import type { z } from 'zod';\nimport type {\n ContentAutoTransformation,\n DictionaryLocation,\n Fill,\n} from './dictionary';\nimport type { Locale } from './locales';\nimport type { LocalesValues, StrictModeLocaleMap } from './module_augmentation';\nimport type { Plugin } from './plugin';\n\nexport type StrictMode = 'strict' | 'inclusive' | 'loose';\n\ntype Protocol = 'http' | 'https';\n\ntype URLPath = `/${string}`;\n\ntype OptionalURLPath = `/${string}` | '';\n\n// Localhost: STRICTLY requires a port\ntype LocalhostURL = `${Protocol}://localhost:${number}${OptionalURLPath}`;\n// IP Address: Start with number, allows optional port\n// (Heuristic: Starts with a number, contains dots)\ntype IPUrl =\n | `${Protocol}://${number}.${string}${OptionalURLPath}`\n | `${Protocol}://${number}.${string}:${number}${OptionalURLPath}`;\n\n// Standard Domain: Requires at least one dot to rule out plain \"localhost\"\n// (Heuristic: starts with non-number string, contains dot)\ntype DomainURL = `${Protocol}://${string}.${string}${OptionalURLPath}`;\n\nexport type URLType = LocalhostURL | IPUrl | DomainURL | (string & {});\n\n/**\n * Configuration for internationalization settings\n */\nexport type InternationalizationConfig = {\n /**\n * Locales available in the application\n *\n * Default: [Locales.ENGLISH]\n *\n * You can define a list of available locales to support in the application.\n */\n locales: Locale[];\n\n /**\n * Locales required by TypeScript to ensure strong implementations of internationalized content using typescript.\n *\n * Default: []\n *\n * If empty, all locales are required in `strict` mode.\n *\n * Ensure required locales are also defined in the `locales` field.\n */\n requiredLocales: Locale[];\n\n /**\n * Ensure strong implementations of internationalized content using typescript.\n * - If set to \"strict\", the translation `t` function will require each declared locales to be defined. If one locale is missing, or if a locale is not declared in your config, it will throw an error.\n * - If set to \"inclusive\", the translation `t` function will require each declared locales to be defined. If one locale is missing, it will throw a warning. But will accept if a locale is not declared in your config, but exist.\n * - If set to \"loose\", the translation `t` function will accept any existing locale.\n *\n * Default: \"inclusive\"\n */\n strictMode: StrictMode;\n\n /**\n * Default locale of the application for fallback\n *\n * Default: Locales.ENGLISH\n *\n * Used to specify a fallback locale in case no other locale is set.\n */\n defaultLocale: Locale;\n};\n\nexport type CookiesAttributes = {\n /**\n * Type of the storage\n *\n * The type of the storage. It can be 'cookie'.\n */\n type: 'cookie';\n /**\n * Cookie name to store the locale information\n *\n * Default: 'INTLAYER_LOCALE'\n *\n * The cookie key where the locale information is stored.\n */\n name?: string;\n /**\n * Cookie domain to store the locale information\n *\n * Default: undefined\n *\n * Define the domain where the cookie is available. Defaults to\n * the domain of the page where the cookie was created.\n */\n domain?: string;\n /**\n * Cookie path to store the locale information\n *\n * Default: undefined\n *\n * Define the path where the cookie is available. Defaults to '/'\n */\n path?: string;\n /**\n * Cookie secure to store the locale information\n *\n * Default: undefined\n *\n * A Boolean indicating if the cookie transmission requires a\n * secure protocol (https). Defaults to false.\n */\n secure?: boolean;\n /**\n * Cookie httpOnly to store the locale information\n *\n * Default: undefined\n *\n * The cookie httpOnly where the locale information is stored.\n */\n httpOnly?: boolean;\n /**\n * Cookie sameSite to store the locale information\n *\n * Default: undefined\n *\n * Asserts that a cookie must not be sent with cross-origin requests,\n * providing some protection against cross-site request forgery\n * attacks (CSRF)\n */\n sameSite?: 'strict' | 'lax' | 'none';\n\n /**\n * Cookie expires to store the locale information\n *\n * Default: undefined\n *\n * Define when the cookie will be removed. Value can be a Number\n * which will be interpreted as days from time of creation or a\n * Date instance. If omitted, the cookie becomes a session cookie.\n */\n expires?: Date | number | undefined;\n};\n\nexport type StorageAttributes = {\n /**\n * Storage type where the locale is stored\n *\n * Determines whether the locale is persisted in `localStorage` (across sessions)\n * or `sessionStorage` (cleared when the browser session ends) or `header` (from the request header).\n */\n type: 'localStorage' | 'sessionStorage' | 'header';\n\n /**\n * Storage key to store the locale information\n *\n * Default: 'INTLAYER_LOCALE'\n *\n * The key name used in the client storage to save the locale.\n */\n name?: string;\n};\n\nexport type RewriteRule<T extends string = string> = {\n canonical: T;\n localized: StrictModeLocaleMap<string>;\n};\n\nexport type RewriteRules = {\n rules: RewriteRule[];\n};\n\nexport type RewriteObject = {\n /**\n * Used for client-side URL generation (e.g., getLocalizedUrl).\n * Patterns are usually stripped of locale prefixes as the core logic handles prefixing.\n */\n url: RewriteRules;\n /**\n * Used for Next.js middleware / proxy.\n * Patterns usually include [locale] or :locale to match incoming full URLs.\n */\n nextjs?: RewriteRules;\n /**\n * Used for Vite proxy middleware.\n */\n vite?: RewriteRules;\n};\n\n/**\n * Configuration for routing behaviors\n */\nexport type RoutingConfig = {\n /**\n * Rewrite the URLs to a localized path\n *\n * Example:\n * ```ts\n * // ...\n * routing: {\n * rewrite: nextjsRewrite({\n * '[locale]/about': {\n * fr: '[locale]/a-propos'\n * }\n * })\n * }\n * ```\n */\n rewrite?: Record<URLPath, StrictModeLocaleMap<URLPath>> | RewriteObject;\n\n /**\n * URL routing mode for locale handling\n *\n * Controls how locales are represented in application URLs:\n * - 'prefix-no-default': Prefix all locales except the default locale\n * - 'prefix-all': Prefix all locales including the default locale\n * - 'no-prefix': No locale prefixing in URLs\n * - 'search-params': Use search parameters for locale handling\n *\n * Examples with defaultLocale = 'en':\n * - 'prefix-no-default': /dashboard (en) or /fr/dashboard (fr)\n * - 'prefix-all': /en/dashboard (en) or /fr/dashboard (fr)\n * - 'no-prefix': /dashboard (locale handled via other means)\n * - 'search-params': /dashboard?locale=fr\n *\n * Note: This setting do not impact the cookie, or locale storage management.\n *\n * Default: 'prefix-no-default'\n */\n mode: 'prefix-no-default' | 'prefix-all' | 'no-prefix' | 'search-params';\n\n /**\n * Configuration for storing the locale in the client (localStorage or sessionStorage)\n *\n * If false, the locale will not be stored by the middleware.\n * If true, the locale storage will consider all default values.\n *\n * Default: ['cookie', 'header]\n *\n * Note: Check out GDPR compliance for cookies. See https://gdpr.eu/cookies/\n * Note: useLocale hook includes a prop to disable the cookie storage.\n * Note: Even if storage is disabled, the middleware will still detect the locale from the request header (1- check for `x-intlayer-locale`, 2- fallback to the `accept-language`).\n *\n * Recommendation:\n * - Config both localStorage and cookies for the storage of the locale if you want to support GDPR compliance.\n * - Disable the cookie storage by default on the useLocale hook by waiting for the user to consent to the cookie storage.\n */\n storage:\n | false\n | 'cookie'\n | 'localStorage'\n | 'sessionStorage'\n | 'header'\n | CookiesAttributes\n | StorageAttributes\n | (\n | 'cookie'\n | 'localStorage'\n | 'sessionStorage'\n | 'header'\n | CookiesAttributes\n | StorageAttributes\n )[];\n\n /**\n * Base path for application URLs\n *\n * Default: ''\n *\n * Defines the base path where the application is accessible from.\n */\n basePath: string;\n};\n\n/**\n * Configuration for intlayer editor\n */\nexport type EditorConfig = {\n /**\n * URL of the application. Used to restrict the origin of the editor for security reasons.\n *\n * Default: ''\n */\n applicationURL: URLType;\n\n /**\n * URL of the editor server. Used to restrict the origin of the editor for security reasons.\n *\n * Default: 'http://localhost:8000'\n */\n editorURL: URLType;\n\n /**\n * URL of the CMS server. Used to restrict the origin of the editor for security reasons.\n *\n * Default: 'https://app.intlayer.org'\n */\n cmsURL: URLType;\n\n /**\n * URL of the backend\n *\n * Default: 'https://back.intlayer.org'\n *\n * The URL of the backend server.\n */\n backendURL: URLType;\n\n /**\n * Indicates if the application interact with the visual editor\n *\n * Default: true;\n *\n * If true, the editor will be able to interact with the application.\n * If false, the editor will not be able to interact with the application.\n * In any case, the editor can only be enabled by the visual editor.\n * Disabling the editor for specific environments is a way to enforce the security.\n *\n * Usage:\n * ```js\n * {\n * // Other configurations\n * editor: {\n * enabled: process.env.NODE_ENV !== 'production',\n * }\n * };\n * ```\n *\n */\n enabled: boolean;\n\n /** Port of the editor server\n *\n * Default: 8000\n */\n port: number;\n\n /**\n * clientId and clientSecret allow the intlayer packages to authenticate with the backend using oAuth2 authentication.\n * An access token is use to authenticate the user related to the project.\n * To get an access token, go to https://app.intlayer.org/project and create an account.\n *\n * Default: undefined\n *\n * > Important: The clientId and clientSecret should be kept secret and not shared publicly. Please ensure to keep them in a secure location, such as environment variables.\n */\n clientId?: string;\n\n /**\n * clientId and clientSecret allow the intlayer packages to authenticate with the backend using oAuth2 authentication.\n * An access token is use to authenticate the user related to the project.\n * To get an access token, go to https://app.intlayer.org/project and create an account.\n *\n * Default: undefined\n *\n * > Important: The clientId and clientSecret should be kept secret and not shared publicly. Please ensure to keep them in a secure location, such as environment variables.\n */\n clientSecret?: string;\n\n /**\n * Strategy for prioritizing dictionaries. If a dictionary is both present online and locally, the content will be merge.\n * However, is a field is defined in both dictionary, this setting determines which fields takes the priority over the other.\n *\n * Default: 'local_first'\n *\n * The strategy for prioritizing dictionaries. It can be either 'local_first' or 'distant_first'.\n * - 'local_first': The first dictionary found in the locale is used.\n * - 'distant_first': The first dictionary found in the distant locales is used.\n */\n dictionaryPriorityStrategy: 'local_first' | 'distant_first';\n\n /**\n * Indicates if the application should hot reload the locale configurations when a change is detected.\n * For example, when a new dictionary is added or updated, the application will update the content tu display in the page.\n *\n * Default: true\n */\n liveSync: boolean;\n\n /**\n * Port of the live sync server\n *\n * Default: 4000\n */\n liveSyncPort: number;\n\n /**\n * URL of the live sync server in case of remote live sync server\n *\n * Default: `http://localhost:${liveSyncPort}`\n */\n liveSyncURL: URLType;\n};\n\nexport enum AiProviders {\n OPENAI = 'openai',\n ANTHROPIC = 'anthropic',\n MISTRAL = 'mistral',\n DEEPSEEK = 'deepseek',\n GEMINI = 'gemini',\n OLLAMA = 'ollama',\n}\n\nexport type AiConfig = {\n /**\n * Provider\n *\n * The provider to use for the AI features of Intlayer.\n *\n * Available providers:\n * - 'openai'\n * - 'anthropic'\n * - 'mistral'\n * - 'deepseek'\n * - 'gemini'\n * - 'ollama'\n *\n * Default: 'openai'\n */\n provider?: AiProviders | `${AiProviders}`;\n\n /**\n * API model\n *\n * The model to use for the AI features of Intlayer.\n *\n * Example: 'gpt-4o-2024-11-20'\n *\n */\n model?: string;\n\n /**\n * temperature\n *\n * The temperature to use for the AI features of Intlayer.\n * The temperature controls the randomness of the AI's responses.\n * A higher temperature will make the AI more creative and less predictable.\n *\n * Example: 0.1\n */\n temperature?: number;\n\n /**\n * API key\n *\n * Use your own OpenAI API key to use the AI features of Intlayer.\n * If you don't have an OpenAI API key, you can get one for free at https://openai.com/api/.\n *\n */\n apiKey?: string;\n\n /**\n * Application context\n *\n * The context of the application to use for the AI features of Intlayer.\n *\n * Example: 'This is a website for a company that sells products online.'\n */\n applicationContext?: string;\n\n /**\n * Base URL\n *\n * The base URL to use for the AI features of Intlayer.\n *\n * Example: 'https://api.openai.com/v1'\n */\n baseURL?: string;\n} & Record<string, any>;\n\nexport type BuildConfig = {\n /**\n * Indicates the mode of the build\n *\n * Default: 'auto'\n *\n * If 'auto', the build will be enabled automatically when the application is built.\n * If 'manual', the build will be set only when the build command is executed.\n *\n * Can be used to disable dictionaries build, for instance when execution on Node.js environment should be avoided.\n */\n mode: 'auto' | 'manual';\n\n /**\n * Indicates if the build should be optimized\n *\n * Default: undefined\n *\n * If true, the build will be optimized.\n * If false, the build will not be optimized.\n *\n * Intlayer will replace all calls of dictionaries to optimize chunking. That way the final bundle will import only the dictionaries that are used.\n * All imports will stay as static import to avoid async processing when loading the dictionaries.\n *\n * Note:\n * - Intlayer will replace all call of `useIntlayer` with the defined mode by the `importMode` option.\n * - Intlayer will replace all call of `getIntlayer` with `getDictionary`.\n * - This option relies on the `@intlayer/babel` and `@intlayer/swc` plugins.\n * - Ensure all keys are declared statically in the `useIntlayer` calls. e.g. `useIntlayer('navbar')`.\n */\n optimize?: boolean;\n\n /**\n * Indicates the mode of import to use for the dictionaries.\n *\n * Available modes:\n * - \"static\": The dictionaries are imported statically.\n * In that case, Intlayer will replace all calls to `useIntlayer` with `useDictionary`.\n * - \"dynamic\": The dictionaries are imported dynamically in a synchronous component using the suspense API.\n * In that case, Intlayer will replace all calls to `useIntlayer` with `useDictionaryDynamic`.\n * - \"fetch\": The dictionaries are imported dynamically using the live sync API.\n * In that case, Intlayer will replace all calls to `useIntlayer` with `useDictionaryDynamic`.\n * Fetch mode will use the live sync API to fetch the dictionaries. If the API call fails, the dictionaries will be imported dynamically as \"dynamic\" mode.\n *\n * Default: \"static\"\n *\n * By default, when a dictionary is loaded, it imports content for all locales as it's imported statically.\n *\n * Note:\n * - Dynamic imports rely on Suspense and may slightly impact rendering performance.\n * - If desabled all locales will be loaded at once, even if they are not used.\n * - This option relies on the `@intlayer/babel` and `@intlayer/swc` plugins.\n * - Ensure all keys are declared statically in the `useIntlayer` calls. e.g. `useIntlayer('navbar')`.\n * - This option will be ignored if `optimize` is disabled.\n * - This option will not impact the `getIntlayer`, `getDictionary`, `useDictionary`, `useDictionaryAsync` and `useDictionaryDynamic` functions. You can still use them to refine you code on manual optimization.\n * - The \"fetch\" allows to sync the dictionaries to the live sync server.\n * - Require static key to work. Example of invalid code: `const navbarKey = \"my-key\"; useIntlayer(navbarKey)`.\n *\n * @deprecated Use `dictionary.importMode` instead.\n */\n importMode?: 'static' | 'dynamic' | 'fetch';\n\n /**\n * Pattern to traverse the code to optimize.\n *\n * Allows to avoid to traverse the code that is not relevant to the optimization.\n * Improve build performance.\n *\n * Default: ['**\\/*.{js,ts,mjs,cjs,jsx,tsx}', '!**\\/node_modules/**']\n *\n * Example: `['src/**\\/*.{ts,tsx}', '../ui-library/**\\/*.{ts,tsx}', '!**\\/node_modules/**']`\n *\n * Note:\n * - This option will be ignored if `optimize` is disabled.\n * - Use glob pattern.\n */\n traversePattern: string[];\n\n /**\n * Output format of the dictionaries\n *\n * Default: ['cjs', 'esm']\n *\n * The output format of the dictionaries. It can be either 'cjs' or 'esm'. Even if dictionaries are written in JSON, entry point to access the dictionaries are generated.\n * This function will use the output format defined using this option.\n * The default format is 'cjs' as it allows better interoperability with other libraries, scripts, and applications. But some build tools, such as Vite, require ES modules.\n */\n outputFormat: ('cjs' | 'esm')[];\n\n /**\n * Indicates if the cache should be enabled\n *\n * Default: true\n *\n * If true, the cache will be enabled.\n * If false, the cache will not be enabled.\n */\n cache: boolean;\n\n /**\n * Require function\n *\n * In some environments, as VSCode extension, the require function should be set relatively to the project root to work properly.\n *\n * Default: undefined\n *\n * If undefined, the require function will be set to the default require function.\n * If defined, the require function will be set to the defined require function.\n *\n * Example:\n * ```js\n * {\n * require: require\n * }\n * ```\n */\n require?: NodeJS.Require;\n};\n\nexport type CompilerConfig = {\n /**\n * Indicates if the compiler should be enabled\n */\n enabled: boolean;\n\n /**\n * Pattern to traverse the code to optimize.\n *\n * Allows to avoid to traverse the code that is not relevant to the optimization.\n * Improve build performance.\n *\n * Default: ['**\\/*.{js,ts,mjs,cjs,jsx,tsx}', '!**\\/node_modules/**']\n *\n * Example: `['src/**\\/*.{ts,tsx}', '../ui-library/**\\/*.{ts,tsx}', '!**\\/node_modules/**']`\n *\n * Note:\n * - This option will be ignored if `optimize` is disabled.\n * - Use glob pattern.\n */\n transformPattern: string | string[];\n\n /**\n * Pattern to exclude from the optimization.\n *\n * Allows to exclude files from the optimization.\n *\n * Default: ['**\\/node_modules/**']\n *\n * Example: `['**\\/node_modules/**', '!**\\/node_modules/react/**']`\n */\n excludePattern: string | string[];\n\n /**\n * Output directory for the optimized dictionaries.\n *\n * Default: 'compiler'\n *\n * The directory where the optimized dictionaries will be stored.\n */\n outputDir: string;\n};\n\n/**\n * Custom configuration that can be provided to override default settings\n */\nexport type CustomIntlayerConfig = {\n /**\n * Custom internationalization configuration\n */\n internationalization?: Partial<InternationalizationConfig>;\n\n /**\n * Custom dictionary configuration\n */\n dictionary?: Partial<DictionaryConfig>;\n\n /**\n * Custom routing configuration\n */\n routing?: Partial<RoutingConfig>;\n\n /**\n * Custom content configuration\n */\n content?: Partial<ContentConfig>;\n\n /**\n * Custom editor configuration\n */\n editor?: Partial<EditorConfig>;\n\n /**\n * Custom log configuration\n */\n log?: Partial<LogConfig>;\n\n /**\n * Custom AI configuration\n */\n ai?: Partial<AiConfig>;\n\n /**\n * Custom build configuration\n */\n build?: Partial<BuildConfig>;\n\n /**\n * Custom compiler configuration\n */\n compiler?: Partial<CompilerConfig>;\n\n /**\n * Custom system configuration\n */\n system?: Partial<SystemConfig>;\n\n /**\n * Custom schemas to validate the dictionaries content.\n *\n * Example:\n * ```ts\n * {\n * schemas: {\n * 'my-schema': z.object({\n * title: z.string(),\n * description: z.string(),\n * }),\n * }\n * }\n * ```\n */\n schemas?: Record<string, z.ZodType>;\n\n /**\n * Custom plugins configuration\n */\n plugins?: Plugin[];\n};\n\nexport type DictionaryConfig = {\n fill?: Fill;\n description?: string;\n locale?: LocalesValues;\n contentAutoTransformation?: ContentAutoTransformation;\n priority?: number;\n /**\n * Indicates the mode of import to use for the dictionaries.\n *\n * Available modes:\n * - \"static\": The dictionaries are imported statically.\n * In that case, Intlayer will replace all calls to `useIntlayer` with `useDictionary`.\n * - \"dynamic\": The dictionaries are imported dynamically in a synchronous component using the suspense API.\n * In that case, Intlayer will replace all calls to `useIntlayer` with `useDictionaryDynamic`.\n * - \"fetch\": The dictionaries are imported dynamically using the live sync API.\n * In that case, Intlayer will replace all calls to `useIntlayer` with `useDictionaryDynamic`.\n * Fetch mode will use the live sync API to fetch the dictionaries. If the API call fails, the dictionaries will be imported dynamically as \"dynamic\" mode.\n *\n * Default: \"static\"\n *\n * By default, when a dictionary is loaded, it imports content for all locales as it's imported statically.\n *\n * Note:\n * - Dynamic imports rely on Suspense and may slightly impact rendering performance.\n * - If desabled all locales will be loaded at once, even if they are not used.\n * - This option relies on the `@intlayer/babel` and `@intlayer/swc` plugins.\n * - Ensure all keys are declared statically in the `useIntlayer` calls. e.g. `useIntlayer('navbar')`.\n * - This option will be ignored if `optimize` is disabled.\n * - This option will not impact the `getIntlayer`, `getDictionary`, `useDictionary`, `useDictionaryAsync` and `useDictionaryDynamic` functions. You can still use them to refine you code on manual optimization.\n * - The \"fetch\" allows to sync the dictionaries to the live sync server.\n * - Require static key to work. Example of invalid code: `const navbarKey = \"my-key\"; useIntlayer(navbarKey)`.\n */\n importMode?: 'static' | 'dynamic' | 'fetch';\n title?: string;\n tags?: string[];\n version?: string;\n location?: DictionaryLocation;\n};\n\n/**\n * Combined configuration for internationalization, middleware, and content\n */\nexport type IntlayerConfig = {\n /**\n * Internationalization configuration\n */\n internationalization: InternationalizationConfig;\n\n /**\n * Default dictionary configuration\n */\n dictionary?: Partial<DictionaryConfig>;\n\n /**\n * Routing configuration\n */\n routing: RoutingConfig;\n\n /**\n * Content configuration\n */\n content: ContentConfig;\n\n /**\n * System configuration\n */\n system: SystemConfig;\n\n /**\n * Intlayer editor configuration\n */\n editor: EditorConfig;\n\n /**\n * Logger configuration\n */\n log: LogConfig;\n\n /**\n * AI configuration\n */\n ai?: Partial<AiConfig>;\n\n /**\n * Build configuration\n */\n build: BuildConfig;\n\n /**\n * Compiler configuration\n */\n compiler: CompilerConfig;\n\n /**\n * Custom schemas to validate the dictionaries content.\n */\n schemas?: Record<string, z.ZodType>;\n\n /**\n * Plugins configuration\n */\n plugins?: Plugin[];\n\n /**\n * Metadata of the project\n */\n metadata: {\n name: string;\n version: string;\n doc: string;\n };\n};\n\n/**\n * Configuration for content handling\n */\nexport type ContentConfig = {\n /**\n * File extensions of content to look for\n *\n * Default: ['.content.ts', '.content.js', '.content.cjs', '.content.mjs', '.content.json', '.content.tsx', '.content.jsx']\n *\n * List of file extensions to scan for content.\n */\n fileExtensions: string[];\n\n /**\n * Absolute path of the project's base directory\n *\n * Default: process.cwd()\n *\n * The root directory of the project, typically used for resolving other paths.\n */\n baseDir: string;\n\n /**\n * Directory where the content is stored, relative to the base directory\n *\n * Default: ['.']\n *\n * Derived content directory based on the base configuration.\n *\n * Note: This is used to watch for content files.\n */\n contentDir: string[];\n\n /**\n * Directory where the code is stored, relative to the base directory\n *\n * Default: ['.']\n *\n * Derived code directory based on the base configuration.\n *\n * Note: This is used to watch for code files to transform.\n */\n codeDir: string[];\n\n /**\n * Directories to be excluded from content processing\n *\n * Default: ['node_modules', '.intlayer']\n *\n * A list of directories to exclude from content processing.\n */\n excludedPath: string[];\n\n /**\n * Indicates if Intlayer should watch for changes in the content declaration files in the app to rebuild the related dictionaries.\n *\n * Default: process.env.NODE_ENV === 'development'\n */\n watch: boolean;\n\n /**\n * Command to format the content. When intlayer write your .content files locally, this command will be used to format the content.\n *\n * Example:\n *\n * ```bash\n * npx prettier --write {{file}}\n * ```\n *\n * ```bash\n * bunx biome format {{file}}\n * ```\n *\n * ```bash\n * bun format {{file}}\n * ```\n *\n * ```bash\n * npx eslint --fix {{file}}\n * ```\n *\n * Intlayer will replace the {{file}} with the path of the file to format.\n *\n * Default: undefined\n */\n formatCommand: string | undefined;\n\n /**\n * Patterns of files to watch for changes\n *\n * Default: ['/**\\/*.content.ts', '/**\\/*.content.js', '/**\\/*.content.json', '/**\\/*.content.cjs', '/**\\/*.content.mjs', '/**\\/*.content.tsx', '/**\\/*.content.jsx']\n *\n * Defines file patterns for content to watch for changes.\n */\n watchedFilesPattern: string[];\n\n /**\n * Patterns of files to watch for changes including the relative path\n *\n * Default: ['src/**\\/*.content.ts', 'src/**\\/*.content.js', 'src/**\\/*.content.json', 'src/**\\/*.content.cjs', 'src/**\\/*.content.mjs', 'src/**\\/*.content.tsx', 'src/**\\/*.content.jsx']\n *\n * Specifies the file patterns for content to watch, including relative paths.\n */\n watchedFilesPatternWithPath: string[];\n};\n\nexport type SystemConfig = {\n /**\n * Directory for module augmentation, relative to the base directory\n *\n * Default: .intlayer/types\n *\n * Defines the derived path for module augmentation.\n */\n moduleAugmentationDir: string;\n\n /**\n * Directory where unmerged dictionaries are stored, relative to the result directory\n *\n * Default: .intlayer/unmerged_dictionary\n *\n * Specifies the derived path for unmerged dictionaries relative to the result directory.\n */\n unmergedDictionariesDir: string;\n\n /**\n * Directory where remote dictionaries are stored, relative to the result directory\n *\n * Default: .intlayer/remote_dictionary\n *\n * Specifies the derived path for remote dictionaries relative to the result directory.\n */\n remoteDictionariesDir: string;\n\n /**\n * Directory where final dictionaries are stored, relative to the result directory\n *\n * Default: .intlayer/dictionary\n *\n * Specifies the derived path for dictionaries relative to the result directory.\n */\n dictionariesDir: string;\n\n /**\n * Directory where dynamic dictionaries are stored, relative to the result directory\n *\n * Default: .intlayer/dynamic_dictionary\n *\n * Specifies the derived path for dynamic dictionaries relative to the result directory.\n */\n dynamicDictionariesDir: string;\n\n /**\n * Directory where fetch dictionaries are stored, relative to the result directory\n *\n * Default: .intlayer/fetch_dictionary\n *\n * Specifies the derived path for fetch dictionaries relative to the result directory.\n */\n fetchDictionariesDir: string;\n\n /**\n * Directory where dictionary types are stored, relative to the result directory\n *\n * Default: .intlayer/types\n *\n * Specifies the derived path for dictionary types relative to the result directory.\n */\n typesDir: string;\n\n /**\n * Directory where the main files are stored, relative to the result directory\n *\n * Default: .intlayer/main\n *\n * Specifies the derived path for the main files relative to the result directory.\n */\n mainDir: string;\n\n /**\n * Directory where the configuration files are stored, relative to the result directory\n *\n * Default: .intlayer/config\n *\n * Specifies the derived path for the configuration files relative to the result directory.\n */\n configDir: string;\n\n /**\n * Directory where the cache files are stored, relative to the result directory\n *\n * Default: .intlayer/cache\n *\n * Specifies the derived path for the cache files relative to the result directory.\n */\n cacheDir: string;\n\n /**\n * Pattern for output files including the relative path\n *\n * Default: '{{dictionariesDir}}/**\\/*.json'\n *\n * Defines the pattern for output files, including the relative path.\n */\n outputFilesPatternWithPath: string;\n};\n\nexport type LogFunctions = {\n error?: typeof console.error;\n log?: typeof console.log;\n info?: typeof console.info;\n warn?: typeof console.warn;\n};\n\nexport type LogConfig = {\n /**\n * Indicates if the logger is enabled\n *\n * Default: true\n *\n * If 'default', the logger is enabled and can be used.\n * If 'verbose', the logger will be enabled and can be used, but will log more information.\n * If 'disabled', the logger is disabled and cannot be used.\n */\n mode: 'default' | 'verbose' | 'disabled';\n\n /**\n * Prefix of the logger\n *\n * Default: '[intlayer]'\n *\n * The prefix of the logger.\n */\n prefix: string;\n\n /**\n * Functions to log\n */\n error?: typeof console.error;\n log?: typeof console.log;\n info?: typeof console.info;\n warn?: typeof console.warn;\n debug?: typeof console.debug;\n};\n"],"mappings":";;AA8YA,IAAY,oDAAL;AACL;AACA;AACA;AACA;AACA;AACA"}
1
+ {"version":3,"file":"config.cjs","names":[],"sources":["../../src/config.ts"],"sourcesContent":["import type { z } from 'zod';\nimport type {\n ContentAutoTransformation,\n DictionaryLocation,\n Fill,\n} from './dictionary';\nimport type { Locale } from './locales';\nimport type { LocalesValues, StrictModeLocaleMap } from './module_augmentation';\nimport type { Plugin } from './plugin';\n\nexport type StrictMode = 'strict' | 'inclusive' | 'loose';\n\ntype Protocol = 'http' | 'https';\n\ntype URLPath = `/${string}`;\n\ntype OptionalURLPath = `/${string}` | '';\n\n// Localhost: STRICTLY requires a port\ntype LocalhostURL = `${Protocol}://localhost:${number}${OptionalURLPath}`;\n// IP Address: Start with number, allows optional port\n// (Heuristic: Starts with a number, contains dots)\ntype IPUrl =\n | `${Protocol}://${number}.${string}${OptionalURLPath}`\n | `${Protocol}://${number}.${string}:${number}${OptionalURLPath}`;\n\n// Standard Domain: Requires at least one dot to rule out plain \"localhost\"\n// (Heuristic: starts with non-number string, contains dot)\ntype DomainURL = `${Protocol}://${string}.${string}${OptionalURLPath}`;\n\nexport type URLType = LocalhostURL | IPUrl | DomainURL | (string & {});\n\n/**\n * Configuration for internationalization settings\n */\nexport type InternationalizationConfig = {\n /**\n * Locales available in the application\n *\n * Default: [Locales.ENGLISH]\n *\n * You can define a list of available locales to support in the application.\n */\n locales: Locale[];\n\n /**\n * Locales required by TypeScript to ensure strong implementations of internationalized content using typescript.\n *\n * Default: []\n *\n * If empty, all locales are required in `strict` mode.\n *\n * Ensure required locales are also defined in the `locales` field.\n */\n requiredLocales: Locale[];\n\n /**\n * Ensure strong implementations of internationalized content using typescript.\n * - If set to \"strict\", the translation `t` function will require each declared locales to be defined. If one locale is missing, or if a locale is not declared in your config, it will throw an error.\n * - If set to \"inclusive\", the translation `t` function will require each declared locales to be defined. If one locale is missing, it will throw a warning. But will accept if a locale is not declared in your config, but exist.\n * - If set to \"loose\", the translation `t` function will accept any existing locale.\n *\n * Default: \"inclusive\"\n */\n strictMode: StrictMode;\n\n /**\n * Default locale of the application for fallback\n *\n * Default: Locales.ENGLISH\n *\n * Used to specify a fallback locale in case no other locale is set.\n */\n defaultLocale: Locale;\n};\n\nexport type CookiesAttributes = {\n /**\n * Type of the storage\n *\n * The type of the storage. It can be 'cookie'.\n */\n type: 'cookie';\n /**\n * Cookie name to store the locale information\n *\n * Default: 'INTLAYER_LOCALE'\n *\n * The cookie key where the locale information is stored.\n */\n name?: string;\n /**\n * Cookie domain to store the locale information\n *\n * Default: undefined\n *\n * Define the domain where the cookie is available. Defaults to\n * the domain of the page where the cookie was created.\n */\n domain?: string;\n /**\n * Cookie path to store the locale information\n *\n * Default: undefined\n *\n * Define the path where the cookie is available. Defaults to '/'\n */\n path?: string;\n /**\n * Cookie secure to store the locale information\n *\n * Default: undefined\n *\n * A Boolean indicating if the cookie transmission requires a\n * secure protocol (https). Defaults to false.\n */\n secure?: boolean;\n /**\n * Cookie httpOnly to store the locale information\n *\n * Default: undefined\n *\n * The cookie httpOnly where the locale information is stored.\n */\n httpOnly?: boolean;\n /**\n * Cookie sameSite to store the locale information\n *\n * Default: undefined\n *\n * Asserts that a cookie must not be sent with cross-origin requests,\n * providing some protection against cross-site request forgery\n * attacks (CSRF)\n */\n sameSite?: 'strict' | 'lax' | 'none';\n\n /**\n * Cookie expires to store the locale information\n *\n * Default: undefined\n *\n * Define when the cookie will be removed. Value can be a Number\n * which will be interpreted as days from time of creation or a\n * Date instance. If omitted, the cookie becomes a session cookie.\n */\n expires?: Date | number | undefined;\n};\n\nexport type StorageAttributes = {\n /**\n * Storage type where the locale is stored\n *\n * Determines whether the locale is persisted in `localStorage` (across sessions)\n * or `sessionStorage` (cleared when the browser session ends) or `header` (from the request header).\n */\n type: 'localStorage' | 'sessionStorage' | 'header';\n\n /**\n * Storage key to store the locale information\n *\n * Default: 'INTLAYER_LOCALE'\n *\n * The key name used in the client storage to save the locale.\n */\n name?: string;\n};\n\nexport type RewriteRule<T extends string = string> = {\n canonical: T;\n localized: StrictModeLocaleMap<string>;\n};\n\nexport type RewriteRules = {\n rules: RewriteRule[];\n};\n\nexport type RewriteObject = {\n /**\n * Used for client-side URL generation (e.g., getLocalizedUrl).\n * Patterns are usually stripped of locale prefixes as the core logic handles prefixing.\n */\n url: RewriteRules;\n /**\n * Used for Next.js middleware / proxy.\n * Patterns usually include [locale] or :locale to match incoming full URLs.\n */\n nextjs?: RewriteRules;\n /**\n * Used for Vite proxy middleware.\n */\n vite?: RewriteRules;\n};\n\n/**\n * Configuration for routing behaviors\n */\nexport type RoutingConfig = {\n /**\n * Rewrite the URLs to a localized path\n *\n * Example:\n * ```ts\n * // ...\n * routing: {\n * rewrite: nextjsRewrite({\n * '[locale]/about': {\n * fr: '[locale]/a-propos'\n * }\n * })\n * }\n * ```\n */\n rewrite?: Record<URLPath, StrictModeLocaleMap<URLPath>> | RewriteObject;\n\n /**\n * URL routing mode for locale handling\n *\n * Controls how locales are represented in application URLs:\n * - 'prefix-no-default': Prefix all locales except the default locale\n * - 'prefix-all': Prefix all locales including the default locale\n * - 'no-prefix': No locale prefixing in URLs\n * - 'search-params': Use search parameters for locale handling\n *\n * Examples with defaultLocale = 'en':\n * - 'prefix-no-default': /dashboard (en) or /fr/dashboard (fr)\n * - 'prefix-all': /en/dashboard (en) or /fr/dashboard (fr)\n * - 'no-prefix': /dashboard (locale handled via other means)\n * - 'search-params': /dashboard?locale=fr\n *\n * Note: This setting do not impact the cookie, or locale storage management.\n *\n * Default: 'prefix-no-default'\n */\n mode: 'prefix-no-default' | 'prefix-all' | 'no-prefix' | 'search-params';\n\n /**\n * Configuration for storing the locale in the client (localStorage or sessionStorage)\n *\n * If false, the locale will not be stored by the middleware.\n * If true, the locale storage will consider all default values.\n *\n * Default: ['cookie', 'header]\n *\n * Note: Check out GDPR compliance for cookies. See https://gdpr.eu/cookies/\n * Note: useLocale hook includes a prop to disable the cookie storage.\n * Note: Even if storage is disabled, the middleware will still detect the locale from the request header (1- check for `x-intlayer-locale`, 2- fallback to the `accept-language`).\n *\n * Recommendation:\n * - Config both localStorage and cookies for the storage of the locale if you want to support GDPR compliance.\n * - Disable the cookie storage by default on the useLocale hook by waiting for the user to consent to the cookie storage.\n */\n storage:\n | false\n | 'cookie'\n | 'localStorage'\n | 'sessionStorage'\n | 'header'\n | CookiesAttributes\n | StorageAttributes\n | (\n | 'cookie'\n | 'localStorage'\n | 'sessionStorage'\n | 'header'\n | CookiesAttributes\n | StorageAttributes\n )[];\n\n /**\n * Base path for application URLs\n *\n * Default: ''\n *\n * Defines the base path where the application is accessible from.\n */\n basePath: string;\n};\n\n/**\n * Configuration for intlayer editor\n */\nexport type EditorConfig = {\n /**\n * URL of the application. Used to restrict the origin of the editor for security reasons.\n *\n * Default: ''\n */\n applicationURL: URLType;\n\n /**\n * URL of the editor server. Used to restrict the origin of the editor for security reasons.\n *\n * Default: 'http://localhost:8000'\n */\n editorURL: URLType;\n\n /**\n * URL of the CMS server. Used to restrict the origin of the editor for security reasons.\n *\n * Default: 'https://app.intlayer.org'\n */\n cmsURL: URLType;\n\n /**\n * URL of the backend\n *\n * Default: 'https://back.intlayer.org'\n *\n * The URL of the backend server.\n */\n backendURL: URLType;\n\n /**\n * Indicates if the application interact with the visual editor\n *\n * Default: true;\n *\n * If true, the editor will be able to interact with the application.\n * If false, the editor will not be able to interact with the application.\n * In any case, the editor can only be enabled by the visual editor.\n * Disabling the editor for specific environments is a way to enforce the security.\n *\n * Usage:\n * ```js\n * {\n * // Other configurations\n * editor: {\n * enabled: process.env.NODE_ENV !== 'production',\n * }\n * };\n * ```\n *\n */\n enabled: boolean;\n\n /** Port of the editor server\n *\n * Default: 8000\n */\n port: number;\n\n /**\n * clientId and clientSecret allow the intlayer packages to authenticate with the backend using oAuth2 authentication.\n * An access token is use to authenticate the user related to the project.\n * To get an access token, go to https://app.intlayer.org/project and create an account.\n *\n * Default: undefined\n *\n * > Important: The clientId and clientSecret should be kept secret and not shared publicly. Please ensure to keep them in a secure location, such as environment variables.\n */\n clientId?: string;\n\n /**\n * clientId and clientSecret allow the intlayer packages to authenticate with the backend using oAuth2 authentication.\n * An access token is use to authenticate the user related to the project.\n * To get an access token, go to https://app.intlayer.org/project and create an account.\n *\n * Default: undefined\n *\n * > Important: The clientId and clientSecret should be kept secret and not shared publicly. Please ensure to keep them in a secure location, such as environment variables.\n */\n clientSecret?: string;\n\n /**\n * Strategy for prioritizing dictionaries. If a dictionary is both present online and locally, the content will be merge.\n * However, is a field is defined in both dictionary, this setting determines which fields takes the priority over the other.\n *\n * Default: 'local_first'\n *\n * The strategy for prioritizing dictionaries. It can be either 'local_first' or 'distant_first'.\n * - 'local_first': The first dictionary found in the locale is used.\n * - 'distant_first': The first dictionary found in the distant locales is used.\n */\n dictionaryPriorityStrategy: 'local_first' | 'distant_first';\n\n /**\n * Indicates if the application should hot reload the locale configurations when a change is detected.\n * For example, when a new dictionary is added or updated, the application will update the content tu display in the page.\n *\n * Default: true\n */\n liveSync: boolean;\n\n /**\n * Port of the live sync server\n *\n * Default: 4000\n */\n liveSyncPort: number;\n\n /**\n * URL of the live sync server in case of remote live sync server\n *\n * Default: `http://localhost:${liveSyncPort}`\n */\n liveSyncURL: URLType;\n};\n\nexport enum AiProviders {\n OPENAI = 'openai',\n ANTHROPIC = 'anthropic',\n MISTRAL = 'mistral',\n DEEPSEEK = 'deepseek',\n GEMINI = 'gemini',\n OLLAMA = 'ollama',\n}\n\nexport type AiConfig = {\n /**\n * Provider\n *\n * The provider to use for the AI features of Intlayer.\n *\n * Available providers:\n * - 'openai'\n * - 'anthropic'\n * - 'mistral'\n * - 'deepseek'\n * - 'gemini'\n * - 'ollama'\n *\n * Default: 'openai'\n */\n provider?: AiProviders | `${AiProviders}`;\n\n /**\n * API model\n *\n * The model to use for the AI features of Intlayer.\n *\n * Example: 'gpt-4o-2024-11-20'\n *\n */\n model?: string;\n\n /**\n * temperature\n *\n * The temperature to use for the AI features of Intlayer.\n * The temperature controls the randomness of the AI's responses.\n * A higher temperature will make the AI more creative and less predictable.\n *\n * Example: 0.1\n */\n temperature?: number;\n\n /**\n * API key\n *\n * Use your own OpenAI API key to use the AI features of Intlayer.\n * If you don't have an OpenAI API key, you can get one for free at https://openai.com/api/.\n *\n */\n apiKey?: string;\n\n /**\n * Application context\n *\n * The context of the application to use for the AI features of Intlayer.\n *\n * Example: 'This is a website for a company that sells products online.'\n */\n applicationContext?: string;\n\n /**\n * Base URL\n *\n * The base URL to use for the AI features of Intlayer.\n *\n * Example: 'https://api.openai.com/v1'\n */\n baseURL?: string;\n\n /**\n * Data serialization\n *\n * The data serialization format to use for the AI features of Intlayer.\n *\n * Default: 'json'\n */\n dataSerialization?: 'json' | 'toon';\n} & Record<string, any>;\n\nexport type BuildConfig = {\n /**\n * Indicates the mode of the build\n *\n * Default: 'auto'\n *\n * If 'auto', the build will be enabled automatically when the application is built.\n * If 'manual', the build will be set only when the build command is executed.\n *\n * Can be used to disable dictionaries build, for instance when execution on Node.js environment should be avoided.\n */\n mode: 'auto' | 'manual';\n\n /**\n * Indicates if the build should be optimized\n *\n * Default: undefined\n *\n * If true, the build will be optimized.\n * If false, the build will not be optimized.\n *\n * Intlayer will replace all calls of dictionaries to optimize chunking. That way the final bundle will import only the dictionaries that are used.\n * All imports will stay as static import to avoid async processing when loading the dictionaries.\n *\n * Note:\n * - Intlayer will replace all call of `useIntlayer` with the defined mode by the `importMode` option.\n * - Intlayer will replace all call of `getIntlayer` with `getDictionary`.\n * - This option relies on the `@intlayer/babel` and `@intlayer/swc` plugins.\n * - Ensure all keys are declared statically in the `useIntlayer` calls. e.g. `useIntlayer('navbar')`.\n */\n optimize?: boolean;\n\n /**\n * Indicates the mode of import to use for the dictionaries.\n *\n * Available modes:\n * - \"static\": The dictionaries are imported statically.\n * In that case, Intlayer will replace all calls to `useIntlayer` with `useDictionary`.\n * - \"dynamic\": The dictionaries are imported dynamically in a synchronous component using the suspense API.\n * In that case, Intlayer will replace all calls to `useIntlayer` with `useDictionaryDynamic`.\n * - \"fetch\": The dictionaries are imported dynamically using the live sync API.\n * In that case, Intlayer will replace all calls to `useIntlayer` with `useDictionaryDynamic`.\n * Fetch mode will use the live sync API to fetch the dictionaries. If the API call fails, the dictionaries will be imported dynamically as \"dynamic\" mode.\n *\n * Default: \"static\"\n *\n * By default, when a dictionary is loaded, it imports content for all locales as it's imported statically.\n *\n * Note:\n * - Dynamic imports rely on Suspense and may slightly impact rendering performance.\n * - If desabled all locales will be loaded at once, even if they are not used.\n * - This option relies on the `@intlayer/babel` and `@intlayer/swc` plugins.\n * - Ensure all keys are declared statically in the `useIntlayer` calls. e.g. `useIntlayer('navbar')`.\n * - This option will be ignored if `optimize` is disabled.\n * - This option will not impact the `getIntlayer`, `getDictionary`, `useDictionary`, `useDictionaryAsync` and `useDictionaryDynamic` functions. You can still use them to refine you code on manual optimization.\n * - The \"fetch\" allows to sync the dictionaries to the live sync server.\n * - Require static key to work. Example of invalid code: `const navbarKey = \"my-key\"; useIntlayer(navbarKey)`.\n *\n * @deprecated Use `dictionary.importMode` instead.\n */\n importMode?: 'static' | 'dynamic' | 'fetch';\n\n /**\n * Pattern to traverse the code to optimize.\n *\n * Allows to avoid to traverse the code that is not relevant to the optimization.\n * Improve build performance.\n *\n * Default: ['**\\/*.{js,ts,mjs,cjs,jsx,tsx}', '!**\\/node_modules/**']\n *\n * Example: `['src/**\\/*.{ts,tsx}', '../ui-library/**\\/*.{ts,tsx}', '!**\\/node_modules/**']`\n *\n * Note:\n * - This option will be ignored if `optimize` is disabled.\n * - Use glob pattern.\n */\n traversePattern: string[];\n\n /**\n * Output format of the dictionaries\n *\n * Default: ['cjs', 'esm']\n *\n * The output format of the dictionaries. It can be either 'cjs' or 'esm'. Even if dictionaries are written in JSON, entry point to access the dictionaries are generated.\n * This function will use the output format defined using this option.\n * The default format is 'cjs' as it allows better interoperability with other libraries, scripts, and applications. But some build tools, such as Vite, require ES modules.\n */\n outputFormat: ('cjs' | 'esm')[];\n\n /**\n * Indicates if the cache should be enabled\n *\n * Default: true\n *\n * If true, the cache will be enabled.\n * If false, the cache will not be enabled.\n */\n cache: boolean;\n\n /**\n * Require function\n *\n * In some environments, as VSCode extension, the require function should be set relatively to the project root to work properly.\n *\n * Default: undefined\n *\n * If undefined, the require function will be set to the default require function.\n * If defined, the require function will be set to the defined require function.\n *\n * Example:\n * ```js\n * {\n * require: require\n * }\n * ```\n */\n require?: NodeJS.Require;\n};\n\nexport type CompilerConfig = {\n /**\n * Indicates if the compiler should be enabled\n */\n enabled: boolean;\n\n /**\n * Pattern to traverse the code to optimize.\n *\n * Allows to avoid to traverse the code that is not relevant to the optimization.\n * Improve build performance.\n *\n * Default: ['**\\/*.{js,ts,mjs,cjs,jsx,tsx}', '!**\\/node_modules/**']\n *\n * Example: `['src/**\\/*.{ts,tsx}', '../ui-library/**\\/*.{ts,tsx}', '!**\\/node_modules/**']`\n *\n * Note:\n * - This option will be ignored if `optimize` is disabled.\n * - Use glob pattern.\n */\n transformPattern: string | string[];\n\n /**\n * Pattern to exclude from the optimization.\n *\n * Allows to exclude files from the optimization.\n *\n * Default: ['**\\/node_modules/**']\n *\n * Example: `['**\\/node_modules/**', '!**\\/node_modules/react/**']`\n */\n excludePattern: string | string[];\n\n /**\n * Output directory for the optimized dictionaries.\n *\n * Default: 'compiler'\n *\n * The directory where the optimized dictionaries will be stored.\n */\n outputDir: string;\n};\n\n/**\n * Custom configuration that can be provided to override default settings\n */\nexport type CustomIntlayerConfig = {\n /**\n * Custom internationalization configuration\n */\n internationalization?: Partial<InternationalizationConfig>;\n\n /**\n * Custom dictionary configuration\n */\n dictionary?: Partial<DictionaryConfig>;\n\n /**\n * Custom routing configuration\n */\n routing?: Partial<RoutingConfig>;\n\n /**\n * Custom content configuration\n */\n content?: Partial<ContentConfig>;\n\n /**\n * Custom editor configuration\n */\n editor?: Partial<EditorConfig>;\n\n /**\n * Custom log configuration\n */\n log?: Partial<LogConfig>;\n\n /**\n * Custom AI configuration\n */\n ai?: Partial<AiConfig>;\n\n /**\n * Custom build configuration\n */\n build?: Partial<BuildConfig>;\n\n /**\n * Custom compiler configuration\n */\n compiler?: Partial<CompilerConfig>;\n\n /**\n * Custom system configuration\n */\n system?: Partial<SystemConfig>;\n\n /**\n * Custom schemas to validate the dictionaries content.\n *\n * Example:\n * ```ts\n * {\n * schemas: {\n * 'my-schema': z.object({\n * title: z.string(),\n * description: z.string(),\n * }),\n * }\n * }\n * ```\n */\n schemas?: Record<string, z.ZodType>;\n\n /**\n * Custom plugins configuration\n */\n plugins?: Plugin[];\n};\n\nexport type DictionaryConfig = {\n fill?: Fill;\n description?: string;\n locale?: LocalesValues;\n contentAutoTransformation?: ContentAutoTransformation;\n priority?: number;\n /**\n * Indicates the mode of import to use for the dictionaries.\n *\n * Available modes:\n * - \"static\": The dictionaries are imported statically.\n * In that case, Intlayer will replace all calls to `useIntlayer` with `useDictionary`.\n * - \"dynamic\": The dictionaries are imported dynamically in a synchronous component using the suspense API.\n * In that case, Intlayer will replace all calls to `useIntlayer` with `useDictionaryDynamic`.\n * - \"fetch\": The dictionaries are imported dynamically using the live sync API.\n * In that case, Intlayer will replace all calls to `useIntlayer` with `useDictionaryDynamic`.\n * Fetch mode will use the live sync API to fetch the dictionaries. If the API call fails, the dictionaries will be imported dynamically as \"dynamic\" mode.\n *\n * Default: \"static\"\n *\n * By default, when a dictionary is loaded, it imports content for all locales as it's imported statically.\n *\n * Note:\n * - Dynamic imports rely on Suspense and may slightly impact rendering performance.\n * - If desabled all locales will be loaded at once, even if they are not used.\n * - This option relies on the `@intlayer/babel` and `@intlayer/swc` plugins.\n * - Ensure all keys are declared statically in the `useIntlayer` calls. e.g. `useIntlayer('navbar')`.\n * - This option will be ignored if `optimize` is disabled.\n * - This option will not impact the `getIntlayer`, `getDictionary`, `useDictionary`, `useDictionaryAsync` and `useDictionaryDynamic` functions. You can still use them to refine you code on manual optimization.\n * - The \"fetch\" allows to sync the dictionaries to the live sync server.\n * - Require static key to work. Example of invalid code: `const navbarKey = \"my-key\"; useIntlayer(navbarKey)`.\n */\n importMode?: 'static' | 'dynamic' | 'fetch';\n title?: string;\n tags?: string[];\n version?: string;\n location?: DictionaryLocation;\n};\n\n/**\n * Combined configuration for internationalization, middleware, and content\n */\nexport type IntlayerConfig = {\n /**\n * Internationalization configuration\n */\n internationalization: InternationalizationConfig;\n\n /**\n * Default dictionary configuration\n */\n dictionary?: Partial<DictionaryConfig>;\n\n /**\n * Routing configuration\n */\n routing: RoutingConfig;\n\n /**\n * Content configuration\n */\n content: ContentConfig;\n\n /**\n * System configuration\n */\n system: SystemConfig;\n\n /**\n * Intlayer editor configuration\n */\n editor: EditorConfig;\n\n /**\n * Logger configuration\n */\n log: LogConfig;\n\n /**\n * AI configuration\n */\n ai?: Partial<AiConfig>;\n\n /**\n * Build configuration\n */\n build: BuildConfig;\n\n /**\n * Compiler configuration\n */\n compiler: CompilerConfig;\n\n /**\n * Custom schemas to validate the dictionaries content.\n */\n schemas?: Record<string, z.ZodType>;\n\n /**\n * Plugins configuration\n */\n plugins?: Plugin[];\n\n /**\n * Metadata of the project\n */\n metadata: {\n name: string;\n version: string;\n doc: string;\n };\n};\n\n/**\n * Configuration for content handling\n */\nexport type ContentConfig = {\n /**\n * File extensions of content to look for\n *\n * Default: ['.content.ts', '.content.js', '.content.cjs', '.content.mjs', '.content.json', '.content.tsx', '.content.jsx']\n *\n * List of file extensions to scan for content.\n */\n fileExtensions: string[];\n\n /**\n * Absolute path of the project's base directory\n *\n * Default: process.cwd()\n *\n * The root directory of the project, typically used for resolving other paths.\n */\n baseDir: string;\n\n /**\n * Directory where the content is stored, relative to the base directory\n *\n * Default: ['.']\n *\n * Derived content directory based on the base configuration.\n *\n * Note: This is used to watch for content files.\n */\n contentDir: string[];\n\n /**\n * Directory where the code is stored, relative to the base directory\n *\n * Default: ['.']\n *\n * Derived code directory based on the base configuration.\n *\n * Note: This is used to watch for code files to transform.\n */\n codeDir: string[];\n\n /**\n * Directories to be excluded from content processing\n *\n * Default: ['node_modules', '.intlayer']\n *\n * A list of directories to exclude from content processing.\n */\n excludedPath: string[];\n\n /**\n * Indicates if Intlayer should watch for changes in the content declaration files in the app to rebuild the related dictionaries.\n *\n * Default: process.env.NODE_ENV === 'development'\n */\n watch: boolean;\n\n /**\n * Command to format the content. When intlayer write your .content files locally, this command will be used to format the content.\n *\n * Example:\n *\n * ```bash\n * npx prettier --write {{file}}\n * ```\n *\n * ```bash\n * bunx biome format {{file}}\n * ```\n *\n * ```bash\n * bun format {{file}}\n * ```\n *\n * ```bash\n * npx eslint --fix {{file}}\n * ```\n *\n * Intlayer will replace the {{file}} with the path of the file to format.\n *\n * Default: undefined\n */\n formatCommand: string | undefined;\n\n /**\n * Patterns of files to watch for changes\n *\n * Default: ['/**\\/*.content.ts', '/**\\/*.content.js', '/**\\/*.content.json', '/**\\/*.content.cjs', '/**\\/*.content.mjs', '/**\\/*.content.tsx', '/**\\/*.content.jsx']\n *\n * Defines file patterns for content to watch for changes.\n */\n watchedFilesPattern: string[];\n\n /**\n * Patterns of files to watch for changes including the relative path\n *\n * Default: ['src/**\\/*.content.ts', 'src/**\\/*.content.js', 'src/**\\/*.content.json', 'src/**\\/*.content.cjs', 'src/**\\/*.content.mjs', 'src/**\\/*.content.tsx', 'src/**\\/*.content.jsx']\n *\n * Specifies the file patterns for content to watch, including relative paths.\n */\n watchedFilesPatternWithPath: string[];\n};\n\nexport type SystemConfig = {\n /**\n * Directory for module augmentation, relative to the base directory\n *\n * Default: .intlayer/types\n *\n * Defines the derived path for module augmentation.\n */\n moduleAugmentationDir: string;\n\n /**\n * Directory where unmerged dictionaries are stored, relative to the result directory\n *\n * Default: .intlayer/unmerged_dictionary\n *\n * Specifies the derived path for unmerged dictionaries relative to the result directory.\n */\n unmergedDictionariesDir: string;\n\n /**\n * Directory where remote dictionaries are stored, relative to the result directory\n *\n * Default: .intlayer/remote_dictionary\n *\n * Specifies the derived path for remote dictionaries relative to the result directory.\n */\n remoteDictionariesDir: string;\n\n /**\n * Directory where final dictionaries are stored, relative to the result directory\n *\n * Default: .intlayer/dictionary\n *\n * Specifies the derived path for dictionaries relative to the result directory.\n */\n dictionariesDir: string;\n\n /**\n * Directory where dynamic dictionaries are stored, relative to the result directory\n *\n * Default: .intlayer/dynamic_dictionary\n *\n * Specifies the derived path for dynamic dictionaries relative to the result directory.\n */\n dynamicDictionariesDir: string;\n\n /**\n * Directory where fetch dictionaries are stored, relative to the result directory\n *\n * Default: .intlayer/fetch_dictionary\n *\n * Specifies the derived path for fetch dictionaries relative to the result directory.\n */\n fetchDictionariesDir: string;\n\n /**\n * Directory where dictionary types are stored, relative to the result directory\n *\n * Default: .intlayer/types\n *\n * Specifies the derived path for dictionary types relative to the result directory.\n */\n typesDir: string;\n\n /**\n * Directory where the main files are stored, relative to the result directory\n *\n * Default: .intlayer/main\n *\n * Specifies the derived path for the main files relative to the result directory.\n */\n mainDir: string;\n\n /**\n * Directory where the configuration files are stored, relative to the result directory\n *\n * Default: .intlayer/config\n *\n * Specifies the derived path for the configuration files relative to the result directory.\n */\n configDir: string;\n\n /**\n * Directory where the cache files are stored, relative to the result directory\n *\n * Default: .intlayer/cache\n *\n * Specifies the derived path for the cache files relative to the result directory.\n */\n cacheDir: string;\n\n /**\n * Pattern for output files including the relative path\n *\n * Default: '{{dictionariesDir}}/**\\/*.json'\n *\n * Defines the pattern for output files, including the relative path.\n */\n outputFilesPatternWithPath: string;\n};\n\nexport type LogFunctions = {\n error?: typeof console.error;\n log?: typeof console.log;\n info?: typeof console.info;\n warn?: typeof console.warn;\n};\n\nexport type LogConfig = {\n /**\n * Indicates if the logger is enabled\n *\n * Default: true\n *\n * If 'default', the logger is enabled and can be used.\n * If 'verbose', the logger will be enabled and can be used, but will log more information.\n * If 'disabled', the logger is disabled and cannot be used.\n */\n mode: 'default' | 'verbose' | 'disabled';\n\n /**\n * Prefix of the logger\n *\n * Default: '[intlayer]'\n *\n * The prefix of the logger.\n */\n prefix: string;\n\n /**\n * Functions to log\n */\n error?: typeof console.error;\n log?: typeof console.log;\n info?: typeof console.info;\n warn?: typeof console.warn;\n debug?: typeof console.debug;\n};\n"],"mappings":";;;AA8YA,IAAY,oDAAL;AACL;AACA;AACA;AACA;AACA;AACA"}
@@ -1,3 +1,4 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
1
2
  const require_config = require('./config.cjs');
2
3
  const require_locales = require('./locales.cjs');
3
4
  const require_nodeType = require('./nodeType.cjs');
@@ -1,7 +1,8 @@
1
- const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+ const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
2
3
 
3
4
  //#region src/locales.ts
4
- var locales_exports = /* @__PURE__ */ require_rolldown_runtime.__exportAll({
5
+ var locales_exports = /* @__PURE__ */ require_runtime.__exportAll({
5
6
  AFRIKAANS: () => AFRIKAANS,
6
7
  AFRIKAANS_SOUTH_AFRICA: () => AFRIKAANS_SOUTH_AFRICA,
7
8
  ALBANIAN: () => ALBANIAN,
@@ -1 +1 @@
1
- {"version":3,"file":"locales.cjs","names":[],"sources":["../../src/locales.ts"],"sourcesContent":["/** Afrikaans language */\nexport const AFRIKAANS = 'af' as const;\n/** Afrikaans language as used in South Africa */\nexport const AFRIKAANS_SOUTH_AFRICA = 'af-ZA' as const;\n/** Arabic language */\nexport const ARABIC = 'ar' as const;\n/** Arabic language as used in the United Arab Emirates */\nexport const ARABIC_UNITED_ARAB_EMIRATES = 'ar-AE' as const;\n/** Arabic language as used in Bahrain */\nexport const ARABIC_BAHRAIN = 'ar-BH' as const;\n/** Arabic language as used in Algeria */\nexport const ARABIC_ALGERIA = 'ar-DZ' as const;\n/** Arabic language as used in Egypt */\nexport const ARABIC_EGYPT = 'ar-EG' as const;\n/** Arabic language as used in Iraq */\nexport const ARABIC_IRAQ = 'ar-IQ' as const;\n/** Arabic language as used in Jordan */\nexport const ARABIC_JORDAN = 'ar-JO' as const;\n/** Arabic language as used in Kuwait */\nexport const ARABIC_KUWAIT = 'ar-KW' as const;\n/** Arabic language as used in Lebanon */\nexport const ARABIC_LEBANON = 'ar-LB' as const;\n/** Arabic language as used in Libya */\nexport const ARABIC_LIBYA = 'ar-LY' as const;\n/** Arabic language as used in Morocco */\nexport const ARABIC_MOROCCO = 'ar-MA' as const;\n/** Arabic language as used in Oman */\nexport const ARABIC_OMAN = 'ar-OM' as const;\n/** Arabic language as used in Qatar */\nexport const ARABIC_QATAR = 'ar-QA' as const;\n/** Arabic language as used in Saudi Arabia */\nexport const ARABIC_SAUDI_ARABIA = 'ar-SA' as const;\n/** Arabic language as used in Syria */\nexport const ARABIC_SYRIA = 'ar-SY' as const;\n/** Arabic language as used in Tunisia */\nexport const ARABIC_TUNISIA = 'ar-TN' as const;\n/** Arabic language as used in Yemen */\nexport const ARABIC_YEMEN = 'ar-YE' as const;\n/** Azeri language (Latin script) */\nexport const AZERI_LATIN = 'az' as const;\n/** Azeri language (Latin script) as used in Azerbaijan */\nexport const AZERI_LATIN_AZERBAIJAN = 'az-AZ' as const;\n/** Belarusian language */\nexport const BELARUSIAN = 'be' as const;\n/** Belarusian language as used in Belarus */\nexport const BELARUSIAN_BELARUS = 'be-BY' as const;\n/** Bulgarian language */\nexport const BULGARIAN = 'bg' as const;\n/** Bulgarian language as used in Bulgaria */\nexport const BULGARIAN_BULGARIA = 'bg-BG' as const;\n/** Bosnian */\nexport const BOSNIAN = 'bs' as const;\n/** Bosnian language as used in Bosnia and Herzegovina */\nexport const BOSNIAN_BOSNIA_AND_HERZEGOVINA = 'bs-BA' as const;\n/** Catalan language */\nexport const CATALAN = 'ca' as const;\n/** Catalan language as used in Spain */\nexport const CATALAN_SPAIN = 'ca-ES' as const;\n/** Czech language */\nexport const CZECH = 'cs' as const;\n/** Czech language as used in Czech Republic */\nexport const CZECH_CZECH_REPUBLIC = 'cs-CZ' as const;\n/** Welsh language */\nexport const WELSH = 'cy' as const;\n/** Welsh language as used in the United Kingdom */\nexport const WELSH_UNITED_KINGDOM = 'cy-GB' as const;\n/** Danish language */\nexport const DANISH = 'da' as const;\n/** Danish language as used in Denmark */\nexport const DANISH_DENMARK = 'da-DK' as const;\n/** German language */\nexport const GERMAN = 'de' as const;\n/** German language as used in Austria */\nexport const GERMAN_AUSTRIA = 'de-AT' as const;\n/** German language as used in Switzerland */\nexport const GERMAN_SWITZERLAND = 'de-CH' as const;\n/** German language as used in Germany */\nexport const GERMAN_GERMANY = 'de-DE' as const;\n/** German language as used in Liechtenstein */\nexport const GERMAN_LIECHTENSTEIN = 'de-LI' as const;\n/** German language as used in Luxembourg */\nexport const GERMAN_LUXEMBOURG = 'de-LU' as const;\n/** Divehi language */\nexport const DIVEHI = 'dv' as const;\n/** Divehi language as used in Maldives */\nexport const DIVEHI_MALDIVES = 'dv-MV' as const;\n/** Greek language */\nexport const GREEK = 'el' as const;\n/** Greek language as used in Greece */\nexport const GREEK_GREECE = 'el-GR' as const;\n/** English language */\nexport const ENGLISH = 'en' as const;\n/** English language as used in Australia */\nexport const ENGLISH_AUSTRALIA = 'en-AU' as const;\n/** English language as used in Belize */\nexport const ENGLISH_BELIZE = 'en-BZ' as const;\n/** English language as used in Canada */\nexport const ENGLISH_CANADA = 'en-CA' as const;\n/** English language as used in Caribbean */\nexport const ENGLISH_CARIBBEAN = 'en-CB' as const;\n/** English language as used in the United Kingdom */\nexport const ENGLISH_UNITED_KINGDOM = 'en-GB' as const;\n/** English language as used in Ireland */\nexport const ENGLISH_IRELAND = 'en-IE' as const;\n/** English language as used in Jamaica */\nexport const ENGLISH_JAMAICA = 'en-JM' as const;\n/** English language as used in New Zealand */\nexport const ENGLISH_NEW_ZEALAND = 'en-NZ' as const;\n/** English language as used in Philippines */\nexport const ENGLISH_PHILIPPINES = 'en-PH' as const;\n/** English language as used in Trinidad and Tobago */\nexport const ENGLISH_TRINIDAD_AND_TOBAGO = 'en-TT' as const;\n/** English language as used in the United States */\nexport const ENGLISH_UNITED_STATES = 'en-US' as const;\n/** English language as used in South Africa */\nexport const ENGLISH_SOUTH_AFRICA = 'en-ZA' as const;\n/** English language as used in Zimbabwe */\nexport const ENGLISH_ZIMBABWE = 'en-ZW' as const;\n/** Esperanto language */\nexport const ESPERANTO = 'eo' as const;\n/** Spanish language */\nexport const SPANISH = 'es' as const;\n/** Spanish language as used in Argentina */\nexport const SPANISH_ARGENTINA = 'es-AR' as const;\n/** Spanish language as used in Bolivia */\nexport const SPANISH_BOLIVIA = 'es-BO' as const;\n/** Spanish language as used in Chile */\nexport const SPANISH_CHILE = 'es-CL' as const;\n/** Spanish language as used in Colombia */\nexport const SPANISH_COLOMBIA = 'es-CO' as const;\n/** Spanish language as used in Costa Rica */\nexport const SPANISH_COSTA_RICA = 'es-CR' as const;\n/** Spanish language as used in Dominican Republic */\nexport const SPANISH_DOMINICAN_REPUBLIC = 'es-DO' as const;\n/** Spanish language as used in Ecuador */\nexport const SPANISH_ECUADOR = 'es-EC' as const;\n/** Spanish language as used in Spain */\nexport const SPANISH_SPAIN = 'es-ES' as const;\n/** Spanish language as used in Guatemala */\nexport const SPANISH_GUATEMALA = 'es-GT' as const;\n/** Spanish language as used in Honduras */\nexport const SPANISH_HONDURAS = 'es-HN' as const;\n/** Spanish language as used in Mexico */\nexport const SPANISH_MEXICO = 'es-MX' as const;\n/** Spanish language as used in Nicaragua */\nexport const SPANISH_NICARAGUA = 'es-NI' as const;\n/** Spanish language as used in Panama */\nexport const SPANISH_PANAMA = 'es-PA' as const;\n/** Spanish language as used in Peru */\nexport const SPANISH_PERU = 'es-PE' as const;\n/** Spanish language as used in Puerto Rico */\nexport const SPANISH_PUERTO_RICO = 'es-PR' as const;\n/** Spanish language as used in Paraguay */\nexport const SPANISH_PARAGUAY = 'es-PY' as const;\n/** Spanish language as used in El Salvador */\nexport const SPANISH_EL_SALVADOR = 'es-SV' as const;\n/** Spanish language as used in Uruguay */\nexport const SPANISH_URUGUAY = 'es-UY' as const;\n/** Spanish language as used in Venezuela */\nexport const SPANISH_VENEZUELA = 'es-VE' as const;\n/** Estonian language */\nexport const ESTONIAN = 'et' as const;\n/** Estonian language as used in Estonia */\nexport const ESTONIAN_ESTONIA = 'et-EE' as const;\n/** Basque language */\nexport const BASQUE = 'eu' as const;\n/** Basque language as used in Spain */\nexport const BASQUE_SPAIN = 'eu-ES' as const;\n/** Farsi language */\nexport const FARSI = 'fa' as const;\n/** Farsi language as used in Iran */\nexport const FARSI_IRAN = 'fa-IR' as const;\n/** Finnish language */\nexport const FINNISH = 'fi' as const;\n/** Finnish language as used in Finland */\nexport const FINNISH_FINLAND = 'fi-FI' as const;\n/** Faroese language */\nexport const FAROESE = 'fo' as const;\n/** Faroese language as used in Faroe Islands */\nexport const FAROESE_FAROE_ISLANDS = 'fo-FO' as const;\n/** French language */\nexport const FRENCH = 'fr' as const;\n/** French language as used in Belgium */\nexport const FRENCH_BELGIUM = 'fr-BE' as const;\n/** French language as used in Canada */\nexport const FRENCH_CANADA = 'fr-CA' as const;\n/** French language as used in Switzerland */\nexport const FRENCH_SWITZERLAND = 'fr-CH' as const;\n/** French language as used in France */\nexport const FRENCH_FRANCE = 'fr-FR' as const;\n/** French language as used in Luxembourg */\nexport const FRENCH_LUXEMBOURG = 'fr-LU' as const;\n/** French language as used in the Principality of Monaco */\nexport const FRENCH_PRINCIPALITY_OF_MONACO = 'fr-MC' as const;\n/** Irish language */\nexport const IRISH = 'ga' as const;\n/** Irish language as used in Ireland */\nexport const IRISH_IRELAND = 'ga-IE' as const;\n/** Scottish Gaelic language */\nexport const SCOTTISH_GAELIC = 'gd' as const;\n/** Scottish Gaelic language as used in United Kingdom */\nexport const SCOTTISH_GAELIC_UNITED_KINGDOM = 'gd-GB' as const;\n/** Galician language */\nexport const GALICIAN = 'gl' as const;\n/** Galician language as used in Spain */\nexport const GALICIAN_SPAIN = 'gl-ES' as const;\n/** Gujarati language */\nexport const GUJARATI = 'gu' as const;\n/** Gujarati language as used in India */\nexport const GUJARATI_INDIA = 'gu-IN' as const;\n/** Hebrew language */\nexport const HEBREW = 'he' as const;\n/** Hebrew language as used in Israel */\nexport const HEBREW_ISRAEL = 'he-IL' as const;\n/** Hindi language */\nexport const HINDI = 'hi' as const;\n/** Hindi language as used in India */\nexport const HINDI_INDIA = 'hi-IN' as const;\n/** Croatian language */\nexport const CROATIAN = 'hr' as const;\n/** Croatian language as used in Bosnia and Herzegovina */\nexport const CROATIAN_BOSNIA_AND_HERZEGOVINA = 'hr-BA' as const;\n/** Croatian language as used in Croatia */\nexport const CROATIAN_CROATIA = 'hr-HR' as const;\n/** Hungarian language */\nexport const HUNGARIAN = 'hu' as const;\n/** Hungarian language as used in Hungary */\nexport const HUNGARIAN_HUNGARY = 'hu-HU' as const;\n/** Armenian language */\nexport const ARMENIAN = 'hy' as const;\n/** Armenian language as used in Armenia */\nexport const ARMENIAN_ARMENIA = 'hy-AM' as const;\n/** Indonesian language */\nexport const INDONESIAN = 'id' as const;\n/** Indonesian language as used in Indonesia */\nexport const INDONESIAN_INDONESIA = 'id-ID' as const;\n/** Icelandic language */\nexport const ICELANDIC = 'is' as const;\n/** Icelandic language as used in Iceland */\nexport const ICELANDIC_ICELAND = 'is-IS' as const;\n/** Italian language */\nexport const ITALIAN = 'it' as const;\n/** Italian language as used in Switzerland */\nexport const ITALIAN_SWITZERLAND = 'it-CH' as const;\n/** Italian language as used in Italy */\nexport const ITALIAN_ITALY = 'it-IT' as const;\n/** Japanese language */\nexport const JAPANESE = 'ja' as const;\n/** Japanese language as used in Japan */\nexport const JAPANESE_JAPAN = 'ja-JP' as const;\n/** Georgian language */\nexport const GEORGIAN = 'ka' as const;\n/** Georgian language as used in Georgia */\nexport const GEORGIAN_GEORGIA = 'ka-GE' as const;\n/** Kazakh language */\nexport const KAZAKH = 'kk' as const;\n/** Kazakh language as used in Kazakhstan */\nexport const KAZAKH_KAZAKHSTAN = 'kk-KZ' as const;\n/** Kannada language */\nexport const KANNADA = 'kn' as const;\n/** Kannada language as used in India */\nexport const KANNADA_INDIA = 'kn-IN' as const;\n/** Korean language */\nexport const KOREAN = 'ko' as const;\n/** Korean language as used in Korea */\nexport const KOREAN_KOREA = 'ko-KR' as const;\n/** Konkani language */\nexport const KONKANI = 'kok' as const;\n/** Konkani language as used in India */\nexport const KONKANI_INDIA = 'kok-IN' as const;\n/** Kurdish language */\nexport const KURDISH = 'ku' as const;\n/** Kurdish language as used in Turkey */\nexport const KURDISH_TURKEY = 'ku-TR' as const;\n/** Kyrgyz language */\nexport const KYRGYZ = 'ky' as const;\n/** Kyrgyz language as used in Kyrgyzstan */\nexport const KYRGYZ_KYRGYZSTAN = 'ky-KG' as const;\n/** Lithuanian language */\nexport const LITHUANIAN = 'lt' as const;\n/** Lithuanian language as used in Lithuania */\nexport const LITHUANIAN_LITHUANIA = 'lt-LT' as const;\n/** Latvian language */\nexport const LATVIAN = 'lv' as const;\n/** Latvian language as used in Latvia */\nexport const LATVIAN_LATVIA = 'lv-LV' as const;\n/** Maori language */\nexport const MAORI = 'mi' as const;\n/** Maori language as used in New Zealand */\nexport const MAORI_NEW_ZEALAND = 'mi-NZ' as const;\n/** Macedonian language (Former Yugoslav Republic of Macedonia) */\nexport const FYRO_MACEDONIAN = 'mk' as const;\n/** Macedonian language as used in Macedonia */\nexport const FYRO_MACEDONIAN_MACEDONIA = 'mk-MK' as const;\n/** Mongolian language */\nexport const MONGOLIAN = 'mn' as const;\n/** Mongolian language as used in Mongolia */\nexport const MONGOLIAN_MONGOLIA = 'mn-MN' as const;\n/** Marathi language */\nexport const MARATHI = 'mr' as const;\n/** Marathi language as used in India */\nexport const MARATHI_INDIA = 'mr-IN' as const;\n/** Malay language */\nexport const MALAY = 'ms' as const;\n/** Malay language as used in Brunei Darussalam */\nexport const MALAY_BRUNEI_DARUSSALAM = 'ms-BN' as const;\n/** Malay language as used in Malaysia */\nexport const MALAY_MALAYSIA = 'ms-MY' as const;\n/** Maltese language */\nexport const MALTESE = 'mt' as const;\n/** Maltese language as used in Malta */\nexport const MALTESE_MALTA = 'mt-MT' as const;\n/** Malayalam language */\nexport const MALAYALAM = 'ml' as const;\n/** Malayalam language as used in India */\nexport const MALAYALAM_INDIA = 'ml-IN' as const;\n/** Norwegian language */\nexport const NORWEGIAN = 'no' as const;\n/** Norwegian (Bokmål) language */\nexport const NORWEGIAN_BOKMAL = 'nb' as const;\n/** Norwegian (Bokmål) language as used in Norway */\nexport const NORWEGIAN_BOKMAL_NORWAY = 'nb-NO' as const;\n/** Dutch language */\nexport const DUTCH = 'nl' as const;\n/** Dutch language as used in Belgium */\nexport const DUTCH_BELGIUM = 'nl-BE' as const;\n/** Dutch language as used in the Netherlands */\nexport const DUTCH_NETHERLANDS = 'nl-NL' as const;\n/** Norwegian (Nynorsk) language */\nexport const NORWEGIAN_NYNORSK = 'nn' as const;\n/** Norwegian (Nynorsk) language as used in Norway */\nexport const NORWEGIAN_NYNORSK_NORWAY = 'nn-NO' as const;\n/** Northern Sotho language */\nexport const NORTHERN_SOTHO = 'ns' as const;\n/** Northern Sotho language as used in South Africa */\nexport const NORTHERN_SOTHO_SOUTH_AFRICA = 'ns-ZA' as const;\n/** Punjabi language */\nexport const PUNJABI = 'pa' as const;\n/** Punjabi language as used in India */\nexport const PUNJABI_INDIA = 'pa-IN' as const;\n/** Polish language */\nexport const POLISH = 'pl' as const;\n/** Polish language as used in Poland */\nexport const POLISH_POLAND = 'pl-PL' as const;\n/** Pashto language */\nexport const PASHTO = 'ps' as const;\n/** Pashto language as used in Afghanistan */\nexport const PASHTO_AFGHANISTAN = 'ps-AR' as const;\n/** Portuguese language */\nexport const PORTUGUESE = 'pt' as const;\n/** Portuguese language as used in Brazil */\nexport const PORTUGUESE_BRAZIL = 'pt-BR' as const;\n/** Portuguese language as used in Portugal */\nexport const PORTUGUESE_PORTUGAL = 'pt-PT' as const;\n/** Quechua language */\nexport const QUECHUA = 'qu' as const;\n/** Quechua language as used in Bolivia */\nexport const QUECHUA_BOLIVIA = 'qu-BO' as const;\n/** Quechua language as used in Ecuador */\nexport const QUECHUA_ECUADOR = 'qu-EC' as const;\n/** Quechua language as used in Peru */\nexport const QUECHUA_PERU = 'qu-PE' as const;\n/** Romanian language */\nexport const ROMANIAN = 'ro' as const;\n/** Romanian language as used in Romania */\nexport const ROMANIAN_ROMANIA = 'ro-RO' as const;\n/** Romanian language as used in Moldova */\nexport const ROMANIAN_MOLDOVA = 'ro-MD' as const;\n/** Romansh language */\nexport const ROMANSH = 'rm' as const;\n/** Romansh language as used in Switzerland */\nexport const ROMANSH_SWITZERLAND = 'rm-CH' as const;\n/** Russian language */\nexport const RUSSIAN = 'ru' as const;\n/** Russian language as used in Russia */\nexport const RUSSIAN_RUSSIA = 'ru-RU' as const;\n/** Russian language as used in Moldova */\nexport const RUSSIAN_MOLDOVA = 'ru-MD' as const;\n/** Sanskrit language */\nexport const SANSKRIT = 'sa' as const;\n/** Sanskrit language as used in India */\nexport const SANSKRIT_INDIA = 'sa-IN' as const;\n/** Northern Sami language */\nexport const SAMI_NORTHERN = 'se' as const;\n/** Northern Sami language as used in Finland */\nexport const SAMI_NORTHERN_FINLAND = 'se-FI' as const;\n/** Northern Sami language as used in Norway */\nexport const SAMI_NORTHERN_NORWAY = 'se-NO' as const;\n/** Northern Sami language as used in Sweden */\nexport const SAMI_NORTHERN_SWEDEN = 'se-SE' as const;\n/** Upper Sorbian language */\nexport const UPPER_SORBIAN = 'hsb' as const;\n/** Upper Sorbian language as used in Germany */\nexport const UPPER_SORBIAN_GERMANY = 'hsb-DE' as const;\n/** Lower Sorbian language */\nexport const LOWER_SORBIAN = 'dsb' as const;\n/** Lower Sorbian language as used in Germany */\nexport const LOWER_SORBIAN_GERMANY = 'dsb-DE' as const;\n/** Slovak language */\nexport const SLOVAK = 'sk' as const;\n/** Slovak language as used in Slovakia */\nexport const SLOVAK_SLOVAKIA = 'sk-SK' as const;\n/** Slovenian language */\nexport const SLOVENIAN = 'sl' as const;\n/** Slovenian language as used in Slovenia */\nexport const SLOVENIAN_SLOVENIA = 'sl-SI' as const;\n/** Albanian language */\nexport const ALBANIAN = 'sq' as const;\n/** Albanian language as used in Albania */\nexport const ALBANIAN_ALBANIA = 'sq-AL' as const;\n/** Servian language (Latin script) */\nexport const SERBIAN_LATIN = 'sr' as const;\n/** Serbian language (Latin script) as used in Bosnia and Herzegovina */\nexport const SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA = 'sr-BA' as const;\n/** Serbian language (Latin script) as used in Serbia and Montenegro */\nexport const SERBIAN_LATIN_SERBIA_AND_MONTENEGRO = 'sr-SP' as const;\n/** Swedish language */\nexport const SWEDISH = 'sv' as const;\n/** Swedish language as used in Finland */\nexport const SWEDISH_FINLAND = 'sv-FI' as const;\n/** Swedish language as used in Sweden */\nexport const SWEDISH_SWEDEN = 'sv-SE' as const;\n/** Swahili language */\nexport const SWAHILI = 'sw' as const;\n/** Swahili language as used in Kenya */\nexport const SWAHILI_KENYA = 'sw-KE' as const;\n/** Syriac language */\nexport const SYRIAC = 'syr' as const;\n/** Syriac language as used in Syria */\nexport const SYRIAC_SYRIA = 'syr-SY' as const;\n/** Tamil language */\nexport const TAMIL = 'ta' as const;\n/** Tamil language as used in India */\nexport const TAMIL_INDIA = 'ta-IN' as const;\n/** Telugu language */\nexport const TELUGU = 'te' as const;\n/** Telugu language as used in India */\nexport const TELUGU_INDIA = 'te-IN' as const;\n/** Thai language */\nexport const THAI = 'th' as const;\n/** Thai language as used in Thailand */\nexport const THAI_THAILAND = 'th-TH' as const;\n/** Tagalog language */\nexport const TAGALOG = 'tl' as const;\n/** Tagalog language as used in Philippines */\nexport const TAGALOG_PHILIPPINES = 'tl-PH' as const;\n/** Tswana language */\nexport const TSWANA = 'tn' as const;\n/** Tswana language as used in South Africa */\nexport const TSWANA_SOUTH_AFRICA = 'tn-ZA' as const;\n/** Turkish language */\nexport const TURKISH = 'tr' as const;\n/** Turkish language as used in Turkey */\nexport const TURKISH_TURKEY = 'tr-TR' as const;\n/** Tatar language */\nexport const TATAR = 'tt' as const;\n/** Tatar language as used in Russia */\nexport const TATAR_RUSSIA = 'tt-RU' as const;\n/** Tsonga language */\nexport const TSOGA = 'ts' as const;\n/** Ukrainian language */\nexport const UKRAINIAN = 'uk' as const;\n/** Ukrainian language as used in Ukraine */\nexport const UKRAINIAN_UKRAINE = 'uk-UA' as const;\n/** Urdu language */\nexport const URDU = 'ur' as const;\n/** Urdu language as used in Islamic Republic of Pakistan */\nexport const URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN = 'ur-PK' as const;\n/** Uzbek language (Latin script) */\nexport const UZBEK_LATIN = 'uz' as const;\n/** Uzbek language (Latin script) as used in Uzbekistan */\nexport const UZBEK_LATIN_UZBEKISTAN = 'uz-UZ' as const;\n/** Vietnamese language */\nexport const VIETNAMESE = 'vi' as const;\n/** Vietnamese language as used in Viet Nam */\nexport const VIETNAMESE_VIET_NAM = 'vi-VN' as const;\n/** Venda language */\nexport const VENDA = 've' as const;\n/** Venda language as used in South Africa */\nexport const VENDA_SOUTH_AFRICA = 've-ZA' as const;\n/** Xhosa language */\nexport const XHOSA = 'xh' as const;\n/** Xhosa language as used in South Africa */\nexport const XHOSA_SOUTH_AFRICA = 'xh-ZA' as const;\n/** Chinese language */\nexport const CHINESE = 'zh' as const;\n/** Chinese language (Simplified) */\nexport const CHINESE_SIMPLIFIED = 'zh-Hans' as const;\n/** Chinese language (Simplified, People's Republic of China) */\nexport const CHINESE_SIMPLIFIED_CHINA = 'zh-CN' as const;\n/** Chinese language as used in Hong Kong */\nexport const CHINESE_HONG_KONG = 'zh-HK' as const;\n/** Chinese language as used in Macau */\nexport const CHINESE_MACAU = 'zh-MO' as const;\n/** Chinese language as used in Singapore */\nexport const CHINESE_SINGAPORE = 'zh-SG' as const;\n/** Chinese language (Traditional script) */\nexport const CHINESE_TRADITIONAL = 'zh-Hant' as const;\n/** Zulu language */\nexport const ZULU = 'zu' as const;\n/** Zulu language as used in South Africa */\nexport const ZULU_SOUTH_AFRICA = 'zu-ZA' as const;\n/** Bengali / Bangla */\nexport const BENGALI = 'bn' as const;\n/** Bengali / Bangla as used in Bangladesh */\nexport const BENGALI_BANGLADESH = 'bn-BD' as const;\n/** Bengali / Bangla as used in India */\nexport const BENGALI_INDIA = 'bn-IN' as const;\n/** Bengali / Bangla as used in Myanmar */\nexport const BENGALI_MYANMAR = 'bn-MM' as const;\n/** Burmese language */\nexport const BURMESE = 'my' as const;\n/** Burmese language as used in Myanmar */\nexport const BURMESE_MYANMAR = 'my-MM' as const;\n/** Khmer language */\nexport const KHMER = 'km' as const;\n/** Khmer language as used in Cambodia */\nexport const KHMER_CAMBODIA = 'km-KH' as const;\n/** Lao language */\nexport const LAO = 'lo' as const;\n/** Lao language as used in Laos */\nexport const LAO_LAOS = 'lo-LA' as const;\n/** Yoruba language */\nexport const YORUBA = 'yo' as const;\n/** Yoruba language as used in Nigeria */\nexport const YORUBA_NIGERIA = 'yo-NG' as const;\n/** Yiddish language */\nexport const YIDDISH = 'yi' as const;\n/** Yiddish language as used in worldwide Jewish communities */\nexport const YIDDISH_WORLD = 'yi-001' as const;\n/** Amharic language */\nexport const AMHARIC = 'am' as const;\n/** Amharic language as used in Ethiopia */\nexport const AMHARIC_ETHIOPIA = 'am-ET' as const;\n/** Nepali language */\nexport const NEPALI = 'ne' as const;\n/** Nepali language as used in Nepal */\nexport const NEPALI_NEPAL = 'ne-NP' as const;\n/** Sinhala language */\nexport const SINHALA = 'si' as const;\n/** Sinhala language as used in Sri Lanka */\nexport const SINHALA_SRI_LANKA = 'si-LK' as const;\n/** Serbian language (Cyrillic script) */\nexport const SERBIAN_CYRILLIC = 'sr-Cyrl' as const;\n/** Serbian language (Cyrillic script) as used in Serbia */\nexport const SERBIAN_CYRILLIC_SERBIA = 'sr-RS' as const;\n/** Serbian language (Cyrillic script) as used in Bosnia and Herzegovina */\nexport const SERBIAN_CYRILLIC_BOSNIA_AND_HERZEGOVINA = 'sr-BA' as const;\n/** English language as used in India */\nexport const ENGLISH_INDIA = 'en-IN' as const;\n/** English language as used in Singapore */\nexport const ENGLISH_SINGAPORE = 'en-SG' as const;\n/** English language as used in Hong Kong */\nexport const ENGLISH_HONG_KONG = 'en-HK' as const;\n/** English language as used in Nigeria */\nexport const ENGLISH_NIGERIA = 'en-NG' as const;\n/** English language as used in Pakistan */\nexport const ENGLISH_PAKISTAN = 'en-PK' as const;\n/** English language as used in Malaysia */\nexport const ENGLISH_MALAYSIA = 'en-MY' as const;\n/** English language as used in Botswana */\nexport const ENGLISH_BOTSWANA = 'en-BW' as const;\n/** English language as used in Kenya */\nexport const ENGLISH_KENYA = 'en-KE' as const;\n/** English language as used in Tanzania */\nexport const ENGLISH_TANZANIA = 'en-TZ' as const;\n/** English language as used in Ghana */\nexport const ENGLISH_GHANA = 'en-GH' as const;\n/** English language as used in Uganda */\nexport const ENGLISH_UGANDA = 'en-UG' as const;\n/** Spanish language as used in Cuba */\nexport const SPANISH_CUBA = 'es-CU' as const;\n/** Spanish language as used in United States */\nexport const SPANISH_UNITED_STATES = 'es-US' as const;\n\n/** Portuguese language as used in Guinea-Bissau */\nexport const PORTUGUESE_GUINEA_BISSAU = 'pt-GW' as const;\n/** Portuguese language as used in Mozambique */\nexport const PORTUGUESE_MOZAMBIQUE = 'pt-MZ' as const;\n/** Portuguese language as used in São Tomé and Príncipe */\nexport const PORTUGUESE_SAO_TOME_AND_PRINCIPE = 'pt-ST' as const;\n/** Portuguese language as used in Cape Verde */\nexport const PORTUGUESE_CAPE_VERDE = 'pt-CV' as const;\n/** Portuguese language as used in Timor-Leste */\nexport const PORTUGUESE_TIMOR_LESTE = 'pt-TL' as const;\n/** Portuguese language as used in Macau */\nexport const PORTUGUESE_MACAU = 'pt-MO' as const;\n/** Chinese language as used in Taiwan */\nexport const CHINESE_TAIWAN = 'zh-TW' as const;\n/** Arabic language as used in Mauritania */\nexport const ARABIC_MAURITANIA = 'ar-MR' as const;\n/** Arabic language as used in Palestinian Territories */\nexport const ARABIC_PALESTINE = 'ar-PS' as const;\n/** Arabic language as used in Sudan */\nexport const ARABIC_SUDAN = 'ar-SD' as const;\n/** Arabic language as used in Djibouti */\nexport const ARABIC_DJIBOUTI = 'ar-DJ' as const;\n/** Arabic language as used in Somalia */\nexport const ARABIC_SOMALIA = 'ar-SO' as const;\n/** Arabic language as used in Chad */\nexport const ARABIC_CHAD = 'ar-TD' as const;\n/** Arabic language as used in Comoros */\nexport const ARABIC_COMOROS = 'ar-KM' as const;\n\nexport const ALL_LOCALES = {\n AFRIKAANS,\n AFRIKAANS_SOUTH_AFRICA,\n ARABIC,\n ARABIC_UNITED_ARAB_EMIRATES,\n ARABIC_BAHRAIN,\n ARABIC_ALGERIA,\n ARABIC_EGYPT,\n ARABIC_IRAQ,\n ARABIC_JORDAN,\n ARABIC_KUWAIT,\n ARABIC_LEBANON,\n ARABIC_LIBYA,\n ARABIC_MOROCCO,\n ARABIC_OMAN,\n ARABIC_QATAR,\n ARABIC_SAUDI_ARABIA,\n ARABIC_SYRIA,\n ARABIC_TUNISIA,\n ARABIC_YEMEN,\n AZERI_LATIN,\n AZERI_LATIN_AZERBAIJAN,\n BELARUSIAN,\n BELARUSIAN_BELARUS,\n BULGARIAN,\n BULGARIAN_BULGARIA,\n BOSNIAN,\n BOSNIAN_BOSNIA_AND_HERZEGOVINA,\n CATALAN,\n CATALAN_SPAIN,\n CZECH,\n CZECH_CZECH_REPUBLIC,\n WELSH,\n WELSH_UNITED_KINGDOM,\n DANISH,\n DANISH_DENMARK,\n GERMAN,\n GERMAN_AUSTRIA,\n GERMAN_SWITZERLAND,\n GERMAN_GERMANY,\n GERMAN_LIECHTENSTEIN,\n GERMAN_LUXEMBOURG,\n DIVEHI,\n DIVEHI_MALDIVES,\n GREEK,\n GREEK_GREECE,\n ENGLISH,\n ENGLISH_AUSTRALIA,\n ENGLISH_BELIZE,\n ENGLISH_CANADA,\n ENGLISH_CARIBBEAN,\n ENGLISH_UNITED_KINGDOM,\n ENGLISH_IRELAND,\n ENGLISH_JAMAICA,\n ENGLISH_NEW_ZEALAND,\n ENGLISH_PHILIPPINES,\n ENGLISH_TRINIDAD_AND_TOBAGO,\n ENGLISH_UNITED_STATES,\n ENGLISH_SOUTH_AFRICA,\n ENGLISH_ZIMBABWE,\n ESPERANTO,\n SPANISH,\n SPANISH_ARGENTINA,\n SPANISH_BOLIVIA,\n SPANISH_CHILE,\n SPANISH_COLOMBIA,\n SPANISH_COSTA_RICA,\n SPANISH_DOMINICAN_REPUBLIC,\n SPANISH_ECUADOR,\n SPANISH_SPAIN,\n SPANISH_GUATEMALA,\n SPANISH_HONDURAS,\n SPANISH_MEXICO,\n SPANISH_NICARAGUA,\n SPANISH_PANAMA,\n SPANISH_PERU,\n SPANISH_PUERTO_RICO,\n SPANISH_PARAGUAY,\n SPANISH_EL_SALVADOR,\n SPANISH_URUGUAY,\n SPANISH_VENEZUELA,\n ESTONIAN,\n ESTONIAN_ESTONIA,\n BASQUE,\n BASQUE_SPAIN,\n FARSI,\n FARSI_IRAN,\n FINNISH,\n FINNISH_FINLAND,\n FAROESE,\n FAROESE_FAROE_ISLANDS,\n FRENCH,\n FRENCH_BELGIUM,\n FRENCH_CANADA,\n FRENCH_SWITZERLAND,\n FRENCH_FRANCE,\n FRENCH_LUXEMBOURG,\n FRENCH_PRINCIPALITY_OF_MONACO,\n IRISH,\n IRISH_IRELAND,\n SCOTTISH_GAELIC,\n SCOTTISH_GAELIC_UNITED_KINGDOM,\n GALICIAN,\n GALICIAN_SPAIN,\n GUJARATI,\n GUJARATI_INDIA,\n HEBREW,\n HEBREW_ISRAEL,\n HINDI,\n HINDI_INDIA,\n CROATIAN,\n CROATIAN_BOSNIA_AND_HERZEGOVINA,\n CROATIAN_CROATIA,\n HUNGARIAN,\n HUNGARIAN_HUNGARY,\n ARMENIAN,\n ARMENIAN_ARMENIA,\n INDONESIAN,\n INDONESIAN_INDONESIA,\n ICELANDIC,\n ICELANDIC_ICELAND,\n ITALIAN,\n ITALIAN_SWITZERLAND,\n ITALIAN_ITALY,\n JAPANESE,\n JAPANESE_JAPAN,\n GEORGIAN,\n GEORGIAN_GEORGIA,\n KAZAKH,\n KAZAKH_KAZAKHSTAN,\n KANNADA,\n KANNADA_INDIA,\n KOREAN,\n KOREAN_KOREA,\n KONKANI,\n KONKANI_INDIA,\n KURDISH,\n KURDISH_TURKEY,\n KYRGYZ,\n KYRGYZ_KYRGYZSTAN,\n LITHUANIAN,\n LITHUANIAN_LITHUANIA,\n LATVIAN,\n LATVIAN_LATVIA,\n MAORI,\n MAORI_NEW_ZEALAND,\n FYRO_MACEDONIAN,\n FYRO_MACEDONIAN_MACEDONIA,\n MONGOLIAN,\n MONGOLIAN_MONGOLIA,\n MARATHI,\n MARATHI_INDIA,\n MALAY,\n MALAY_BRUNEI_DARUSSALAM,\n MALAY_MALAYSIA,\n MALTESE,\n MALTESE_MALTA,\n MALAYALAM,\n MALAYALAM_INDIA,\n NORWEGIAN,\n NORWEGIAN_BOKMAL,\n NORWEGIAN_BOKMAL_NORWAY,\n DUTCH,\n DUTCH_BELGIUM,\n DUTCH_NETHERLANDS,\n NORWEGIAN_NYNORSK,\n NORWEGIAN_NYNORSK_NORWAY,\n NORTHERN_SOTHO,\n NORTHERN_SOTHO_SOUTH_AFRICA,\n PUNJABI,\n PUNJABI_INDIA,\n POLISH,\n POLISH_POLAND,\n PASHTO,\n PASHTO_AFGHANISTAN,\n PORTUGUESE,\n PORTUGUESE_BRAZIL,\n PORTUGUESE_PORTUGAL,\n QUECHUA,\n QUECHUA_BOLIVIA,\n QUECHUA_ECUADOR,\n QUECHUA_PERU,\n ROMANIAN,\n ROMANIAN_ROMANIA,\n ROMANIAN_MOLDOVA,\n ROMANSH,\n ROMANSH_SWITZERLAND,\n RUSSIAN,\n RUSSIAN_RUSSIA,\n RUSSIAN_MOLDOVA,\n SANSKRIT,\n SANSKRIT_INDIA,\n SAMI_NORTHERN,\n SAMI_NORTHERN_FINLAND,\n SAMI_NORTHERN_NORWAY,\n SAMI_NORTHERN_SWEDEN,\n UPPER_SORBIAN,\n UPPER_SORBIAN_GERMANY,\n LOWER_SORBIAN,\n LOWER_SORBIAN_GERMANY,\n SLOVAK,\n SLOVAK_SLOVAKIA,\n SLOVENIAN,\n SLOVENIAN_SLOVENIA,\n ALBANIAN,\n ALBANIAN_ALBANIA,\n SERBIAN_LATIN,\n SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA,\n SERBIAN_LATIN_SERBIA_AND_MONTENEGRO,\n SWEDISH,\n SWEDISH_FINLAND,\n SWEDISH_SWEDEN,\n SWAHILI,\n SWAHILI_KENYA,\n SYRIAC,\n SYRIAC_SYRIA,\n TAMIL,\n TAMIL_INDIA,\n TELUGU,\n TELUGU_INDIA,\n THAI,\n THAI_THAILAND,\n TAGALOG,\n TAGALOG_PHILIPPINES,\n TSWANA,\n TSWANA_SOUTH_AFRICA,\n TURKISH,\n TURKISH_TURKEY,\n TATAR,\n TATAR_RUSSIA,\n TSOGA,\n UKRAINIAN,\n UKRAINIAN_UKRAINE,\n URDU,\n URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN,\n UZBEK_LATIN,\n UZBEK_LATIN_UZBEKISTAN,\n VIETNAMESE,\n VIETNAMESE_VIET_NAM,\n VENDA,\n VENDA_SOUTH_AFRICA,\n XHOSA,\n XHOSA_SOUTH_AFRICA,\n CHINESE,\n CHINESE_SIMPLIFIED,\n CHINESE_SIMPLIFIED_CHINA,\n CHINESE_HONG_KONG,\n CHINESE_MACAU,\n CHINESE_SINGAPORE,\n CHINESE_TRADITIONAL,\n ZULU,\n ZULU_SOUTH_AFRICA,\n BENGALI,\n BENGALI_BANGLADESH,\n BENGALI_INDIA,\n BENGALI_MYANMAR,\n BURMESE,\n BURMESE_MYANMAR,\n KHMER,\n KHMER_CAMBODIA,\n LAO,\n LAO_LAOS,\n YORUBA,\n YORUBA_NIGERIA,\n YIDDISH,\n YIDDISH_WORLD,\n AMHARIC,\n AMHARIC_ETHIOPIA,\n NEPALI,\n NEPALI_NEPAL,\n SINHALA,\n SINHALA_SRI_LANKA,\n SERBIAN_CYRILLIC,\n SERBIAN_CYRILLIC_SERBIA,\n SERBIAN_CYRILLIC_BOSNIA_AND_HERZEGOVINA,\n ENGLISH_INDIA,\n ENGLISH_SINGAPORE,\n ENGLISH_HONG_KONG,\n ENGLISH_NIGERIA,\n ENGLISH_PAKISTAN,\n ENGLISH_MALAYSIA,\n ENGLISH_BOTSWANA,\n ENGLISH_KENYA,\n ENGLISH_TANZANIA,\n ENGLISH_GHANA,\n ENGLISH_UGANDA,\n SPANISH_CUBA,\n SPANISH_UNITED_STATES,\n PORTUGUESE_GUINEA_BISSAU,\n PORTUGUESE_MOZAMBIQUE,\n PORTUGUESE_SAO_TOME_AND_PRINCIPE,\n PORTUGUESE_CAPE_VERDE,\n PORTUGUESE_TIMOR_LESTE,\n PORTUGUESE_MACAU,\n CHINESE_TAIWAN,\n ARABIC_MAURITANIA,\n ARABIC_PALESTINE,\n ARABIC_SUDAN,\n ARABIC_DJIBOUTI,\n ARABIC_SOMALIA,\n ARABIC_CHAD,\n ARABIC_COMOROS,\n} as const;\n\nex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A;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD"}
1
+ {"version":3,"file":"locales.cjs","names":[],"sources":["../../src/locales.ts"],"sourcesContent":["/** Afrikaans language */\nexport const AFRIKAANS = 'af' as const;\n/** Afrikaans language as used in South Africa */\nexport const AFRIKAANS_SOUTH_AFRICA = 'af-ZA' as const;\n/** Arabic language */\nexport const ARABIC = 'ar' as const;\n/** Arabic language as used in the United Arab Emirates */\nexport const ARABIC_UNITED_ARAB_EMIRATES = 'ar-AE' as const;\n/** Arabic language as used in Bahrain */\nexport const ARABIC_BAHRAIN = 'ar-BH' as const;\n/** Arabic language as used in Algeria */\nexport const ARABIC_ALGERIA = 'ar-DZ' as const;\n/** Arabic language as used in Egypt */\nexport const ARABIC_EGYPT = 'ar-EG' as const;\n/** Arabic language as used in Iraq */\nexport const ARABIC_IRAQ = 'ar-IQ' as const;\n/** Arabic language as used in Jordan */\nexport const ARABIC_JORDAN = 'ar-JO' as const;\n/** Arabic language as used in Kuwait */\nexport const ARABIC_KUWAIT = 'ar-KW' as const;\n/** Arabic language as used in Lebanon */\nexport const ARABIC_LEBANON = 'ar-LB' as const;\n/** Arabic language as used in Libya */\nexport const ARABIC_LIBYA = 'ar-LY' as const;\n/** Arabic language as used in Morocco */\nexport const ARABIC_MOROCCO = 'ar-MA' as const;\n/** Arabic language as used in Oman */\nexport const ARABIC_OMAN = 'ar-OM' as const;\n/** Arabic language as used in Qatar */\nexport const ARABIC_QATAR = 'ar-QA' as const;\n/** Arabic language as used in Saudi Arabia */\nexport const ARABIC_SAUDI_ARABIA = 'ar-SA' as const;\n/** Arabic language as used in Syria */\nexport const ARABIC_SYRIA = 'ar-SY' as const;\n/** Arabic language as used in Tunisia */\nexport const ARABIC_TUNISIA = 'ar-TN' as const;\n/** Arabic language as used in Yemen */\nexport const ARABIC_YEMEN = 'ar-YE' as const;\n/** Azeri language (Latin script) */\nexport const AZERI_LATIN = 'az' as const;\n/** Azeri language (Latin script) as used in Azerbaijan */\nexport const AZERI_LATIN_AZERBAIJAN = 'az-AZ' as const;\n/** Belarusian language */\nexport const BELARUSIAN = 'be' as const;\n/** Belarusian language as used in Belarus */\nexport const BELARUSIAN_BELARUS = 'be-BY' as const;\n/** Bulgarian language */\nexport const BULGARIAN = 'bg' as const;\n/** Bulgarian language as used in Bulgaria */\nexport const BULGARIAN_BULGARIA = 'bg-BG' as const;\n/** Bosnian */\nexport const BOSNIAN = 'bs' as const;\n/** Bosnian language as used in Bosnia and Herzegovina */\nexport const BOSNIAN_BOSNIA_AND_HERZEGOVINA = 'bs-BA' as const;\n/** Catalan language */\nexport const CATALAN = 'ca' as const;\n/** Catalan language as used in Spain */\nexport const CATALAN_SPAIN = 'ca-ES' as const;\n/** Czech language */\nexport const CZECH = 'cs' as const;\n/** Czech language as used in Czech Republic */\nexport const CZECH_CZECH_REPUBLIC = 'cs-CZ' as const;\n/** Welsh language */\nexport const WELSH = 'cy' as const;\n/** Welsh language as used in the United Kingdom */\nexport const WELSH_UNITED_KINGDOM = 'cy-GB' as const;\n/** Danish language */\nexport const DANISH = 'da' as const;\n/** Danish language as used in Denmark */\nexport const DANISH_DENMARK = 'da-DK' as const;\n/** German language */\nexport const GERMAN = 'de' as const;\n/** German language as used in Austria */\nexport const GERMAN_AUSTRIA = 'de-AT' as const;\n/** German language as used in Switzerland */\nexport const GERMAN_SWITZERLAND = 'de-CH' as const;\n/** German language as used in Germany */\nexport const GERMAN_GERMANY = 'de-DE' as const;\n/** German language as used in Liechtenstein */\nexport const GERMAN_LIECHTENSTEIN = 'de-LI' as const;\n/** German language as used in Luxembourg */\nexport const GERMAN_LUXEMBOURG = 'de-LU' as const;\n/** Divehi language */\nexport const DIVEHI = 'dv' as const;\n/** Divehi language as used in Maldives */\nexport const DIVEHI_MALDIVES = 'dv-MV' as const;\n/** Greek language */\nexport const GREEK = 'el' as const;\n/** Greek language as used in Greece */\nexport const GREEK_GREECE = 'el-GR' as const;\n/** English language */\nexport const ENGLISH = 'en' as const;\n/** English language as used in Australia */\nexport const ENGLISH_AUSTRALIA = 'en-AU' as const;\n/** English language as used in Belize */\nexport const ENGLISH_BELIZE = 'en-BZ' as const;\n/** English language as used in Canada */\nexport const ENGLISH_CANADA = 'en-CA' as const;\n/** English language as used in Caribbean */\nexport const ENGLISH_CARIBBEAN = 'en-CB' as const;\n/** English language as used in the United Kingdom */\nexport const ENGLISH_UNITED_KINGDOM = 'en-GB' as const;\n/** English language as used in Ireland */\nexport const ENGLISH_IRELAND = 'en-IE' as const;\n/** English language as used in Jamaica */\nexport const ENGLISH_JAMAICA = 'en-JM' as const;\n/** English language as used in New Zealand */\nexport const ENGLISH_NEW_ZEALAND = 'en-NZ' as const;\n/** English language as used in Philippines */\nexport const ENGLISH_PHILIPPINES = 'en-PH' as const;\n/** English language as used in Trinidad and Tobago */\nexport const ENGLISH_TRINIDAD_AND_TOBAGO = 'en-TT' as const;\n/** English language as used in the United States */\nexport const ENGLISH_UNITED_STATES = 'en-US' as const;\n/** English language as used in South Africa */\nexport const ENGLISH_SOUTH_AFRICA = 'en-ZA' as const;\n/** English language as used in Zimbabwe */\nexport const ENGLISH_ZIMBABWE = 'en-ZW' as const;\n/** Esperanto language */\nexport const ESPERANTO = 'eo' as const;\n/** Spanish language */\nexport const SPANISH = 'es' as const;\n/** Spanish language as used in Argentina */\nexport const SPANISH_ARGENTINA = 'es-AR' as const;\n/** Spanish language as used in Bolivia */\nexport const SPANISH_BOLIVIA = 'es-BO' as const;\n/** Spanish language as used in Chile */\nexport const SPANISH_CHILE = 'es-CL' as const;\n/** Spanish language as used in Colombia */\nexport const SPANISH_COLOMBIA = 'es-CO' as const;\n/** Spanish language as used in Costa Rica */\nexport const SPANISH_COSTA_RICA = 'es-CR' as const;\n/** Spanish language as used in Dominican Republic */\nexport const SPANISH_DOMINICAN_REPUBLIC = 'es-DO' as const;\n/** Spanish language as used in Ecuador */\nexport const SPANISH_ECUADOR = 'es-EC' as const;\n/** Spanish language as used in Spain */\nexport const SPANISH_SPAIN = 'es-ES' as const;\n/** Spanish language as used in Guatemala */\nexport const SPANISH_GUATEMALA = 'es-GT' as const;\n/** Spanish language as used in Honduras */\nexport const SPANISH_HONDURAS = 'es-HN' as const;\n/** Spanish language as used in Mexico */\nexport const SPANISH_MEXICO = 'es-MX' as const;\n/** Spanish language as used in Nicaragua */\nexport const SPANISH_NICARAGUA = 'es-NI' as const;\n/** Spanish language as used in Panama */\nexport const SPANISH_PANAMA = 'es-PA' as const;\n/** Spanish language as used in Peru */\nexport const SPANISH_PERU = 'es-PE' as const;\n/** Spanish language as used in Puerto Rico */\nexport const SPANISH_PUERTO_RICO = 'es-PR' as const;\n/** Spanish language as used in Paraguay */\nexport const SPANISH_PARAGUAY = 'es-PY' as const;\n/** Spanish language as used in El Salvador */\nexport const SPANISH_EL_SALVADOR = 'es-SV' as const;\n/** Spanish language as used in Uruguay */\nexport const SPANISH_URUGUAY = 'es-UY' as const;\n/** Spanish language as used in Venezuela */\nexport const SPANISH_VENEZUELA = 'es-VE' as const;\n/** Estonian language */\nexport const ESTONIAN = 'et' as const;\n/** Estonian language as used in Estonia */\nexport const ESTONIAN_ESTONIA = 'et-EE' as const;\n/** Basque language */\nexport const BASQUE = 'eu' as const;\n/** Basque language as used in Spain */\nexport const BASQUE_SPAIN = 'eu-ES' as const;\n/** Farsi language */\nexport const FARSI = 'fa' as const;\n/** Farsi language as used in Iran */\nexport const FARSI_IRAN = 'fa-IR' as const;\n/** Finnish language */\nexport const FINNISH = 'fi' as const;\n/** Finnish language as used in Finland */\nexport const FINNISH_FINLAND = 'fi-FI' as const;\n/** Faroese language */\nexport const FAROESE = 'fo' as const;\n/** Faroese language as used in Faroe Islands */\nexport const FAROESE_FAROE_ISLANDS = 'fo-FO' as const;\n/** French language */\nexport const FRENCH = 'fr' as const;\n/** French language as used in Belgium */\nexport const FRENCH_BELGIUM = 'fr-BE' as const;\n/** French language as used in Canada */\nexport const FRENCH_CANADA = 'fr-CA' as const;\n/** French language as used in Switzerland */\nexport const FRENCH_SWITZERLAND = 'fr-CH' as const;\n/** French language as used in France */\nexport const FRENCH_FRANCE = 'fr-FR' as const;\n/** French language as used in Luxembourg */\nexport const FRENCH_LUXEMBOURG = 'fr-LU' as const;\n/** French language as used in the Principality of Monaco */\nexport const FRENCH_PRINCIPALITY_OF_MONACO = 'fr-MC' as const;\n/** Irish language */\nexport const IRISH = 'ga' as const;\n/** Irish language as used in Ireland */\nexport const IRISH_IRELAND = 'ga-IE' as const;\n/** Scottish Gaelic language */\nexport const SCOTTISH_GAELIC = 'gd' as const;\n/** Scottish Gaelic language as used in United Kingdom */\nexport const SCOTTISH_GAELIC_UNITED_KINGDOM = 'gd-GB' as const;\n/** Galician language */\nexport const GALICIAN = 'gl' as const;\n/** Galician language as used in Spain */\nexport const GALICIAN_SPAIN = 'gl-ES' as const;\n/** Gujarati language */\nexport const GUJARATI = 'gu' as const;\n/** Gujarati language as used in India */\nexport const GUJARATI_INDIA = 'gu-IN' as const;\n/** Hebrew language */\nexport const HEBREW = 'he' as const;\n/** Hebrew language as used in Israel */\nexport const HEBREW_ISRAEL = 'he-IL' as const;\n/** Hindi language */\nexport const HINDI = 'hi' as const;\n/** Hindi language as used in India */\nexport const HINDI_INDIA = 'hi-IN' as const;\n/** Croatian language */\nexport const CROATIAN = 'hr' as const;\n/** Croatian language as used in Bosnia and Herzegovina */\nexport const CROATIAN_BOSNIA_AND_HERZEGOVINA = 'hr-BA' as const;\n/** Croatian language as used in Croatia */\nexport const CROATIAN_CROATIA = 'hr-HR' as const;\n/** Hungarian language */\nexport const HUNGARIAN = 'hu' as const;\n/** Hungarian language as used in Hungary */\nexport const HUNGARIAN_HUNGARY = 'hu-HU' as const;\n/** Armenian language */\nexport const ARMENIAN = 'hy' as const;\n/** Armenian language as used in Armenia */\nexport const ARMENIAN_ARMENIA = 'hy-AM' as const;\n/** Indonesian language */\nexport const INDONESIAN = 'id' as const;\n/** Indonesian language as used in Indonesia */\nexport const INDONESIAN_INDONESIA = 'id-ID' as const;\n/** Icelandic language */\nexport const ICELANDIC = 'is' as const;\n/** Icelandic language as used in Iceland */\nexport const ICELANDIC_ICELAND = 'is-IS' as const;\n/** Italian language */\nexport const ITALIAN = 'it' as const;\n/** Italian language as used in Switzerland */\nexport const ITALIAN_SWITZERLAND = 'it-CH' as const;\n/** Italian language as used in Italy */\nexport const ITALIAN_ITALY = 'it-IT' as const;\n/** Japanese language */\nexport const JAPANESE = 'ja' as const;\n/** Japanese language as used in Japan */\nexport const JAPANESE_JAPAN = 'ja-JP' as const;\n/** Georgian language */\nexport const GEORGIAN = 'ka' as const;\n/** Georgian language as used in Georgia */\nexport const GEORGIAN_GEORGIA = 'ka-GE' as const;\n/** Kazakh language */\nexport const KAZAKH = 'kk' as const;\n/** Kazakh language as used in Kazakhstan */\nexport const KAZAKH_KAZAKHSTAN = 'kk-KZ' as const;\n/** Kannada language */\nexport const KANNADA = 'kn' as const;\n/** Kannada language as used in India */\nexport const KANNADA_INDIA = 'kn-IN' as const;\n/** Korean language */\nexport const KOREAN = 'ko' as const;\n/** Korean language as used in Korea */\nexport const KOREAN_KOREA = 'ko-KR' as const;\n/** Konkani language */\nexport const KONKANI = 'kok' as const;\n/** Konkani language as used in India */\nexport const KONKANI_INDIA = 'kok-IN' as const;\n/** Kurdish language */\nexport const KURDISH = 'ku' as const;\n/** Kurdish language as used in Turkey */\nexport const KURDISH_TURKEY = 'ku-TR' as const;\n/** Kyrgyz language */\nexport const KYRGYZ = 'ky' as const;\n/** Kyrgyz language as used in Kyrgyzstan */\nexport const KYRGYZ_KYRGYZSTAN = 'ky-KG' as const;\n/** Lithuanian language */\nexport const LITHUANIAN = 'lt' as const;\n/** Lithuanian language as used in Lithuania */\nexport const LITHUANIAN_LITHUANIA = 'lt-LT' as const;\n/** Latvian language */\nexport const LATVIAN = 'lv' as const;\n/** Latvian language as used in Latvia */\nexport const LATVIAN_LATVIA = 'lv-LV' as const;\n/** Maori language */\nexport const MAORI = 'mi' as const;\n/** Maori language as used in New Zealand */\nexport const MAORI_NEW_ZEALAND = 'mi-NZ' as const;\n/** Macedonian language (Former Yugoslav Republic of Macedonia) */\nexport const FYRO_MACEDONIAN = 'mk' as const;\n/** Macedonian language as used in Macedonia */\nexport const FYRO_MACEDONIAN_MACEDONIA = 'mk-MK' as const;\n/** Mongolian language */\nexport const MONGOLIAN = 'mn' as const;\n/** Mongolian language as used in Mongolia */\nexport const MONGOLIAN_MONGOLIA = 'mn-MN' as const;\n/** Marathi language */\nexport const MARATHI = 'mr' as const;\n/** Marathi language as used in India */\nexport const MARATHI_INDIA = 'mr-IN' as const;\n/** Malay language */\nexport const MALAY = 'ms' as const;\n/** Malay language as used in Brunei Darussalam */\nexport const MALAY_BRUNEI_DARUSSALAM = 'ms-BN' as const;\n/** Malay language as used in Malaysia */\nexport const MALAY_MALAYSIA = 'ms-MY' as const;\n/** Maltese language */\nexport const MALTESE = 'mt' as const;\n/** Maltese language as used in Malta */\nexport const MALTESE_MALTA = 'mt-MT' as const;\n/** Malayalam language */\nexport const MALAYALAM = 'ml' as const;\n/** Malayalam language as used in India */\nexport const MALAYALAM_INDIA = 'ml-IN' as const;\n/** Norwegian language */\nexport const NORWEGIAN = 'no' as const;\n/** Norwegian (Bokmål) language */\nexport const NORWEGIAN_BOKMAL = 'nb' as const;\n/** Norwegian (Bokmål) language as used in Norway */\nexport const NORWEGIAN_BOKMAL_NORWAY = 'nb-NO' as const;\n/** Dutch language */\nexport const DUTCH = 'nl' as const;\n/** Dutch language as used in Belgium */\nexport const DUTCH_BELGIUM = 'nl-BE' as const;\n/** Dutch language as used in the Netherlands */\nexport const DUTCH_NETHERLANDS = 'nl-NL' as const;\n/** Norwegian (Nynorsk) language */\nexport const NORWEGIAN_NYNORSK = 'nn' as const;\n/** Norwegian (Nynorsk) language as used in Norway */\nexport const NORWEGIAN_NYNORSK_NORWAY = 'nn-NO' as const;\n/** Northern Sotho language */\nexport const NORTHERN_SOTHO = 'ns' as const;\n/** Northern Sotho language as used in South Africa */\nexport const NORTHERN_SOTHO_SOUTH_AFRICA = 'ns-ZA' as const;\n/** Punjabi language */\nexport const PUNJABI = 'pa' as const;\n/** Punjabi language as used in India */\nexport const PUNJABI_INDIA = 'pa-IN' as const;\n/** Polish language */\nexport const POLISH = 'pl' as const;\n/** Polish language as used in Poland */\nexport const POLISH_POLAND = 'pl-PL' as const;\n/** Pashto language */\nexport const PASHTO = 'ps' as const;\n/** Pashto language as used in Afghanistan */\nexport const PASHTO_AFGHANISTAN = 'ps-AR' as const;\n/** Portuguese language */\nexport const PORTUGUESE = 'pt' as const;\n/** Portuguese language as used in Brazil */\nexport const PORTUGUESE_BRAZIL = 'pt-BR' as const;\n/** Portuguese language as used in Portugal */\nexport const PORTUGUESE_PORTUGAL = 'pt-PT' as const;\n/** Quechua language */\nexport const QUECHUA = 'qu' as const;\n/** Quechua language as used in Bolivia */\nexport const QUECHUA_BOLIVIA = 'qu-BO' as const;\n/** Quechua language as used in Ecuador */\nexport const QUECHUA_ECUADOR = 'qu-EC' as const;\n/** Quechua language as used in Peru */\nexport const QUECHUA_PERU = 'qu-PE' as const;\n/** Romanian language */\nexport const ROMANIAN = 'ro' as const;\n/** Romanian language as used in Romania */\nexport const ROMANIAN_ROMANIA = 'ro-RO' as const;\n/** Romanian language as used in Moldova */\nexport const ROMANIAN_MOLDOVA = 'ro-MD' as const;\n/** Romansh language */\nexport const ROMANSH = 'rm' as const;\n/** Romansh language as used in Switzerland */\nexport const ROMANSH_SWITZERLAND = 'rm-CH' as const;\n/** Russian language */\nexport const RUSSIAN = 'ru' as const;\n/** Russian language as used in Russia */\nexport const RUSSIAN_RUSSIA = 'ru-RU' as const;\n/** Russian language as used in Moldova */\nexport const RUSSIAN_MOLDOVA = 'ru-MD' as const;\n/** Sanskrit language */\nexport const SANSKRIT = 'sa' as const;\n/** Sanskrit language as used in India */\nexport const SANSKRIT_INDIA = 'sa-IN' as const;\n/** Northern Sami language */\nexport const SAMI_NORTHERN = 'se' as const;\n/** Northern Sami language as used in Finland */\nexport const SAMI_NORTHERN_FINLAND = 'se-FI' as const;\n/** Northern Sami language as used in Norway */\nexport const SAMI_NORTHERN_NORWAY = 'se-NO' as const;\n/** Northern Sami language as used in Sweden */\nexport const SAMI_NORTHERN_SWEDEN = 'se-SE' as const;\n/** Upper Sorbian language */\nexport const UPPER_SORBIAN = 'hsb' as const;\n/** Upper Sorbian language as used in Germany */\nexport const UPPER_SORBIAN_GERMANY = 'hsb-DE' as const;\n/** Lower Sorbian language */\nexport const LOWER_SORBIAN = 'dsb' as const;\n/** Lower Sorbian language as used in Germany */\nexport const LOWER_SORBIAN_GERMANY = 'dsb-DE' as const;\n/** Slovak language */\nexport const SLOVAK = 'sk' as const;\n/** Slovak language as used in Slovakia */\nexport const SLOVAK_SLOVAKIA = 'sk-SK' as const;\n/** Slovenian language */\nexport const SLOVENIAN = 'sl' as const;\n/** Slovenian language as used in Slovenia */\nexport const SLOVENIAN_SLOVENIA = 'sl-SI' as const;\n/** Albanian language */\nexport const ALBANIAN = 'sq' as const;\n/** Albanian language as used in Albania */\nexport const ALBANIAN_ALBANIA = 'sq-AL' as const;\n/** Servian language (Latin script) */\nexport const SERBIAN_LATIN = 'sr' as const;\n/** Serbian language (Latin script) as used in Bosnia and Herzegovina */\nexport const SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA = 'sr-BA' as const;\n/** Serbian language (Latin script) as used in Serbia and Montenegro */\nexport const SERBIAN_LATIN_SERBIA_AND_MONTENEGRO = 'sr-SP' as const;\n/** Swedish language */\nexport const SWEDISH = 'sv' as const;\n/** Swedish language as used in Finland */\nexport const SWEDISH_FINLAND = 'sv-FI' as const;\n/** Swedish language as used in Sweden */\nexport const SWEDISH_SWEDEN = 'sv-SE' as const;\n/** Swahili language */\nexport const SWAHILI = 'sw' as const;\n/** Swahili language as used in Kenya */\nexport const SWAHILI_KENYA = 'sw-KE' as const;\n/** Syriac language */\nexport const SYRIAC = 'syr' as const;\n/** Syriac language as used in Syria */\nexport const SYRIAC_SYRIA = 'syr-SY' as const;\n/** Tamil language */\nexport const TAMIL = 'ta' as const;\n/** Tamil language as used in India */\nexport const TAMIL_INDIA = 'ta-IN' as const;\n/** Telugu language */\nexport const TELUGU = 'te' as const;\n/** Telugu language as used in India */\nexport const TELUGU_INDIA = 'te-IN' as const;\n/** Thai language */\nexport const THAI = 'th' as const;\n/** Thai language as used in Thailand */\nexport const THAI_THAILAND = 'th-TH' as const;\n/** Tagalog language */\nexport const TAGALOG = 'tl' as const;\n/** Tagalog language as used in Philippines */\nexport const TAGALOG_PHILIPPINES = 'tl-PH' as const;\n/** Tswana language */\nexport const TSWANA = 'tn' as const;\n/** Tswana language as used in South Africa */\nexport const TSWANA_SOUTH_AFRICA = 'tn-ZA' as const;\n/** Turkish language */\nexport const TURKISH = 'tr' as const;\n/** Turkish language as used in Turkey */\nexport const TURKISH_TURKEY = 'tr-TR' as const;\n/** Tatar language */\nexport const TATAR = 'tt' as const;\n/** Tatar language as used in Russia */\nexport const TATAR_RUSSIA = 'tt-RU' as const;\n/** Tsonga language */\nexport const TSOGA = 'ts' as const;\n/** Ukrainian language */\nexport const UKRAINIAN = 'uk' as const;\n/** Ukrainian language as used in Ukraine */\nexport const UKRAINIAN_UKRAINE = 'uk-UA' as const;\n/** Urdu language */\nexport const URDU = 'ur' as const;\n/** Urdu language as used in Islamic Republic of Pakistan */\nexport const URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN = 'ur-PK' as const;\n/** Uzbek language (Latin script) */\nexport const UZBEK_LATIN = 'uz' as const;\n/** Uzbek language (Latin script) as used in Uzbekistan */\nexport const UZBEK_LATIN_UZBEKISTAN = 'uz-UZ' as const;\n/** Vietnamese language */\nexport const VIETNAMESE = 'vi' as const;\n/** Vietnamese language as used in Viet Nam */\nexport const VIETNAMESE_VIET_NAM = 'vi-VN' as const;\n/** Venda language */\nexport const VENDA = 've' as const;\n/** Venda language as used in South Africa */\nexport const VENDA_SOUTH_AFRICA = 've-ZA' as const;\n/** Xhosa language */\nexport const XHOSA = 'xh' as const;\n/** Xhosa language as used in South Africa */\nexport const XHOSA_SOUTH_AFRICA = 'xh-ZA' as const;\n/** Chinese language */\nexport const CHINESE = 'zh' as const;\n/** Chinese language (Simplified) */\nexport const CHINESE_SIMPLIFIED = 'zh-Hans' as const;\n/** Chinese language (Simplified, People's Republic of China) */\nexport const CHINESE_SIMPLIFIED_CHINA = 'zh-CN' as const;\n/** Chinese language as used in Hong Kong */\nexport const CHINESE_HONG_KONG = 'zh-HK' as const;\n/** Chinese language as used in Macau */\nexport const CHINESE_MACAU = 'zh-MO' as const;\n/** Chinese language as used in Singapore */\nexport const CHINESE_SINGAPORE = 'zh-SG' as const;\n/** Chinese language (Traditional script) */\nexport const CHINESE_TRADITIONAL = 'zh-Hant' as const;\n/** Zulu language */\nexport const ZULU = 'zu' as const;\n/** Zulu language as used in South Africa */\nexport const ZULU_SOUTH_AFRICA = 'zu-ZA' as const;\n/** Bengali / Bangla */\nexport const BENGALI = 'bn' as const;\n/** Bengali / Bangla as used in Bangladesh */\nexport const BENGALI_BANGLADESH = 'bn-BD' as const;\n/** Bengali / Bangla as used in India */\nexport const BENGALI_INDIA = 'bn-IN' as const;\n/** Bengali / Bangla as used in Myanmar */\nexport const BENGALI_MYANMAR = 'bn-MM' as const;\n/** Burmese language */\nexport const BURMESE = 'my' as const;\n/** Burmese language as used in Myanmar */\nexport const BURMESE_MYANMAR = 'my-MM' as const;\n/** Khmer language */\nexport const KHMER = 'km' as const;\n/** Khmer language as used in Cambodia */\nexport const KHMER_CAMBODIA = 'km-KH' as const;\n/** Lao language */\nexport const LAO = 'lo' as const;\n/** Lao language as used in Laos */\nexport const LAO_LAOS = 'lo-LA' as const;\n/** Yoruba language */\nexport const YORUBA = 'yo' as const;\n/** Yoruba language as used in Nigeria */\nexport const YORUBA_NIGERIA = 'yo-NG' as const;\n/** Yiddish language */\nexport const YIDDISH = 'yi' as const;\n/** Yiddish language as used in worldwide Jewish communities */\nexport const YIDDISH_WORLD = 'yi-001' as const;\n/** Amharic language */\nexport const AMHARIC = 'am' as const;\n/** Amharic language as used in Ethiopia */\nexport const AMHARIC_ETHIOPIA = 'am-ET' as const;\n/** Nepali language */\nexport const NEPALI = 'ne' as const;\n/** Nepali language as used in Nepal */\nexport const NEPALI_NEPAL = 'ne-NP' as const;\n/** Sinhala language */\nexport const SINHALA = 'si' as const;\n/** Sinhala language as used in Sri Lanka */\nexport const SINHALA_SRI_LANKA = 'si-LK' as const;\n/** Serbian language (Cyrillic script) */\nexport const SERBIAN_CYRILLIC = 'sr-Cyrl' as const;\n/** Serbian language (Cyrillic script) as used in Serbia */\nexport const SERBIAN_CYRILLIC_SERBIA = 'sr-RS' as const;\n/** Serbian language (Cyrillic script) as used in Bosnia and Herzegovina */\nexport const SERBIAN_CYRILLIC_BOSNIA_AND_HERZEGOVINA = 'sr-BA' as const;\n/** English language as used in India */\nexport const ENGLISH_INDIA = 'en-IN' as const;\n/** English language as used in Singapore */\nexport const ENGLISH_SINGAPORE = 'en-SG' as const;\n/** English language as used in Hong Kong */\nexport const ENGLISH_HONG_KONG = 'en-HK' as const;\n/** English language as used in Nigeria */\nexport const ENGLISH_NIGERIA = 'en-NG' as const;\n/** English language as used in Pakistan */\nexport const ENGLISH_PAKISTAN = 'en-PK' as const;\n/** English language as used in Malaysia */\nexport const ENGLISH_MALAYSIA = 'en-MY' as const;\n/** English language as used in Botswana */\nexport const ENGLISH_BOTSWANA = 'en-BW' as const;\n/** English language as used in Kenya */\nexport const ENGLISH_KENYA = 'en-KE' as const;\n/** English language as used in Tanzania */\nexport const ENGLISH_TANZANIA = 'en-TZ' as const;\n/** English language as used in Ghana */\nexport const ENGLISH_GHANA = 'en-GH' as const;\n/** English language as used in Uganda */\nexport const ENGLISH_UGANDA = 'en-UG' as const;\n/** Spanish language as used in Cuba */\nexport const SPANISH_CUBA = 'es-CU' as const;\n/** Spanish language as used in United States */\nexport const SPANISH_UNITED_STATES = 'es-US' as const;\n\n/** Portuguese language as used in Guinea-Bissau */\nexport const PORTUGUESE_GUINEA_BISSAU = 'pt-GW' as const;\n/** Portuguese language as used in Mozambique */\nexport const PORTUGUESE_MOZAMBIQUE = 'pt-MZ' as const;\n/** Portuguese language as used in São Tomé and Príncipe */\nexport const PORTUGUESE_SAO_TOME_AND_PRINCIPE = 'pt-ST' as const;\n/** Portuguese language as used in Cape Verde */\nexport const PORTUGUESE_CAPE_VERDE = 'pt-CV' as const;\n/** Portuguese language as used in Timor-Leste */\nexport const PORTUGUESE_TIMOR_LESTE = 'pt-TL' as const;\n/** Portuguese language as used in Macau */\nexport const PORTUGUESE_MACAU = 'pt-MO' as const;\n/** Chinese language as used in Taiwan */\nexport const CHINESE_TAIWAN = 'zh-TW' as const;\n/** Arabic language as used in Mauritania */\nexport const ARABIC_MAURITANIA = 'ar-MR' as const;\n/** Arabic language as used in Palestinian Territories */\nexport const ARABIC_PALESTINE = 'ar-PS' as const;\n/** Arabic language as used in Sudan */\nexport const ARABIC_SUDAN = 'ar-SD' as const;\n/** Arabic language as used in Djibouti */\nexport const ARABIC_DJIBOUTI = 'ar-DJ' as const;\n/** Arabic language as used in Somalia */\nexport const ARABIC_SOMALIA = 'ar-SO' as const;\n/** Arabic language as used in Chad */\nexport const ARABIC_CHAD = 'ar-TD' as const;\n/** Arabic language as used in Comoros */\nexport const ARABIC_COMOROS = 'ar-KM' as const;\n\nexport const ALL_LOCALES = {\n AFRIKAANS,\n AFRIKAANS_SOUTH_AFRICA,\n ARABIC,\n ARABIC_UNITED_ARAB_EMIRATES,\n ARABIC_BAHRAIN,\n ARABIC_ALGERIA,\n ARABIC_EGYPT,\n ARABIC_IRAQ,\n ARABIC_JORDAN,\n ARABIC_KUWAIT,\n ARABIC_LEBANON,\n ARABIC_LIBYA,\n ARABIC_MOROCCO,\n ARABIC_OMAN,\n ARABIC_QATAR,\n ARABIC_SAUDI_ARABIA,\n ARABIC_SYRIA,\n ARABIC_TUNISIA,\n ARABIC_YEMEN,\n AZERI_LATIN,\n AZERI_LATIN_AZERBAIJAN,\n BELARUSIAN,\n BELARUSIAN_BELARUS,\n BULGARIAN,\n BULGARIAN_BULGARIA,\n BOSNIAN,\n BOSNIAN_BOSNIA_AND_HERZEGOVINA,\n CATALAN,\n CATALAN_SPAIN,\n CZECH,\n CZECH_CZECH_REPUBLIC,\n WELSH,\n WELSH_UNITED_KINGDOM,\n DANISH,\n DANISH_DENMARK,\n GERMAN,\n GERMAN_AUSTRIA,\n GERMAN_SWITZERLAND,\n GERMAN_GERMANY,\n GERMAN_LIECHTENSTEIN,\n GERMAN_LUXEMBOURG,\n DIVEHI,\n DIVEHI_MALDIVES,\n GREEK,\n GREEK_GREECE,\n ENGLISH,\n ENGLISH_AUSTRALIA,\n ENGLISH_BELIZE,\n ENGLISH_CANADA,\n ENGLISH_CARIBBEAN,\n ENGLISH_UNITED_KINGDOM,\n ENGLISH_IRELAND,\n ENGLISH_JAMAICA,\n ENGLISH_NEW_ZEALAND,\n ENGLISH_PHILIPPINES,\n ENGLISH_TRINIDAD_AND_TOBAGO,\n ENGLISH_UNITED_STATES,\n ENGLISH_SOUTH_AFRICA,\n ENGLISH_ZIMBABWE,\n ESPERANTO,\n SPANISH,\n SPANISH_ARGENTINA,\n SPANISH_BOLIVIA,\n SPANISH_CHILE,\n SPANISH_COLOMBIA,\n SPANISH_COSTA_RICA,\n SPANISH_DOMINICAN_REPUBLIC,\n SPANISH_ECUADOR,\n SPANISH_SPAIN,\n SPANISH_GUATEMALA,\n SPANISH_HONDURAS,\n SPANISH_MEXICO,\n SPANISH_NICARAGUA,\n SPANISH_PANAMA,\n SPANISH_PERU,\n SPANISH_PUERTO_RICO,\n SPANISH_PARAGUAY,\n SPANISH_EL_SALVADOR,\n SPANISH_URUGUAY,\n SPANISH_VENEZUELA,\n ESTONIAN,\n ESTONIAN_ESTONIA,\n BASQUE,\n BASQUE_SPAIN,\n FARSI,\n FARSI_IRAN,\n FINNISH,\n FINNISH_FINLAND,\n FAROESE,\n FAROESE_FAROE_ISLANDS,\n FRENCH,\n FRENCH_BELGIUM,\n FRENCH_CANADA,\n FRENCH_SWITZERLAND,\n FRENCH_FRANCE,\n FRENCH_LUXEMBOURG,\n FRENCH_PRINCIPALITY_OF_MONACO,\n IRISH,\n IRISH_IRELAND,\n SCOTTISH_GAELIC,\n SCOTTISH_GAELIC_UNITED_KINGDOM,\n GALICIAN,\n GALICIAN_SPAIN,\n GUJARATI,\n GUJARATI_INDIA,\n HEBREW,\n HEBREW_ISRAEL,\n HINDI,\n HINDI_INDIA,\n CROATIAN,\n CROATIAN_BOSNIA_AND_HERZEGOVINA,\n CROATIAN_CROATIA,\n HUNGARIAN,\n HUNGARIAN_HUNGARY,\n ARMENIAN,\n ARMENIAN_ARMENIA,\n INDONESIAN,\n INDONESIAN_INDONESIA,\n ICELANDIC,\n ICELANDIC_ICELAND,\n ITALIAN,\n ITALIAN_SWITZERLAND,\n ITALIAN_ITALY,\n JAPANESE,\n JAPANESE_JAPAN,\n GEORGIAN,\n GEORGIAN_GEORGIA,\n KAZAKH,\n KAZAKH_KAZAKHSTAN,\n KANNADA,\n KANNADA_INDIA,\n KOREAN,\n KOREAN_KOREA,\n KONKANI,\n KONKANI_INDIA,\n KURDISH,\n KURDISH_TURKEY,\n KYRGYZ,\n KYRGYZ_KYRGYZSTAN,\n LITHUANIAN,\n LITHUANIAN_LITHUANIA,\n LATVIAN,\n LATVIAN_LATVIA,\n MAORI,\n MAORI_NEW_ZEALAND,\n FYRO_MACEDONIAN,\n FYRO_MACEDONIAN_MACEDONIA,\n MONGOLIAN,\n MONGOLIAN_MONGOLIA,\n MARATHI,\n MARATHI_INDIA,\n MALAY,\n MALAY_BRUNEI_DARUSSALAM,\n MALAY_MALAYSIA,\n MALTESE,\n MALTESE_MALTA,\n MALAYALAM,\n MALAYALAM_INDIA,\n NORWEGIAN,\n NORWEGIAN_BOKMAL,\n NORWEGIAN_BOKMAL_NORWAY,\n DUTCH,\n DUTCH_BELGIUM,\n DUTCH_NETHERLANDS,\n NORWEGIAN_NYNORSK,\n NORWEGIAN_NYNORSK_NORWAY,\n NORTHERN_SOTHO,\n NORTHERN_SOTHO_SOUTH_AFRICA,\n PUNJABI,\n PUNJABI_INDIA,\n POLISH,\n POLISH_POLAND,\n PASHTO,\n PASHTO_AFGHANISTAN,\n PORTUGUESE,\n PORTUGUESE_BRAZIL,\n PORTUGUESE_PORTUGAL,\n QUECHUA,\n QUECHUA_BOLIVIA,\n QUECHUA_ECUADOR,\n QUECHUA_PERU,\n ROMANIAN,\n ROMANIAN_ROMANIA,\n ROMANIAN_MOLDOVA,\n ROMANSH,\n ROMANSH_SWITZERLAND,\n RUSSIAN,\n RUSSIAN_RUSSIA,\n RUSSIAN_MOLDOVA,\n SANSKRIT,\n SANSKRIT_INDIA,\n SAMI_NORTHERN,\n SAMI_NORTHERN_FINLAND,\n SAMI_NORTHERN_NORWAY,\n SAMI_NORTHERN_SWEDEN,\n UPPER_SORBIAN,\n UPPER_SORBIAN_GERMANY,\n LOWER_SORBIAN,\n LOWER_SORBIAN_GERMANY,\n SLOVAK,\n SLOVAK_SLOVAKIA,\n SLOVENIAN,\n SLOVENIAN_SLOVENIA,\n ALBANIAN,\n ALBANIAN_ALBANIA,\n SERBIAN_LATIN,\n SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA,\n SERBIAN_LATIN_SERBIA_AND_MONTENEGRO,\n SWEDISH,\n SWEDISH_FINLAND,\n SWEDISH_SWEDEN,\n SWAHILI,\n SWAHILI_KENYA,\n SYRIAC,\n SYRIAC_SYRIA,\n TAMIL,\n TAMIL_INDIA,\n TELUGU,\n TELUGU_INDIA,\n THAI,\n THAI_THAILAND,\n TAGALOG,\n TAGALOG_PHILIPPINES,\n TSWANA,\n TSWANA_SOUTH_AFRICA,\n TURKISH,\n TURKISH_TURKEY,\n TATAR,\n TATAR_RUSSIA,\n TSOGA,\n UKRAINIAN,\n UKRAINIAN_UKRAINE,\n URDU,\n URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN,\n UZBEK_LATIN,\n UZBEK_LATIN_UZBEKISTAN,\n VIETNAMESE,\n VIETNAMESE_VIET_NAM,\n VENDA,\n VENDA_SOUTH_AFRICA,\n XHOSA,\n XHOSA_SOUTH_AFRICA,\n CHINESE,\n CHINESE_SIMPLIFIED,\n CHINESE_SIMPLIFIED_CHINA,\n CHINESE_HONG_KONG,\n CHINESE_MACAU,\n CHINESE_SINGAPORE,\n CHINESE_TRADITIONAL,\n ZULU,\n ZULU_SOUTH_AFRICA,\n BENGALI,\n BENGALI_BANGLADESH,\n BENGALI_INDIA,\n BENGALI_MYANMAR,\n BURMESE,\n BURMESE_MYANMAR,\n KHMER,\n KHMER_CAMBODIA,\n LAO,\n LAO_LAOS,\n YORUBA,\n YORUBA_NIGERIA,\n YIDDISH,\n YIDDISH_WORLD,\n AMHARIC,\n AMHARIC_ETHIOPIA,\n NEPALI,\n NEPALI_NEPAL,\n SINHALA,\n SINHALA_SRI_LANKA,\n SERBIAN_CYRILLIC,\n SERBIAN_CYRILLIC_SERBIA,\n SERBIAN_CYRILLIC_BOSNIA_AND_HERZEGOVINA,\n ENGLISH_INDIA,\n ENGLISH_SINGAPORE,\n ENGLISH_HONG_KONG,\n ENGLISH_NIGERIA,\n ENGLISH_PAKISTAN,\n ENGLISH_MALAYSIA,\n ENGLISH_BOTSWANA,\n ENGLISH_KENYA,\n ENGLISH_TANZANIA,\n ENGLISH_GHANA,\n ENGLISH_UGANDA,\n SPANISH_CUBA,\n SPANISH_UNITED_STATES,\n PORTUGUESE_GUINEA_BISSAU,\n PORTUGUESE_MOZAMBIQUE,\n PORTUGUESE_SAO_TOME_AND_PRINCIPE,\n PORTUGUESE_CAPE_VERDE,\n PORTUGUESE_TIMOR_LESTE,\n PORTUGUESE_MACAU,\n CHINESE_TAIWAN,\n ARABIC_MAURITANIA,\n ARABIC_PALESTINE,\n ARABIC_SUDAN,\n ARABIC_DJIBOUTI,\n ARABIC_SOMALIA,\n ARABIC_CHAD,\n ARABIC_COMOROS,\n} as const;\n\nexport type Locale = (typeof ALL_LOCALES)[keyof typeof ALL_LOCALES]; // 'en' | 'en-US' | 'ar' | 'ar-AE' | ...\nexport type Locales = Locale;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD"}
@@ -1,3 +1,4 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
1
2
 
2
3
  //#region src/nodeType.ts
3
4
  let NodeType = /* @__PURE__ */ function(NodeType) {
@@ -1 +1 @@
1
- {"version":3,"file":"nodeType.cjs","names":[],"sources":["../../src/nodeType.ts"],"sourcesContent":["export enum NodeType {\n Translation = 'translation',\n Enumeration = 'enumeration',\n Condition = 'condition',\n Insertion = 'insertion',\n File = 'file',\n Object = 'object',\n Array = 'array',\n Nested = 'nested',\n ReactNode = 'reactNode',\n Markdown = 'markdown',\n HTML = 'html',\n Text = 'text',\n Number = 'number',\n Boolean = 'boolean',\n Gender = 'gender',\n Null = 'null',\n Unknown = 'unknown',\n}\n\ntype AdditionalAttributesType = {\n [key: string]: unknown;\n};\n\nexport type TypedNodeModel<\n T extends NodeType,\n Content,\n AdditionalAttributes extends AdditionalAttributesType = {},\n> = {\n nodeType: T | `${T}`;\n} & {\n [K in T]: Content;\n} & AdditionalAttributes;\n\nexport const formatNodeType = <\n T extends NodeType,\n Content = unknown,\n AdditionalAttributes extends AdditionalAttributesType = {},\n>(\n nodeType: T | `${T}`,\n content: Content,\n additionalAttributes?: { [key: string]: unknown }\n) =>\n ({\n ...additionalAttributes,\n nodeType,\n [nodeType]: content,\n }) as TypedNodeModel<T, Content, AdditionalAttributes>;\n"],"mappings":";;AAAA,IAAY,8CAAL;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAiBF,MAAa,kBAKX,UACA,SACA,0BAEC;CACC,GAAG;CACH;EACC,WAAW;CACb"}
1
+ {"version":3,"file":"nodeType.cjs","names":[],"sources":["../../src/nodeType.ts"],"sourcesContent":["export enum NodeType {\n Translation = 'translation',\n Enumeration = 'enumeration',\n Condition = 'condition',\n Insertion = 'insertion',\n File = 'file',\n Object = 'object',\n Array = 'array',\n Nested = 'nested',\n ReactNode = 'reactNode',\n Markdown = 'markdown',\n HTML = 'html',\n Text = 'text',\n Number = 'number',\n Boolean = 'boolean',\n Gender = 'gender',\n Null = 'null',\n Unknown = 'unknown',\n}\n\ntype AdditionalAttributesType = {\n [key: string]: unknown;\n};\n\nexport type TypedNodeModel<\n T extends NodeType,\n Content,\n AdditionalAttributes extends AdditionalAttributesType = {},\n> = {\n nodeType: T | `${T}`;\n} & {\n [K in T]: Content;\n} & AdditionalAttributes;\n\nexport const formatNodeType = <\n T extends NodeType,\n Content = unknown,\n AdditionalAttributes extends AdditionalAttributesType = {},\n>(\n nodeType: T | `${T}`,\n content: Content,\n additionalAttributes?: { [key: string]: unknown }\n) =>\n ({\n ...additionalAttributes,\n nodeType,\n [nodeType]: content,\n }) as TypedNodeModel<T, Content, AdditionalAttributes>;\n"],"mappings":";;;AAAA,IAAY,8CAAL;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAiBF,MAAa,kBAKX,UACA,SACA,0BAEC;CACC,GAAG;CACH;EACC,WAAW;CACb"}
@@ -1,6 +1,6 @@
1
- //#region rolldown:runtime
1
+ //#region \0rolldown/runtime.js
2
2
  var __defProp = Object.defineProperty;
3
- var __exportAll = (all, symbols) => {
3
+ var __exportAll = (all, no_symbols) => {
4
4
  let target = {};
5
5
  for (var name in all) {
6
6
  __defProp(target, name, {
@@ -8,12 +8,11 @@ var __exportAll = (all, symbols) => {
8
8
  enumerable: true
9
9
  });
10
10
  }
11
- if (symbols) {
11
+ if (!no_symbols) {
12
12
  __defProp(target, Symbol.toStringTag, { value: "Module" });
13
13
  }
14
14
  return target;
15
15
  };
16
16
 
17
17
  //#endregion
18
-
19
- exports.__exportAll = __exportAll;
18
+ export { __exportAll };
@@ -1 +1 @@
1
- {"version":3,"file":"config.mjs","names":[],"sources":["../../src/config.ts"],"sourcesContent":["import type { z } from 'zod';\nimport type {\n ContentAutoTransformation,\n DictionaryLocation,\n Fill,\n} from './dictionary';\nimport type { Locale } from './locales';\nimport type { LocalesValues, StrictModeLocaleMap } from './module_augmentation';\nimport type { Plugin } from './plugin';\n\nexport type StrictMode = 'strict' | 'inclusive' | 'loose';\n\ntype Protocol = 'http' | 'https';\n\ntype URLPath = `/${string}`;\n\ntype OptionalURLPath = `/${string}` | '';\n\n// Localhost: STRICTLY requires a port\ntype LocalhostURL = `${Protocol}://localhost:${number}${OptionalURLPath}`;\n// IP Address: Start with number, allows optional port\n// (Heuristic: Starts with a number, contains dots)\ntype IPUrl =\n | `${Protocol}://${number}.${string}${OptionalURLPath}`\n | `${Protocol}://${number}.${string}:${number}${OptionalURLPath}`;\n\n// Standard Domain: Requires at least one dot to rule out plain \"localhost\"\n// (Heuristic: starts with non-number string, contains dot)\ntype DomainURL = `${Protocol}://${string}.${string}${OptionalURLPath}`;\n\nexport type URLType = LocalhostURL | IPUrl | DomainURL | (string & {});\n\n/**\n * Configuration for internationalization settings\n */\nexport type InternationalizationConfig = {\n /**\n * Locales available in the application\n *\n * Default: [Locales.ENGLISH]\n *\n * You can define a list of available locales to support in the application.\n */\n locales: Locale[];\n\n /**\n * Locales required by TypeScript to ensure strong implementations of internationalized content using typescript.\n *\n * Default: []\n *\n * If empty, all locales are required in `strict` mode.\n *\n * Ensure required locales are also defined in the `locales` field.\n */\n requiredLocales: Locale[];\n\n /**\n * Ensure strong implementations of internationalized content using typescript.\n * - If set to \"strict\", the translation `t` function will require each declared locales to be defined. If one locale is missing, or if a locale is not declared in your config, it will throw an error.\n * - If set to \"inclusive\", the translation `t` function will require each declared locales to be defined. If one locale is missing, it will throw a warning. But will accept if a locale is not declared in your config, but exist.\n * - If set to \"loose\", the translation `t` function will accept any existing locale.\n *\n * Default: \"inclusive\"\n */\n strictMode: StrictMode;\n\n /**\n * Default locale of the application for fallback\n *\n * Default: Locales.ENGLISH\n *\n * Used to specify a fallback locale in case no other locale is set.\n */\n defaultLocale: Locale;\n};\n\nexport type CookiesAttributes = {\n /**\n * Type of the storage\n *\n * The type of the storage. It can be 'cookie'.\n */\n type: 'cookie';\n /**\n * Cookie name to store the locale information\n *\n * Default: 'INTLAYER_LOCALE'\n *\n * The cookie key where the locale information is stored.\n */\n name?: string;\n /**\n * Cookie domain to store the locale information\n *\n * Default: undefined\n *\n * Define the domain where the cookie is available. Defaults to\n * the domain of the page where the cookie was created.\n */\n domain?: string;\n /**\n * Cookie path to store the locale information\n *\n * Default: undefined\n *\n * Define the path where the cookie is available. Defaults to '/'\n */\n path?: string;\n /**\n * Cookie secure to store the locale information\n *\n * Default: undefined\n *\n * A Boolean indicating if the cookie transmission requires a\n * secure protocol (https). Defaults to false.\n */\n secure?: boolean;\n /**\n * Cookie httpOnly to store the locale information\n *\n * Default: undefined\n *\n * The cookie httpOnly where the locale information is stored.\n */\n httpOnly?: boolean;\n /**\n * Cookie sameSite to store the locale information\n *\n * Default: undefined\n *\n * Asserts that a cookie must not be sent with cross-origin requests,\n * providing some protection against cross-site request forgery\n * attacks (CSRF)\n */\n sameSite?: 'strict' | 'lax' | 'none';\n\n /**\n * Cookie expires to store the locale information\n *\n * Default: undefined\n *\n * Define when the cookie will be removed. Value can be a Number\n * which will be interpreted as days from time of creation or a\n * Date instance. If omitted, the cookie becomes a session cookie.\n */\n expires?: Date | number | undefined;\n};\n\nexport type StorageAttributes = {\n /**\n * Storage type where the locale is stored\n *\n * Determines whether the locale is persisted in `localStorage` (across sessions)\n * or `sessionStorage` (cleared when the browser session ends) or `header` (from the request header).\n */\n type: 'localStorage' | 'sessionStorage' | 'header';\n\n /**\n * Storage key to store the locale information\n *\n * Default: 'INTLAYER_LOCALE'\n *\n * The key name used in the client storage to save the locale.\n */\n name?: string;\n};\n\nexport type RewriteRule<T extends string = string> = {\n canonical: T;\n localized: StrictModeLocaleMap<string>;\n};\n\nexport type RewriteRules = {\n rules: RewriteRule[];\n};\n\nexport type RewriteObject = {\n /**\n * Used for client-side URL generation (e.g., getLocalizedUrl).\n * Patterns are usually stripped of locale prefixes as the core logic handles prefixing.\n */\n url: RewriteRules;\n /**\n * Used for Next.js middleware / proxy.\n * Patterns usually include [locale] or :locale to match incoming full URLs.\n */\n nextjs?: RewriteRules;\n /**\n * Used for Vite proxy middleware.\n */\n vite?: RewriteRules;\n};\n\n/**\n * Configuration for routing behaviors\n */\nexport type RoutingConfig = {\n /**\n * Rewrite the URLs to a localized path\n *\n * Example:\n * ```ts\n * // ...\n * routing: {\n * rewrite: nextjsRewrite({\n * '[locale]/about': {\n * fr: '[locale]/a-propos'\n * }\n * })\n * }\n * ```\n */\n rewrite?: Record<URLPath, StrictModeLocaleMap<URLPath>> | RewriteObject;\n\n /**\n * URL routing mode for locale handling\n *\n * Controls how locales are represented in application URLs:\n * - 'prefix-no-default': Prefix all locales except the default locale\n * - 'prefix-all': Prefix all locales including the default locale\n * - 'no-prefix': No locale prefixing in URLs\n * - 'search-params': Use search parameters for locale handling\n *\n * Examples with defaultLocale = 'en':\n * - 'prefix-no-default': /dashboard (en) or /fr/dashboard (fr)\n * - 'prefix-all': /en/dashboard (en) or /fr/dashboard (fr)\n * - 'no-prefix': /dashboard (locale handled via other means)\n * - 'search-params': /dashboard?locale=fr\n *\n * Note: This setting do not impact the cookie, or locale storage management.\n *\n * Default: 'prefix-no-default'\n */\n mode: 'prefix-no-default' | 'prefix-all' | 'no-prefix' | 'search-params';\n\n /**\n * Configuration for storing the locale in the client (localStorage or sessionStorage)\n *\n * If false, the locale will not be stored by the middleware.\n * If true, the locale storage will consider all default values.\n *\n * Default: ['cookie', 'header]\n *\n * Note: Check out GDPR compliance for cookies. See https://gdpr.eu/cookies/\n * Note: useLocale hook includes a prop to disable the cookie storage.\n * Note: Even if storage is disabled, the middleware will still detect the locale from the request header (1- check for `x-intlayer-locale`, 2- fallback to the `accept-language`).\n *\n * Recommendation:\n * - Config both localStorage and cookies for the storage of the locale if you want to support GDPR compliance.\n * - Disable the cookie storage by default on the useLocale hook by waiting for the user to consent to the cookie storage.\n */\n storage:\n | false\n | 'cookie'\n | 'localStorage'\n | 'sessionStorage'\n | 'header'\n | CookiesAttributes\n | StorageAttributes\n | (\n | 'cookie'\n | 'localStorage'\n | 'sessionStorage'\n | 'header'\n | CookiesAttributes\n | StorageAttributes\n )[];\n\n /**\n * Base path for application URLs\n *\n * Default: ''\n *\n * Defines the base path where the application is accessible from.\n */\n basePath: string;\n};\n\n/**\n * Configuration for intlayer editor\n */\nexport type EditorConfig = {\n /**\n * URL of the application. Used to restrict the origin of the editor for security reasons.\n *\n * Default: ''\n */\n applicationURL: URLType;\n\n /**\n * URL of the editor server. Used to restrict the origin of the editor for security reasons.\n *\n * Default: 'http://localhost:8000'\n */\n editorURL: URLType;\n\n /**\n * URL of the CMS server. Used to restrict the origin of the editor for security reasons.\n *\n * Default: 'https://app.intlayer.org'\n */\n cmsURL: URLType;\n\n /**\n * URL of the backend\n *\n * Default: 'https://back.intlayer.org'\n *\n * The URL of the backend server.\n */\n backendURL: URLType;\n\n /**\n * Indicates if the application interact with the visual editor\n *\n * Default: true;\n *\n * If true, the editor will be able to interact with the application.\n * If false, the editor will not be able to interact with the application.\n * In any case, the editor can only be enabled by the visual editor.\n * Disabling the editor for specific environments is a way to enforce the security.\n *\n * Usage:\n * ```js\n * {\n * // Other configurations\n * editor: {\n * enabled: process.env.NODE_ENV !== 'production',\n * }\n * };\n * ```\n *\n */\n enabled: boolean;\n\n /** Port of the editor server\n *\n * Default: 8000\n */\n port: number;\n\n /**\n * clientId and clientSecret allow the intlayer packages to authenticate with the backend using oAuth2 authentication.\n * An access token is use to authenticate the user related to the project.\n * To get an access token, go to https://app.intlayer.org/project and create an account.\n *\n * Default: undefined\n *\n * > Important: The clientId and clientSecret should be kept secret and not shared publicly. Please ensure to keep them in a secure location, such as environment variables.\n */\n clientId?: string;\n\n /**\n * clientId and clientSecret allow the intlayer packages to authenticate with the backend using oAuth2 authentication.\n * An access token is use to authenticate the user related to the project.\n * To get an access token, go to https://app.intlayer.org/project and create an account.\n *\n * Default: undefined\n *\n * > Important: The clientId and clientSecret should be kept secret and not shared publicly. Please ensure to keep them in a secure location, such as environment variables.\n */\n clientSecret?: string;\n\n /**\n * Strategy for prioritizing dictionaries. If a dictionary is both present online and locally, the content will be merge.\n * However, is a field is defined in both dictionary, this setting determines which fields takes the priority over the other.\n *\n * Default: 'local_first'\n *\n * The strategy for prioritizing dictionaries. It can be either 'local_first' or 'distant_first'.\n * - 'local_first': The first dictionary found in the locale is used.\n * - 'distant_first': The first dictionary found in the distant locales is used.\n */\n dictionaryPriorityStrategy: 'local_first' | 'distant_first';\n\n /**\n * Indicates if the application should hot reload the locale configurations when a change is detected.\n * For example, when a new dictionary is added or updated, the application will update the content tu display in the page.\n *\n * Default: true\n */\n liveSync: boolean;\n\n /**\n * Port of the live sync server\n *\n * Default: 4000\n */\n liveSyncPort: number;\n\n /**\n * URL of the live sync server in case of remote live sync server\n *\n * Default: `http://localhost:${liveSyncPort}`\n */\n liveSyncURL: URLType;\n};\n\nexport enum AiProviders {\n OPENAI = 'openai',\n ANTHROPIC = 'anthropic',\n MISTRAL = 'mistral',\n DEEPSEEK = 'deepseek',\n GEMINI = 'gemini',\n OLLAMA = 'ollama',\n}\n\nexport type AiConfig = {\n /**\n * Provider\n *\n * The provider to use for the AI features of Intlayer.\n *\n * Available providers:\n * - 'openai'\n * - 'anthropic'\n * - 'mistral'\n * - 'deepseek'\n * - 'gemini'\n * - 'ollama'\n *\n * Default: 'openai'\n */\n provider?: AiProviders | `${AiProviders}`;\n\n /**\n * API model\n *\n * The model to use for the AI features of Intlayer.\n *\n * Example: 'gpt-4o-2024-11-20'\n *\n */\n model?: string;\n\n /**\n * temperature\n *\n * The temperature to use for the AI features of Intlayer.\n * The temperature controls the randomness of the AI's responses.\n * A higher temperature will make the AI more creative and less predictable.\n *\n * Example: 0.1\n */\n temperature?: number;\n\n /**\n * API key\n *\n * Use your own OpenAI API key to use the AI features of Intlayer.\n * If you don't have an OpenAI API key, you can get one for free at https://openai.com/api/.\n *\n */\n apiKey?: string;\n\n /**\n * Application context\n *\n * The context of the application to use for the AI features of Intlayer.\n *\n * Example: 'This is a website for a company that sells products online.'\n */\n applicationContext?: string;\n\n /**\n * Base URL\n *\n * The base URL to use for the AI features of Intlayer.\n *\n * Example: 'https://api.openai.com/v1'\n */\n baseURL?: string;\n} & Record<string, any>;\n\nexport type BuildConfig = {\n /**\n * Indicates the mode of the build\n *\n * Default: 'auto'\n *\n * If 'auto', the build will be enabled automatically when the application is built.\n * If 'manual', the build will be set only when the build command is executed.\n *\n * Can be used to disable dictionaries build, for instance when execution on Node.js environment should be avoided.\n */\n mode: 'auto' | 'manual';\n\n /**\n * Indicates if the build should be optimized\n *\n * Default: undefined\n *\n * If true, the build will be optimized.\n * If false, the build will not be optimized.\n *\n * Intlayer will replace all calls of dictionaries to optimize chunking. That way the final bundle will import only the dictionaries that are used.\n * All imports will stay as static import to avoid async processing when loading the dictionaries.\n *\n * Note:\n * - Intlayer will replace all call of `useIntlayer` with the defined mode by the `importMode` option.\n * - Intlayer will replace all call of `getIntlayer` with `getDictionary`.\n * - This option relies on the `@intlayer/babel` and `@intlayer/swc` plugins.\n * - Ensure all keys are declared statically in the `useIntlayer` calls. e.g. `useIntlayer('navbar')`.\n */\n optimize?: boolean;\n\n /**\n * Indicates the mode of import to use for the dictionaries.\n *\n * Available modes:\n * - \"static\": The dictionaries are imported statically.\n * In that case, Intlayer will replace all calls to `useIntlayer` with `useDictionary`.\n * - \"dynamic\": The dictionaries are imported dynamically in a synchronous component using the suspense API.\n * In that case, Intlayer will replace all calls to `useIntlayer` with `useDictionaryDynamic`.\n * - \"fetch\": The dictionaries are imported dynamically using the live sync API.\n * In that case, Intlayer will replace all calls to `useIntlayer` with `useDictionaryDynamic`.\n * Fetch mode will use the live sync API to fetch the dictionaries. If the API call fails, the dictionaries will be imported dynamically as \"dynamic\" mode.\n *\n * Default: \"static\"\n *\n * By default, when a dictionary is loaded, it imports content for all locales as it's imported statically.\n *\n * Note:\n * - Dynamic imports rely on Suspense and may slightly impact rendering performance.\n * - If desabled all locales will be loaded at once, even if they are not used.\n * - This option relies on the `@intlayer/babel` and `@intlayer/swc` plugins.\n * - Ensure all keys are declared statically in the `useIntlayer` calls. e.g. `useIntlayer('navbar')`.\n * - This option will be ignored if `optimize` is disabled.\n * - This option will not impact the `getIntlayer`, `getDictionary`, `useDictionary`, `useDictionaryAsync` and `useDictionaryDynamic` functions. You can still use them to refine you code on manual optimization.\n * - The \"fetch\" allows to sync the dictionaries to the live sync server.\n * - Require static key to work. Example of invalid code: `const navbarKey = \"my-key\"; useIntlayer(navbarKey)`.\n *\n * @deprecated Use `dictionary.importMode` instead.\n */\n importMode?: 'static' | 'dynamic' | 'fetch';\n\n /**\n * Pattern to traverse the code to optimize.\n *\n * Allows to avoid to traverse the code that is not relevant to the optimization.\n * Improve build performance.\n *\n * Default: ['**\\/*.{js,ts,mjs,cjs,jsx,tsx}', '!**\\/node_modules/**']\n *\n * Example: `['src/**\\/*.{ts,tsx}', '../ui-library/**\\/*.{ts,tsx}', '!**\\/node_modules/**']`\n *\n * Note:\n * - This option will be ignored if `optimize` is disabled.\n * - Use glob pattern.\n */\n traversePattern: string[];\n\n /**\n * Output format of the dictionaries\n *\n * Default: ['cjs', 'esm']\n *\n * The output format of the dictionaries. It can be either 'cjs' or 'esm'. Even if dictionaries are written in JSON, entry point to access the dictionaries are generated.\n * This function will use the output format defined using this option.\n * The default format is 'cjs' as it allows better interoperability with other libraries, scripts, and applications. But some build tools, such as Vite, require ES modules.\n */\n outputFormat: ('cjs' | 'esm')[];\n\n /**\n * Indicates if the cache should be enabled\n *\n * Default: true\n *\n * If true, the cache will be enabled.\n * If false, the cache will not be enabled.\n */\n cache: boolean;\n\n /**\n * Require function\n *\n * In some environments, as VSCode extension, the require function should be set relatively to the project root to work properly.\n *\n * Default: undefined\n *\n * If undefined, the require function will be set to the default require function.\n * If defined, the require function will be set to the defined require function.\n *\n * Example:\n * ```js\n * {\n * require: require\n * }\n * ```\n */\n require?: NodeJS.Require;\n};\n\nexport type CompilerConfig = {\n /**\n * Indicates if the compiler should be enabled\n */\n enabled: boolean;\n\n /**\n * Pattern to traverse the code to optimize.\n *\n * Allows to avoid to traverse the code that is not relevant to the optimization.\n * Improve build performance.\n *\n * Default: ['**\\/*.{js,ts,mjs,cjs,jsx,tsx}', '!**\\/node_modules/**']\n *\n * Example: `['src/**\\/*.{ts,tsx}', '../ui-library/**\\/*.{ts,tsx}', '!**\\/node_modules/**']`\n *\n * Note:\n * - This option will be ignored if `optimize` is disabled.\n * - Use glob pattern.\n */\n transformPattern: string | string[];\n\n /**\n * Pattern to exclude from the optimization.\n *\n * Allows to exclude files from the optimization.\n *\n * Default: ['**\\/node_modules/**']\n *\n * Example: `['**\\/node_modules/**', '!**\\/node_modules/react/**']`\n */\n excludePattern: string | string[];\n\n /**\n * Output directory for the optimized dictionaries.\n *\n * Default: 'compiler'\n *\n * The directory where the optimized dictionaries will be stored.\n */\n outputDir: string;\n};\n\n/**\n * Custom configuration that can be provided to override default settings\n */\nexport type CustomIntlayerConfig = {\n /**\n * Custom internationalization configuration\n */\n internationalization?: Partial<InternationalizationConfig>;\n\n /**\n * Custom dictionary configuration\n */\n dictionary?: Partial<DictionaryConfig>;\n\n /**\n * Custom routing configuration\n */\n routing?: Partial<RoutingConfig>;\n\n /**\n * Custom content configuration\n */\n content?: Partial<ContentConfig>;\n\n /**\n * Custom editor configuration\n */\n editor?: Partial<EditorConfig>;\n\n /**\n * Custom log configuration\n */\n log?: Partial<LogConfig>;\n\n /**\n * Custom AI configuration\n */\n ai?: Partial<AiConfig>;\n\n /**\n * Custom build configuration\n */\n build?: Partial<BuildConfig>;\n\n /**\n * Custom compiler configuration\n */\n compiler?: Partial<CompilerConfig>;\n\n /**\n * Custom system configuration\n */\n system?: Partial<SystemConfig>;\n\n /**\n * Custom schemas to validate the dictionaries content.\n *\n * Example:\n * ```ts\n * {\n * schemas: {\n * 'my-schema': z.object({\n * title: z.string(),\n * description: z.string(),\n * }),\n * }\n * }\n * ```\n */\n schemas?: Record<string, z.ZodType>;\n\n /**\n * Custom plugins configuration\n */\n plugins?: Plugin[];\n};\n\nexport type DictionaryConfig = {\n fill?: Fill;\n description?: string;\n locale?: LocalesValues;\n contentAutoTransformation?: ContentAutoTransformation;\n priority?: number;\n /**\n * Indicates the mode of import to use for the dictionaries.\n *\n * Available modes:\n * - \"static\": The dictionaries are imported statically.\n * In that case, Intlayer will replace all calls to `useIntlayer` with `useDictionary`.\n * - \"dynamic\": The dictionaries are imported dynamically in a synchronous component using the suspense API.\n * In that case, Intlayer will replace all calls to `useIntlayer` with `useDictionaryDynamic`.\n * - \"fetch\": The dictionaries are imported dynamically using the live sync API.\n * In that case, Intlayer will replace all calls to `useIntlayer` with `useDictionaryDynamic`.\n * Fetch mode will use the live sync API to fetch the dictionaries. If the API call fails, the dictionaries will be imported dynamically as \"dynamic\" mode.\n *\n * Default: \"static\"\n *\n * By default, when a dictionary is loaded, it imports content for all locales as it's imported statically.\n *\n * Note:\n * - Dynamic imports rely on Suspense and may slightly impact rendering performance.\n * - If desabled all locales will be loaded at once, even if they are not used.\n * - This option relies on the `@intlayer/babel` and `@intlayer/swc` plugins.\n * - Ensure all keys are declared statically in the `useIntlayer` calls. e.g. `useIntlayer('navbar')`.\n * - This option will be ignored if `optimize` is disabled.\n * - This option will not impact the `getIntlayer`, `getDictionary`, `useDictionary`, `useDictionaryAsync` and `useDictionaryDynamic` functions. You can still use them to refine you code on manual optimization.\n * - The \"fetch\" allows to sync the dictionaries to the live sync server.\n * - Require static key to work. Example of invalid code: `const navbarKey = \"my-key\"; useIntlayer(navbarKey)`.\n */\n importMode?: 'static' | 'dynamic' | 'fetch';\n title?: string;\n tags?: string[];\n version?: string;\n location?: DictionaryLocation;\n};\n\n/**\n * Combined configuration for internationalization, middleware, and content\n */\nexport type IntlayerConfig = {\n /**\n * Internationalization configuration\n */\n internationalization: InternationalizationConfig;\n\n /**\n * Default dictionary configuration\n */\n dictionary?: Partial<DictionaryConfig>;\n\n /**\n * Routing configuration\n */\n routing: RoutingConfig;\n\n /**\n * Content configuration\n */\n content: ContentConfig;\n\n /**\n * System configuration\n */\n system: SystemConfig;\n\n /**\n * Intlayer editor configuration\n */\n editor: EditorConfig;\n\n /**\n * Logger configuration\n */\n log: LogConfig;\n\n /**\n * AI configuration\n */\n ai?: Partial<AiConfig>;\n\n /**\n * Build configuration\n */\n build: BuildConfig;\n\n /**\n * Compiler configuration\n */\n compiler: CompilerConfig;\n\n /**\n * Custom schemas to validate the dictionaries content.\n */\n schemas?: Record<string, z.ZodType>;\n\n /**\n * Plugins configuration\n */\n plugins?: Plugin[];\n\n /**\n * Metadata of the project\n */\n metadata: {\n name: string;\n version: string;\n doc: string;\n };\n};\n\n/**\n * Configuration for content handling\n */\nexport type ContentConfig = {\n /**\n * File extensions of content to look for\n *\n * Default: ['.content.ts', '.content.js', '.content.cjs', '.content.mjs', '.content.json', '.content.tsx', '.content.jsx']\n *\n * List of file extensions to scan for content.\n */\n fileExtensions: string[];\n\n /**\n * Absolute path of the project's base directory\n *\n * Default: process.cwd()\n *\n * The root directory of the project, typically used for resolving other paths.\n */\n baseDir: string;\n\n /**\n * Directory where the content is stored, relative to the base directory\n *\n * Default: ['.']\n *\n * Derived content directory based on the base configuration.\n *\n * Note: This is used to watch for content files.\n */\n contentDir: string[];\n\n /**\n * Directory where the code is stored, relative to the base directory\n *\n * Default: ['.']\n *\n * Derived code directory based on the base configuration.\n *\n * Note: This is used to watch for code files to transform.\n */\n codeDir: string[];\n\n /**\n * Directories to be excluded from content processing\n *\n * Default: ['node_modules', '.intlayer']\n *\n * A list of directories to exclude from content processing.\n */\n excludedPath: string[];\n\n /**\n * Indicates if Intlayer should watch for changes in the content declaration files in the app to rebuild the related dictionaries.\n *\n * Default: process.env.NODE_ENV === 'development'\n */\n watch: boolean;\n\n /**\n * Command to format the content. When intlayer write your .content files locally, this command will be used to format the content.\n *\n * Example:\n *\n * ```bash\n * npx prettier --write {{file}}\n * ```\n *\n * ```bash\n * bunx biome format {{file}}\n * ```\n *\n * ```bash\n * bun format {{file}}\n * ```\n *\n * ```bash\n * npx eslint --fix {{file}}\n * ```\n *\n * Intlayer will replace the {{file}} with the path of the file to format.\n *\n * Default: undefined\n */\n formatCommand: string | undefined;\n\n /**\n * Patterns of files to watch for changes\n *\n * Default: ['/**\\/*.content.ts', '/**\\/*.content.js', '/**\\/*.content.json', '/**\\/*.content.cjs', '/**\\/*.content.mjs', '/**\\/*.content.tsx', '/**\\/*.content.jsx']\n *\n * Defines file patterns for content to watch for changes.\n */\n watchedFilesPattern: string[];\n\n /**\n * Patterns of files to watch for changes including the relative path\n *\n * Default: ['src/**\\/*.content.ts', 'src/**\\/*.content.js', 'src/**\\/*.content.json', 'src/**\\/*.content.cjs', 'src/**\\/*.content.mjs', 'src/**\\/*.content.tsx', 'src/**\\/*.content.jsx']\n *\n * Specifies the file patterns for content to watch, including relative paths.\n */\n watchedFilesPatternWithPath: string[];\n};\n\nexport type SystemConfig = {\n /**\n * Directory for module augmentation, relative to the base directory\n *\n * Default: .intlayer/types\n *\n * Defines the derived path for module augmentation.\n */\n moduleAugmentationDir: string;\n\n /**\n * Directory where unmerged dictionaries are stored, relative to the result directory\n *\n * Default: .intlayer/unmerged_dictionary\n *\n * Specifies the derived path for unmerged dictionaries relative to the result directory.\n */\n unmergedDictionariesDir: string;\n\n /**\n * Directory where remote dictionaries are stored, relative to the result directory\n *\n * Default: .intlayer/remote_dictionary\n *\n * Specifies the derived path for remote dictionaries relative to the result directory.\n */\n remoteDictionariesDir: string;\n\n /**\n * Directory where final dictionaries are stored, relative to the result directory\n *\n * Default: .intlayer/dictionary\n *\n * Specifies the derived path for dictionaries relative to the result directory.\n */\n dictionariesDir: string;\n\n /**\n * Directory where dynamic dictionaries are stored, relative to the result directory\n *\n * Default: .intlayer/dynamic_dictionary\n *\n * Specifies the derived path for dynamic dictionaries relative to the result directory.\n */\n dynamicDictionariesDir: string;\n\n /**\n * Directory where fetch dictionaries are stored, relative to the result directory\n *\n * Default: .intlayer/fetch_dictionary\n *\n * Specifies the derived path for fetch dictionaries relative to the result directory.\n */\n fetchDictionariesDir: string;\n\n /**\n * Directory where dictionary types are stored, relative to the result directory\n *\n * Default: .intlayer/types\n *\n * Specifies the derived path for dictionary types relative to the result directory.\n */\n typesDir: string;\n\n /**\n * Directory where the main files are stored, relative to the result directory\n *\n * Default: .intlayer/main\n *\n * Specifies the derived path for the main files relative to the result directory.\n */\n mainDir: string;\n\n /**\n * Directory where the configuration files are stored, relative to the result directory\n *\n * Default: .intlayer/config\n *\n * Specifies the derived path for the configuration files relative to the result directory.\n */\n configDir: string;\n\n /**\n * Directory where the cache files are stored, relative to the result directory\n *\n * Default: .intlayer/cache\n *\n * Specifies the derived path for the cache files relative to the result directory.\n */\n cacheDir: string;\n\n /**\n * Pattern for output files including the relative path\n *\n * Default: '{{dictionariesDir}}/**\\/*.json'\n *\n * Defines the pattern for output files, including the relative path.\n */\n outputFilesPatternWithPath: string;\n};\n\nexport type LogFunctions = {\n error?: typeof console.error;\n log?: typeof console.log;\n info?: typeof console.info;\n warn?: typeof console.warn;\n};\n\nexport type LogConfig = {\n /**\n * Indicates if the logger is enabled\n *\n * Default: true\n *\n * If 'default', the logger is enabled and can be used.\n * If 'verbose', the logger will be enabled and can be used, but will log more information.\n * If 'disabled', the logger is disabled and cannot be used.\n */\n mode: 'default' | 'verbose' | 'disabled';\n\n /**\n * Prefix of the logger\n *\n * Default: '[intlayer]'\n *\n * The prefix of the logger.\n */\n prefix: string;\n\n /**\n * Functions to log\n */\n error?: typeof console.error;\n log?: typeof console.log;\n info?: typeof console.info;\n warn?: typeof console.warn;\n debug?: typeof console.debug;\n};\n"],"mappings":";AA8YA,IAAY,oDAAL;AACL;AACA;AACA;AACA;AACA;AACA"}
1
+ {"version":3,"file":"config.mjs","names":[],"sources":["../../src/config.ts"],"sourcesContent":["import type { z } from 'zod';\nimport type {\n ContentAutoTransformation,\n DictionaryLocation,\n Fill,\n} from './dictionary';\nimport type { Locale } from './locales';\nimport type { LocalesValues, StrictModeLocaleMap } from './module_augmentation';\nimport type { Plugin } from './plugin';\n\nexport type StrictMode = 'strict' | 'inclusive' | 'loose';\n\ntype Protocol = 'http' | 'https';\n\ntype URLPath = `/${string}`;\n\ntype OptionalURLPath = `/${string}` | '';\n\n// Localhost: STRICTLY requires a port\ntype LocalhostURL = `${Protocol}://localhost:${number}${OptionalURLPath}`;\n// IP Address: Start with number, allows optional port\n// (Heuristic: Starts with a number, contains dots)\ntype IPUrl =\n | `${Protocol}://${number}.${string}${OptionalURLPath}`\n | `${Protocol}://${number}.${string}:${number}${OptionalURLPath}`;\n\n// Standard Domain: Requires at least one dot to rule out plain \"localhost\"\n// (Heuristic: starts with non-number string, contains dot)\ntype DomainURL = `${Protocol}://${string}.${string}${OptionalURLPath}`;\n\nexport type URLType = LocalhostURL | IPUrl | DomainURL | (string & {});\n\n/**\n * Configuration for internationalization settings\n */\nexport type InternationalizationConfig = {\n /**\n * Locales available in the application\n *\n * Default: [Locales.ENGLISH]\n *\n * You can define a list of available locales to support in the application.\n */\n locales: Locale[];\n\n /**\n * Locales required by TypeScript to ensure strong implementations of internationalized content using typescript.\n *\n * Default: []\n *\n * If empty, all locales are required in `strict` mode.\n *\n * Ensure required locales are also defined in the `locales` field.\n */\n requiredLocales: Locale[];\n\n /**\n * Ensure strong implementations of internationalized content using typescript.\n * - If set to \"strict\", the translation `t` function will require each declared locales to be defined. If one locale is missing, or if a locale is not declared in your config, it will throw an error.\n * - If set to \"inclusive\", the translation `t` function will require each declared locales to be defined. If one locale is missing, it will throw a warning. But will accept if a locale is not declared in your config, but exist.\n * - If set to \"loose\", the translation `t` function will accept any existing locale.\n *\n * Default: \"inclusive\"\n */\n strictMode: StrictMode;\n\n /**\n * Default locale of the application for fallback\n *\n * Default: Locales.ENGLISH\n *\n * Used to specify a fallback locale in case no other locale is set.\n */\n defaultLocale: Locale;\n};\n\nexport type CookiesAttributes = {\n /**\n * Type of the storage\n *\n * The type of the storage. It can be 'cookie'.\n */\n type: 'cookie';\n /**\n * Cookie name to store the locale information\n *\n * Default: 'INTLAYER_LOCALE'\n *\n * The cookie key where the locale information is stored.\n */\n name?: string;\n /**\n * Cookie domain to store the locale information\n *\n * Default: undefined\n *\n * Define the domain where the cookie is available. Defaults to\n * the domain of the page where the cookie was created.\n */\n domain?: string;\n /**\n * Cookie path to store the locale information\n *\n * Default: undefined\n *\n * Define the path where the cookie is available. Defaults to '/'\n */\n path?: string;\n /**\n * Cookie secure to store the locale information\n *\n * Default: undefined\n *\n * A Boolean indicating if the cookie transmission requires a\n * secure protocol (https). Defaults to false.\n */\n secure?: boolean;\n /**\n * Cookie httpOnly to store the locale information\n *\n * Default: undefined\n *\n * The cookie httpOnly where the locale information is stored.\n */\n httpOnly?: boolean;\n /**\n * Cookie sameSite to store the locale information\n *\n * Default: undefined\n *\n * Asserts that a cookie must not be sent with cross-origin requests,\n * providing some protection against cross-site request forgery\n * attacks (CSRF)\n */\n sameSite?: 'strict' | 'lax' | 'none';\n\n /**\n * Cookie expires to store the locale information\n *\n * Default: undefined\n *\n * Define when the cookie will be removed. Value can be a Number\n * which will be interpreted as days from time of creation or a\n * Date instance. If omitted, the cookie becomes a session cookie.\n */\n expires?: Date | number | undefined;\n};\n\nexport type StorageAttributes = {\n /**\n * Storage type where the locale is stored\n *\n * Determines whether the locale is persisted in `localStorage` (across sessions)\n * or `sessionStorage` (cleared when the browser session ends) or `header` (from the request header).\n */\n type: 'localStorage' | 'sessionStorage' | 'header';\n\n /**\n * Storage key to store the locale information\n *\n * Default: 'INTLAYER_LOCALE'\n *\n * The key name used in the client storage to save the locale.\n */\n name?: string;\n};\n\nexport type RewriteRule<T extends string = string> = {\n canonical: T;\n localized: StrictModeLocaleMap<string>;\n};\n\nexport type RewriteRules = {\n rules: RewriteRule[];\n};\n\nexport type RewriteObject = {\n /**\n * Used for client-side URL generation (e.g., getLocalizedUrl).\n * Patterns are usually stripped of locale prefixes as the core logic handles prefixing.\n */\n url: RewriteRules;\n /**\n * Used for Next.js middleware / proxy.\n * Patterns usually include [locale] or :locale to match incoming full URLs.\n */\n nextjs?: RewriteRules;\n /**\n * Used for Vite proxy middleware.\n */\n vite?: RewriteRules;\n};\n\n/**\n * Configuration for routing behaviors\n */\nexport type RoutingConfig = {\n /**\n * Rewrite the URLs to a localized path\n *\n * Example:\n * ```ts\n * // ...\n * routing: {\n * rewrite: nextjsRewrite({\n * '[locale]/about': {\n * fr: '[locale]/a-propos'\n * }\n * })\n * }\n * ```\n */\n rewrite?: Record<URLPath, StrictModeLocaleMap<URLPath>> | RewriteObject;\n\n /**\n * URL routing mode for locale handling\n *\n * Controls how locales are represented in application URLs:\n * - 'prefix-no-default': Prefix all locales except the default locale\n * - 'prefix-all': Prefix all locales including the default locale\n * - 'no-prefix': No locale prefixing in URLs\n * - 'search-params': Use search parameters for locale handling\n *\n * Examples with defaultLocale = 'en':\n * - 'prefix-no-default': /dashboard (en) or /fr/dashboard (fr)\n * - 'prefix-all': /en/dashboard (en) or /fr/dashboard (fr)\n * - 'no-prefix': /dashboard (locale handled via other means)\n * - 'search-params': /dashboard?locale=fr\n *\n * Note: This setting do not impact the cookie, or locale storage management.\n *\n * Default: 'prefix-no-default'\n */\n mode: 'prefix-no-default' | 'prefix-all' | 'no-prefix' | 'search-params';\n\n /**\n * Configuration for storing the locale in the client (localStorage or sessionStorage)\n *\n * If false, the locale will not be stored by the middleware.\n * If true, the locale storage will consider all default values.\n *\n * Default: ['cookie', 'header]\n *\n * Note: Check out GDPR compliance for cookies. See https://gdpr.eu/cookies/\n * Note: useLocale hook includes a prop to disable the cookie storage.\n * Note: Even if storage is disabled, the middleware will still detect the locale from the request header (1- check for `x-intlayer-locale`, 2- fallback to the `accept-language`).\n *\n * Recommendation:\n * - Config both localStorage and cookies for the storage of the locale if you want to support GDPR compliance.\n * - Disable the cookie storage by default on the useLocale hook by waiting for the user to consent to the cookie storage.\n */\n storage:\n | false\n | 'cookie'\n | 'localStorage'\n | 'sessionStorage'\n | 'header'\n | CookiesAttributes\n | StorageAttributes\n | (\n | 'cookie'\n | 'localStorage'\n | 'sessionStorage'\n | 'header'\n | CookiesAttributes\n | StorageAttributes\n )[];\n\n /**\n * Base path for application URLs\n *\n * Default: ''\n *\n * Defines the base path where the application is accessible from.\n */\n basePath: string;\n};\n\n/**\n * Configuration for intlayer editor\n */\nexport type EditorConfig = {\n /**\n * URL of the application. Used to restrict the origin of the editor for security reasons.\n *\n * Default: ''\n */\n applicationURL: URLType;\n\n /**\n * URL of the editor server. Used to restrict the origin of the editor for security reasons.\n *\n * Default: 'http://localhost:8000'\n */\n editorURL: URLType;\n\n /**\n * URL of the CMS server. Used to restrict the origin of the editor for security reasons.\n *\n * Default: 'https://app.intlayer.org'\n */\n cmsURL: URLType;\n\n /**\n * URL of the backend\n *\n * Default: 'https://back.intlayer.org'\n *\n * The URL of the backend server.\n */\n backendURL: URLType;\n\n /**\n * Indicates if the application interact with the visual editor\n *\n * Default: true;\n *\n * If true, the editor will be able to interact with the application.\n * If false, the editor will not be able to interact with the application.\n * In any case, the editor can only be enabled by the visual editor.\n * Disabling the editor for specific environments is a way to enforce the security.\n *\n * Usage:\n * ```js\n * {\n * // Other configurations\n * editor: {\n * enabled: process.env.NODE_ENV !== 'production',\n * }\n * };\n * ```\n *\n */\n enabled: boolean;\n\n /** Port of the editor server\n *\n * Default: 8000\n */\n port: number;\n\n /**\n * clientId and clientSecret allow the intlayer packages to authenticate with the backend using oAuth2 authentication.\n * An access token is use to authenticate the user related to the project.\n * To get an access token, go to https://app.intlayer.org/project and create an account.\n *\n * Default: undefined\n *\n * > Important: The clientId and clientSecret should be kept secret and not shared publicly. Please ensure to keep them in a secure location, such as environment variables.\n */\n clientId?: string;\n\n /**\n * clientId and clientSecret allow the intlayer packages to authenticate with the backend using oAuth2 authentication.\n * An access token is use to authenticate the user related to the project.\n * To get an access token, go to https://app.intlayer.org/project and create an account.\n *\n * Default: undefined\n *\n * > Important: The clientId and clientSecret should be kept secret and not shared publicly. Please ensure to keep them in a secure location, such as environment variables.\n */\n clientSecret?: string;\n\n /**\n * Strategy for prioritizing dictionaries. If a dictionary is both present online and locally, the content will be merge.\n * However, is a field is defined in both dictionary, this setting determines which fields takes the priority over the other.\n *\n * Default: 'local_first'\n *\n * The strategy for prioritizing dictionaries. It can be either 'local_first' or 'distant_first'.\n * - 'local_first': The first dictionary found in the locale is used.\n * - 'distant_first': The first dictionary found in the distant locales is used.\n */\n dictionaryPriorityStrategy: 'local_first' | 'distant_first';\n\n /**\n * Indicates if the application should hot reload the locale configurations when a change is detected.\n * For example, when a new dictionary is added or updated, the application will update the content tu display in the page.\n *\n * Default: true\n */\n liveSync: boolean;\n\n /**\n * Port of the live sync server\n *\n * Default: 4000\n */\n liveSyncPort: number;\n\n /**\n * URL of the live sync server in case of remote live sync server\n *\n * Default: `http://localhost:${liveSyncPort}`\n */\n liveSyncURL: URLType;\n};\n\nexport enum AiProviders {\n OPENAI = 'openai',\n ANTHROPIC = 'anthropic',\n MISTRAL = 'mistral',\n DEEPSEEK = 'deepseek',\n GEMINI = 'gemini',\n OLLAMA = 'ollama',\n}\n\nexport type AiConfig = {\n /**\n * Provider\n *\n * The provider to use for the AI features of Intlayer.\n *\n * Available providers:\n * - 'openai'\n * - 'anthropic'\n * - 'mistral'\n * - 'deepseek'\n * - 'gemini'\n * - 'ollama'\n *\n * Default: 'openai'\n */\n provider?: AiProviders | `${AiProviders}`;\n\n /**\n * API model\n *\n * The model to use for the AI features of Intlayer.\n *\n * Example: 'gpt-4o-2024-11-20'\n *\n */\n model?: string;\n\n /**\n * temperature\n *\n * The temperature to use for the AI features of Intlayer.\n * The temperature controls the randomness of the AI's responses.\n * A higher temperature will make the AI more creative and less predictable.\n *\n * Example: 0.1\n */\n temperature?: number;\n\n /**\n * API key\n *\n * Use your own OpenAI API key to use the AI features of Intlayer.\n * If you don't have an OpenAI API key, you can get one for free at https://openai.com/api/.\n *\n */\n apiKey?: string;\n\n /**\n * Application context\n *\n * The context of the application to use for the AI features of Intlayer.\n *\n * Example: 'This is a website for a company that sells products online.'\n */\n applicationContext?: string;\n\n /**\n * Base URL\n *\n * The base URL to use for the AI features of Intlayer.\n *\n * Example: 'https://api.openai.com/v1'\n */\n baseURL?: string;\n\n /**\n * Data serialization\n *\n * The data serialization format to use for the AI features of Intlayer.\n *\n * Default: 'json'\n */\n dataSerialization?: 'json' | 'toon';\n} & Record<string, any>;\n\nexport type BuildConfig = {\n /**\n * Indicates the mode of the build\n *\n * Default: 'auto'\n *\n * If 'auto', the build will be enabled automatically when the application is built.\n * If 'manual', the build will be set only when the build command is executed.\n *\n * Can be used to disable dictionaries build, for instance when execution on Node.js environment should be avoided.\n */\n mode: 'auto' | 'manual';\n\n /**\n * Indicates if the build should be optimized\n *\n * Default: undefined\n *\n * If true, the build will be optimized.\n * If false, the build will not be optimized.\n *\n * Intlayer will replace all calls of dictionaries to optimize chunking. That way the final bundle will import only the dictionaries that are used.\n * All imports will stay as static import to avoid async processing when loading the dictionaries.\n *\n * Note:\n * - Intlayer will replace all call of `useIntlayer` with the defined mode by the `importMode` option.\n * - Intlayer will replace all call of `getIntlayer` with `getDictionary`.\n * - This option relies on the `@intlayer/babel` and `@intlayer/swc` plugins.\n * - Ensure all keys are declared statically in the `useIntlayer` calls. e.g. `useIntlayer('navbar')`.\n */\n optimize?: boolean;\n\n /**\n * Indicates the mode of import to use for the dictionaries.\n *\n * Available modes:\n * - \"static\": The dictionaries are imported statically.\n * In that case, Intlayer will replace all calls to `useIntlayer` with `useDictionary`.\n * - \"dynamic\": The dictionaries are imported dynamically in a synchronous component using the suspense API.\n * In that case, Intlayer will replace all calls to `useIntlayer` with `useDictionaryDynamic`.\n * - \"fetch\": The dictionaries are imported dynamically using the live sync API.\n * In that case, Intlayer will replace all calls to `useIntlayer` with `useDictionaryDynamic`.\n * Fetch mode will use the live sync API to fetch the dictionaries. If the API call fails, the dictionaries will be imported dynamically as \"dynamic\" mode.\n *\n * Default: \"static\"\n *\n * By default, when a dictionary is loaded, it imports content for all locales as it's imported statically.\n *\n * Note:\n * - Dynamic imports rely on Suspense and may slightly impact rendering performance.\n * - If desabled all locales will be loaded at once, even if they are not used.\n * - This option relies on the `@intlayer/babel` and `@intlayer/swc` plugins.\n * - Ensure all keys are declared statically in the `useIntlayer` calls. e.g. `useIntlayer('navbar')`.\n * - This option will be ignored if `optimize` is disabled.\n * - This option will not impact the `getIntlayer`, `getDictionary`, `useDictionary`, `useDictionaryAsync` and `useDictionaryDynamic` functions. You can still use them to refine you code on manual optimization.\n * - The \"fetch\" allows to sync the dictionaries to the live sync server.\n * - Require static key to work. Example of invalid code: `const navbarKey = \"my-key\"; useIntlayer(navbarKey)`.\n *\n * @deprecated Use `dictionary.importMode` instead.\n */\n importMode?: 'static' | 'dynamic' | 'fetch';\n\n /**\n * Pattern to traverse the code to optimize.\n *\n * Allows to avoid to traverse the code that is not relevant to the optimization.\n * Improve build performance.\n *\n * Default: ['**\\/*.{js,ts,mjs,cjs,jsx,tsx}', '!**\\/node_modules/**']\n *\n * Example: `['src/**\\/*.{ts,tsx}', '../ui-library/**\\/*.{ts,tsx}', '!**\\/node_modules/**']`\n *\n * Note:\n * - This option will be ignored if `optimize` is disabled.\n * - Use glob pattern.\n */\n traversePattern: string[];\n\n /**\n * Output format of the dictionaries\n *\n * Default: ['cjs', 'esm']\n *\n * The output format of the dictionaries. It can be either 'cjs' or 'esm'. Even if dictionaries are written in JSON, entry point to access the dictionaries are generated.\n * This function will use the output format defined using this option.\n * The default format is 'cjs' as it allows better interoperability with other libraries, scripts, and applications. But some build tools, such as Vite, require ES modules.\n */\n outputFormat: ('cjs' | 'esm')[];\n\n /**\n * Indicates if the cache should be enabled\n *\n * Default: true\n *\n * If true, the cache will be enabled.\n * If false, the cache will not be enabled.\n */\n cache: boolean;\n\n /**\n * Require function\n *\n * In some environments, as VSCode extension, the require function should be set relatively to the project root to work properly.\n *\n * Default: undefined\n *\n * If undefined, the require function will be set to the default require function.\n * If defined, the require function will be set to the defined require function.\n *\n * Example:\n * ```js\n * {\n * require: require\n * }\n * ```\n */\n require?: NodeJS.Require;\n};\n\nexport type CompilerConfig = {\n /**\n * Indicates if the compiler should be enabled\n */\n enabled: boolean;\n\n /**\n * Pattern to traverse the code to optimize.\n *\n * Allows to avoid to traverse the code that is not relevant to the optimization.\n * Improve build performance.\n *\n * Default: ['**\\/*.{js,ts,mjs,cjs,jsx,tsx}', '!**\\/node_modules/**']\n *\n * Example: `['src/**\\/*.{ts,tsx}', '../ui-library/**\\/*.{ts,tsx}', '!**\\/node_modules/**']`\n *\n * Note:\n * - This option will be ignored if `optimize` is disabled.\n * - Use glob pattern.\n */\n transformPattern: string | string[];\n\n /**\n * Pattern to exclude from the optimization.\n *\n * Allows to exclude files from the optimization.\n *\n * Default: ['**\\/node_modules/**']\n *\n * Example: `['**\\/node_modules/**', '!**\\/node_modules/react/**']`\n */\n excludePattern: string | string[];\n\n /**\n * Output directory for the optimized dictionaries.\n *\n * Default: 'compiler'\n *\n * The directory where the optimized dictionaries will be stored.\n */\n outputDir: string;\n};\n\n/**\n * Custom configuration that can be provided to override default settings\n */\nexport type CustomIntlayerConfig = {\n /**\n * Custom internationalization configuration\n */\n internationalization?: Partial<InternationalizationConfig>;\n\n /**\n * Custom dictionary configuration\n */\n dictionary?: Partial<DictionaryConfig>;\n\n /**\n * Custom routing configuration\n */\n routing?: Partial<RoutingConfig>;\n\n /**\n * Custom content configuration\n */\n content?: Partial<ContentConfig>;\n\n /**\n * Custom editor configuration\n */\n editor?: Partial<EditorConfig>;\n\n /**\n * Custom log configuration\n */\n log?: Partial<LogConfig>;\n\n /**\n * Custom AI configuration\n */\n ai?: Partial<AiConfig>;\n\n /**\n * Custom build configuration\n */\n build?: Partial<BuildConfig>;\n\n /**\n * Custom compiler configuration\n */\n compiler?: Partial<CompilerConfig>;\n\n /**\n * Custom system configuration\n */\n system?: Partial<SystemConfig>;\n\n /**\n * Custom schemas to validate the dictionaries content.\n *\n * Example:\n * ```ts\n * {\n * schemas: {\n * 'my-schema': z.object({\n * title: z.string(),\n * description: z.string(),\n * }),\n * }\n * }\n * ```\n */\n schemas?: Record<string, z.ZodType>;\n\n /**\n * Custom plugins configuration\n */\n plugins?: Plugin[];\n};\n\nexport type DictionaryConfig = {\n fill?: Fill;\n description?: string;\n locale?: LocalesValues;\n contentAutoTransformation?: ContentAutoTransformation;\n priority?: number;\n /**\n * Indicates the mode of import to use for the dictionaries.\n *\n * Available modes:\n * - \"static\": The dictionaries are imported statically.\n * In that case, Intlayer will replace all calls to `useIntlayer` with `useDictionary`.\n * - \"dynamic\": The dictionaries are imported dynamically in a synchronous component using the suspense API.\n * In that case, Intlayer will replace all calls to `useIntlayer` with `useDictionaryDynamic`.\n * - \"fetch\": The dictionaries are imported dynamically using the live sync API.\n * In that case, Intlayer will replace all calls to `useIntlayer` with `useDictionaryDynamic`.\n * Fetch mode will use the live sync API to fetch the dictionaries. If the API call fails, the dictionaries will be imported dynamically as \"dynamic\" mode.\n *\n * Default: \"static\"\n *\n * By default, when a dictionary is loaded, it imports content for all locales as it's imported statically.\n *\n * Note:\n * - Dynamic imports rely on Suspense and may slightly impact rendering performance.\n * - If desabled all locales will be loaded at once, even if they are not used.\n * - This option relies on the `@intlayer/babel` and `@intlayer/swc` plugins.\n * - Ensure all keys are declared statically in the `useIntlayer` calls. e.g. `useIntlayer('navbar')`.\n * - This option will be ignored if `optimize` is disabled.\n * - This option will not impact the `getIntlayer`, `getDictionary`, `useDictionary`, `useDictionaryAsync` and `useDictionaryDynamic` functions. You can still use them to refine you code on manual optimization.\n * - The \"fetch\" allows to sync the dictionaries to the live sync server.\n * - Require static key to work. Example of invalid code: `const navbarKey = \"my-key\"; useIntlayer(navbarKey)`.\n */\n importMode?: 'static' | 'dynamic' | 'fetch';\n title?: string;\n tags?: string[];\n version?: string;\n location?: DictionaryLocation;\n};\n\n/**\n * Combined configuration for internationalization, middleware, and content\n */\nexport type IntlayerConfig = {\n /**\n * Internationalization configuration\n */\n internationalization: InternationalizationConfig;\n\n /**\n * Default dictionary configuration\n */\n dictionary?: Partial<DictionaryConfig>;\n\n /**\n * Routing configuration\n */\n routing: RoutingConfig;\n\n /**\n * Content configuration\n */\n content: ContentConfig;\n\n /**\n * System configuration\n */\n system: SystemConfig;\n\n /**\n * Intlayer editor configuration\n */\n editor: EditorConfig;\n\n /**\n * Logger configuration\n */\n log: LogConfig;\n\n /**\n * AI configuration\n */\n ai?: Partial<AiConfig>;\n\n /**\n * Build configuration\n */\n build: BuildConfig;\n\n /**\n * Compiler configuration\n */\n compiler: CompilerConfig;\n\n /**\n * Custom schemas to validate the dictionaries content.\n */\n schemas?: Record<string, z.ZodType>;\n\n /**\n * Plugins configuration\n */\n plugins?: Plugin[];\n\n /**\n * Metadata of the project\n */\n metadata: {\n name: string;\n version: string;\n doc: string;\n };\n};\n\n/**\n * Configuration for content handling\n */\nexport type ContentConfig = {\n /**\n * File extensions of content to look for\n *\n * Default: ['.content.ts', '.content.js', '.content.cjs', '.content.mjs', '.content.json', '.content.tsx', '.content.jsx']\n *\n * List of file extensions to scan for content.\n */\n fileExtensions: string[];\n\n /**\n * Absolute path of the project's base directory\n *\n * Default: process.cwd()\n *\n * The root directory of the project, typically used for resolving other paths.\n */\n baseDir: string;\n\n /**\n * Directory where the content is stored, relative to the base directory\n *\n * Default: ['.']\n *\n * Derived content directory based on the base configuration.\n *\n * Note: This is used to watch for content files.\n */\n contentDir: string[];\n\n /**\n * Directory where the code is stored, relative to the base directory\n *\n * Default: ['.']\n *\n * Derived code directory based on the base configuration.\n *\n * Note: This is used to watch for code files to transform.\n */\n codeDir: string[];\n\n /**\n * Directories to be excluded from content processing\n *\n * Default: ['node_modules', '.intlayer']\n *\n * A list of directories to exclude from content processing.\n */\n excludedPath: string[];\n\n /**\n * Indicates if Intlayer should watch for changes in the content declaration files in the app to rebuild the related dictionaries.\n *\n * Default: process.env.NODE_ENV === 'development'\n */\n watch: boolean;\n\n /**\n * Command to format the content. When intlayer write your .content files locally, this command will be used to format the content.\n *\n * Example:\n *\n * ```bash\n * npx prettier --write {{file}}\n * ```\n *\n * ```bash\n * bunx biome format {{file}}\n * ```\n *\n * ```bash\n * bun format {{file}}\n * ```\n *\n * ```bash\n * npx eslint --fix {{file}}\n * ```\n *\n * Intlayer will replace the {{file}} with the path of the file to format.\n *\n * Default: undefined\n */\n formatCommand: string | undefined;\n\n /**\n * Patterns of files to watch for changes\n *\n * Default: ['/**\\/*.content.ts', '/**\\/*.content.js', '/**\\/*.content.json', '/**\\/*.content.cjs', '/**\\/*.content.mjs', '/**\\/*.content.tsx', '/**\\/*.content.jsx']\n *\n * Defines file patterns for content to watch for changes.\n */\n watchedFilesPattern: string[];\n\n /**\n * Patterns of files to watch for changes including the relative path\n *\n * Default: ['src/**\\/*.content.ts', 'src/**\\/*.content.js', 'src/**\\/*.content.json', 'src/**\\/*.content.cjs', 'src/**\\/*.content.mjs', 'src/**\\/*.content.tsx', 'src/**\\/*.content.jsx']\n *\n * Specifies the file patterns for content to watch, including relative paths.\n */\n watchedFilesPatternWithPath: string[];\n};\n\nexport type SystemConfig = {\n /**\n * Directory for module augmentation, relative to the base directory\n *\n * Default: .intlayer/types\n *\n * Defines the derived path for module augmentation.\n */\n moduleAugmentationDir: string;\n\n /**\n * Directory where unmerged dictionaries are stored, relative to the result directory\n *\n * Default: .intlayer/unmerged_dictionary\n *\n * Specifies the derived path for unmerged dictionaries relative to the result directory.\n */\n unmergedDictionariesDir: string;\n\n /**\n * Directory where remote dictionaries are stored, relative to the result directory\n *\n * Default: .intlayer/remote_dictionary\n *\n * Specifies the derived path for remote dictionaries relative to the result directory.\n */\n remoteDictionariesDir: string;\n\n /**\n * Directory where final dictionaries are stored, relative to the result directory\n *\n * Default: .intlayer/dictionary\n *\n * Specifies the derived path for dictionaries relative to the result directory.\n */\n dictionariesDir: string;\n\n /**\n * Directory where dynamic dictionaries are stored, relative to the result directory\n *\n * Default: .intlayer/dynamic_dictionary\n *\n * Specifies the derived path for dynamic dictionaries relative to the result directory.\n */\n dynamicDictionariesDir: string;\n\n /**\n * Directory where fetch dictionaries are stored, relative to the result directory\n *\n * Default: .intlayer/fetch_dictionary\n *\n * Specifies the derived path for fetch dictionaries relative to the result directory.\n */\n fetchDictionariesDir: string;\n\n /**\n * Directory where dictionary types are stored, relative to the result directory\n *\n * Default: .intlayer/types\n *\n * Specifies the derived path for dictionary types relative to the result directory.\n */\n typesDir: string;\n\n /**\n * Directory where the main files are stored, relative to the result directory\n *\n * Default: .intlayer/main\n *\n * Specifies the derived path for the main files relative to the result directory.\n */\n mainDir: string;\n\n /**\n * Directory where the configuration files are stored, relative to the result directory\n *\n * Default: .intlayer/config\n *\n * Specifies the derived path for the configuration files relative to the result directory.\n */\n configDir: string;\n\n /**\n * Directory where the cache files are stored, relative to the result directory\n *\n * Default: .intlayer/cache\n *\n * Specifies the derived path for the cache files relative to the result directory.\n */\n cacheDir: string;\n\n /**\n * Pattern for output files including the relative path\n *\n * Default: '{{dictionariesDir}}/**\\/*.json'\n *\n * Defines the pattern for output files, including the relative path.\n */\n outputFilesPatternWithPath: string;\n};\n\nexport type LogFunctions = {\n error?: typeof console.error;\n log?: typeof console.log;\n info?: typeof console.info;\n warn?: typeof console.warn;\n};\n\nexport type LogConfig = {\n /**\n * Indicates if the logger is enabled\n *\n * Default: true\n *\n * If 'default', the logger is enabled and can be used.\n * If 'verbose', the logger will be enabled and can be used, but will log more information.\n * If 'disabled', the logger is disabled and cannot be used.\n */\n mode: 'default' | 'verbose' | 'disabled';\n\n /**\n * Prefix of the logger\n *\n * Default: '[intlayer]'\n *\n * The prefix of the logger.\n */\n prefix: string;\n\n /**\n * Functions to log\n */\n error?: typeof console.error;\n log?: typeof console.log;\n info?: typeof console.info;\n warn?: typeof console.warn;\n debug?: typeof console.debug;\n};\n"],"mappings":";AA8YA,IAAY,oDAAL;AACL;AACA;AACA;AACA;AACA;AACA"}
@@ -1,4 +1,4 @@
1
- import { __exportAll } from "./_virtual/rolldown_runtime.mjs";
1
+ import { __exportAll } from "./_virtual/_rolldown/runtime.mjs";
2
2
 
3
3
  //#region src/locales.ts
4
4
  var locales_exports = /* @__PURE__ */ __exportAll({
@@ -405,6 +405,14 @@ type AiConfig = {
405
405
  * Example: 'https://api.openai.com/v1'
406
406
  */
407
407
  baseURL?: string;
408
+ /**
409
+ * Data serialization
410
+ *
411
+ * The data serialization format to use for the AI features of Intlayer.
412
+ *
413
+ * Default: 'json'
414
+ */
415
+ dataSerialization?: 'json' | 'toon';
408
416
  } & Record<string, any>;
409
417
  type BuildConfig = {
410
418
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","names":[],"sources":["../../src/config.ts"],"mappings":";;;;;;;KAUY,UAAA;AAAA,KAEP,QAAA;AAAA,KAEA,OAAA;AAAA,KAEA,eAAA;AAAA,KAGA,YAAA,MAAkB,QAAA,yBAAiC,eAAA;AAAA,KAGnD,KAAA,MACE,QAAA,yBAAiC,eAAA,QACjC,QAAA,mCAA2C,eAAA;AAAA,KAI7C,SAAA,MAAe,QAAA,yBAAiC,eAAA;AAAA,KAEzC,OAAA,GAAU,YAAA,GAAe,KAAA,GAAQ,SAAA;;;;KAKjC,0BAAA;EArBP;;;;;AAAO;;EA6BV,OAAA,EAAS,MAAA;EA3BS;;AAAA;;;;;AAGmD;;EAmCrE,eAAA,EAAiB,MAAA;EA/BZ;;;;;;;;EAyCL,UAAA,EAAY,UAAA;EAxCoC;;;AAAe;;;;EAiD/D,aAAA,EAAe,MAAA;AAAA;AAAA,KAGL,iBAAA;;;;;;EAMV,IAAA;EApDoB;;;;;AAKtB;;EAuDE,IAAA;EA/CS;;;;;;;;EAwDT,MAAA;EA7CiB;;;;;;;EAqDjB,IAAA;EA/B2B;;;;;;;;EAwC3B,MAAA;EAkBA;;;;;AAcF;;EAxBE,QAAA;EA+BA;;AAYF;;;;;;;EAjCE,QAAA;EAmCW;;;AAGb;;;;;AAIA;EA/BE,OAAA,GAAU,IAAA;AAAA;AAAA,KAGA,iBAAA;EAsCD;;;;;;EA/BT,IAAA;EA+BS;;;;;AAUX;;EAhCE,IAAA;AAAA;AAAA,KAGU,WAAA;EACV,SAAA,EAAW,CAAA;EACX,SAAA,EAAW,mBAAA;AAAA;AAAA,KAGD,YAAA;EACV,KAAA,EAAO,WAAA;AAAA;AAAA,KAGG,aAAA;EAyFe;;;;EApFzB,GAAA,EAAK,YAAA;EA+BqB;;;;EA1B1B,MAAA,GAAS,YAAA;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5
5
  "description": "Retrieve Intlayer configurations and manage environment variables for both server-side and client-side environments.",
6
6
  "keywords": [
@@ -79,12 +79,12 @@
79
79
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
80
80
  },
81
81
  "devDependencies": {
82
- "@types/node": "25.0.10",
82
+ "@types/node": "25.2.2",
83
83
  "@utils/ts-config": "1.0.4",
84
84
  "@utils/ts-config-types": "1.0.4",
85
85
  "@utils/tsdown-config": "1.0.4",
86
86
  "rimraf": "6.1.2",
87
- "tsdown": "0.20.1",
87
+ "tsdown": "0.20.3",
88
88
  "typescript": "5.9.3",
89
89
  "vitest": "4.0.18",
90
90
  "zod": "4.3.6"