@intlayer/config 6.1.6 → 7.0.0-canary.0

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.
Files changed (236) hide show
  1. package/dist/cjs/_virtual/rolldown_runtime.cjs +34 -0
  2. package/dist/cjs/alias.cjs +27 -100
  3. package/dist/cjs/alias.cjs.map +1 -1
  4. package/dist/cjs/built.cjs +7 -25
  5. package/dist/cjs/built.cjs.map +1 -1
  6. package/dist/cjs/bundleJSFile.cjs +30 -51
  7. package/dist/cjs/bundleJSFile.cjs.map +1 -1
  8. package/dist/cjs/client.cjs +19 -52
  9. package/dist/cjs/configFile/buildConfigurationFields.cjs +100 -657
  10. package/dist/cjs/configFile/buildConfigurationFields.cjs.map +1 -1
  11. package/dist/cjs/configFile/getConfiguration.cjs +60 -114
  12. package/dist/cjs/configFile/getConfiguration.cjs.map +1 -1
  13. package/dist/cjs/configFile/index.cjs +8 -25
  14. package/dist/cjs/configFile/loadConfigurationFile.cjs +22 -47
  15. package/dist/cjs/configFile/loadConfigurationFile.cjs.map +1 -1
  16. package/dist/cjs/configFile/searchConfigurationFile.cjs +49 -55
  17. package/dist/cjs/configFile/searchConfigurationFile.cjs.map +1 -1
  18. package/dist/cjs/defaultValues/build.cjs +23 -35
  19. package/dist/cjs/defaultValues/build.cjs.map +1 -1
  20. package/dist/cjs/defaultValues/content.cjs +68 -70
  21. package/dist/cjs/defaultValues/content.cjs.map +1 -1
  22. package/dist/cjs/defaultValues/editor.cjs +29 -41
  23. package/dist/cjs/defaultValues/editor.cjs.map +1 -1
  24. package/dist/cjs/defaultValues/index.cjs +62 -0
  25. package/dist/cjs/defaultValues/index.cjs.map +1 -0
  26. package/dist/cjs/defaultValues/internationalization.cjs +23 -34
  27. package/dist/cjs/defaultValues/internationalization.cjs.map +1 -1
  28. package/dist/cjs/defaultValues/log.cjs +17 -29
  29. package/dist/cjs/defaultValues/log.cjs.map +1 -1
  30. package/dist/cjs/defaultValues/routing.cjs +38 -0
  31. package/dist/cjs/defaultValues/routing.cjs.map +1 -0
  32. package/dist/cjs/extractErrorMessage.cjs +95 -0
  33. package/dist/cjs/extractErrorMessage.cjs.map +1 -0
  34. package/dist/cjs/index.cjs +67 -98
  35. package/dist/cjs/loadEnvFile.cjs +30 -51
  36. package/dist/cjs/loadEnvFile.cjs.map +1 -1
  37. package/dist/cjs/loadExternalFile/bundleFile.cjs +74 -0
  38. package/dist/cjs/loadExternalFile/bundleFile.cjs.map +1 -0
  39. package/dist/cjs/loadExternalFile/loadExternalFile.cjs +86 -0
  40. package/dist/cjs/loadExternalFile/loadExternalFile.cjs.map +1 -0
  41. package/dist/cjs/loadExternalFile/parseFileContent.cjs +67 -0
  42. package/dist/cjs/loadExternalFile/parseFileContent.cjs.map +1 -0
  43. package/dist/cjs/loadExternalFile/transpileTSToMJS.cjs +60 -0
  44. package/dist/cjs/loadExternalFile/transpileTSToMJS.cjs.map +1 -0
  45. package/dist/cjs/logger.cjs +124 -152
  46. package/dist/cjs/logger.cjs.map +1 -1
  47. package/dist/cjs/package.cjs +12 -0
  48. package/dist/cjs/package.cjs.map +1 -0
  49. package/dist/cjs/retryManager.cjs +42 -49
  50. package/dist/cjs/retryManager.cjs.map +1 -1
  51. package/dist/cjs/utils/ESMxCJSHelpers.cjs +24 -33
  52. package/dist/cjs/utils/ESMxCJSHelpers.cjs.map +1 -1
  53. package/dist/cjs/utils/cache.cjs +426 -0
  54. package/dist/cjs/utils/cache.cjs.map +1 -0
  55. package/dist/cjs/utils/clearModuleCache.cjs +23 -46
  56. package/dist/cjs/utils/clearModuleCache.cjs.map +1 -1
  57. package/dist/cjs/utils/extractErrorMessage.cjs +95 -0
  58. package/dist/cjs/utils/extractErrorMessage.cjs.map +1 -0
  59. package/dist/cjs/utils/getExtension.cjs +12 -35
  60. package/dist/cjs/utils/getExtension.cjs.map +1 -1
  61. package/dist/cjs/utils/getPackageJsonPath.cjs +37 -0
  62. package/dist/cjs/utils/getPackageJsonPath.cjs.map +1 -0
  63. package/dist/cjs/utils/logStack.cjs +16 -0
  64. package/dist/cjs/utils/logStack.cjs.map +1 -0
  65. package/dist/cjs/utils/normalizePath.cjs +15 -27
  66. package/dist/cjs/utils/normalizePath.cjs.map +1 -1
  67. package/dist/esm/_virtual/rolldown_runtime.mjs +17 -0
  68. package/dist/esm/alias.mjs +23 -74
  69. package/dist/esm/alias.mjs.map +1 -1
  70. package/dist/esm/built.mjs +5 -3
  71. package/dist/esm/built.mjs.map +1 -1
  72. package/dist/esm/bundleJSFile.mjs +26 -25
  73. package/dist/esm/bundleJSFile.mjs.map +1 -1
  74. package/dist/esm/client.mjs +4 -31
  75. package/dist/esm/configFile/buildConfigurationFields.mjs +97 -674
  76. package/dist/esm/configFile/buildConfigurationFields.mjs.map +1 -1
  77. package/dist/esm/configFile/getConfiguration.mjs +52 -75
  78. package/dist/esm/configFile/getConfiguration.mjs.map +1 -1
  79. package/dist/esm/configFile/index.mjs +5 -3
  80. package/dist/esm/configFile/loadConfigurationFile.mjs +22 -23
  81. package/dist/esm/configFile/loadConfigurationFile.mjs.map +1 -1
  82. package/dist/esm/configFile/searchConfigurationFile.mjs +45 -30
  83. package/dist/esm/configFile/searchConfigurationFile.mjs.map +1 -1
  84. package/dist/esm/defaultValues/build.mjs +16 -11
  85. package/dist/esm/defaultValues/build.mjs.map +1 -1
  86. package/dist/esm/defaultValues/content.mjs +48 -34
  87. package/dist/esm/defaultValues/content.mjs.map +1 -1
  88. package/dist/esm/defaultValues/editor.mjs +17 -11
  89. package/dist/esm/defaultValues/editor.mjs.map +1 -1
  90. package/dist/esm/defaultValues/index.mjs +21 -0
  91. package/dist/esm/defaultValues/index.mjs.map +1 -0
  92. package/dist/esm/defaultValues/internationalization.mjs +13 -7
  93. package/dist/esm/defaultValues/internationalization.mjs.map +1 -1
  94. package/dist/esm/defaultValues/log.mjs +10 -4
  95. package/dist/esm/defaultValues/log.mjs.map +1 -1
  96. package/dist/esm/defaultValues/routing.mjs +25 -0
  97. package/dist/esm/defaultValues/routing.mjs.map +1 -0
  98. package/dist/esm/extractErrorMessage.mjs +94 -0
  99. package/dist/esm/extractErrorMessage.mjs.map +1 -0
  100. package/dist/esm/index.mjs +18 -61
  101. package/dist/esm/loadEnvFile.mjs +27 -17
  102. package/dist/esm/loadEnvFile.mjs.map +1 -1
  103. package/dist/esm/loadExternalFile/bundleFile.mjs +68 -0
  104. package/dist/esm/loadExternalFile/bundleFile.mjs.map +1 -0
  105. package/dist/esm/loadExternalFile/loadExternalFile.mjs +81 -0
  106. package/dist/esm/loadExternalFile/loadExternalFile.mjs.map +1 -0
  107. package/dist/esm/loadExternalFile/parseFileContent.mjs +63 -0
  108. package/dist/esm/loadExternalFile/parseFileContent.mjs.map +1 -0
  109. package/dist/esm/loadExternalFile/transpileTSToMJS.mjs +55 -0
  110. package/dist/esm/loadExternalFile/transpileTSToMJS.mjs.map +1 -0
  111. package/dist/esm/logger.mjs +110 -115
  112. package/dist/esm/logger.mjs.map +1 -1
  113. package/dist/esm/package.mjs +6 -0
  114. package/dist/esm/package.mjs.map +1 -0
  115. package/dist/esm/retryManager.mjs +40 -23
  116. package/dist/esm/retryManager.mjs.map +1 -1
  117. package/dist/esm/utils/ESMxCJSHelpers.mjs +20 -6
  118. package/dist/esm/utils/ESMxCJSHelpers.mjs.map +1 -1
  119. package/dist/esm/utils/cache.mjs +414 -0
  120. package/dist/esm/utils/cache.mjs.map +1 -0
  121. package/dist/esm/utils/clearModuleCache.mjs +22 -21
  122. package/dist/esm/utils/clearModuleCache.mjs.map +1 -1
  123. package/dist/esm/utils/extractErrorMessage.mjs +94 -0
  124. package/dist/esm/utils/extractErrorMessage.mjs.map +1 -0
  125. package/dist/esm/utils/getExtension.mjs +11 -11
  126. package/dist/esm/utils/getExtension.mjs.map +1 -1
  127. package/dist/esm/utils/getPackageJsonPath.mjs +33 -0
  128. package/dist/esm/utils/getPackageJsonPath.mjs.map +1 -0
  129. package/dist/esm/utils/logStack.mjs +16 -0
  130. package/dist/esm/utils/logStack.mjs.map +1 -0
  131. package/dist/esm/utils/normalizePath.mjs +14 -3
  132. package/dist/esm/utils/normalizePath.mjs.map +1 -1
  133. package/dist/types/alias.d.ts +20 -12
  134. package/dist/types/alias.d.ts.map +1 -1
  135. package/dist/types/built.d.ts +7 -6
  136. package/dist/types/built.d.ts.map +1 -1
  137. package/dist/types/bundleJSFile.d.ts +97 -93
  138. package/dist/types/bundleJSFile.d.ts.map +1 -1
  139. package/dist/types/client.d.ts +3 -5
  140. package/dist/types/configFile/buildConfigurationFields.d.ts +7 -2
  141. package/dist/types/configFile/buildConfigurationFields.d.ts.map +1 -1
  142. package/dist/types/configFile/getConfiguration.d.ts +19 -15
  143. package/dist/types/configFile/getConfiguration.d.ts.map +1 -1
  144. package/dist/types/configFile/index.d.ts +4 -3
  145. package/dist/types/configFile/loadConfigurationFile.d.ts +8 -3
  146. package/dist/types/configFile/loadConfigurationFile.d.ts.map +1 -1
  147. package/dist/types/configFile/searchConfigurationFile.d.ts +6 -4
  148. package/dist/types/configFile/searchConfigurationFile.d.ts.map +1 -1
  149. package/dist/types/defaultValues/build.d.ts +10 -4
  150. package/dist/types/defaultValues/build.d.ts.map +1 -1
  151. package/dist/types/defaultValues/content.d.ts +23 -16
  152. package/dist/types/defaultValues/content.d.ts.map +1 -1
  153. package/dist/types/defaultValues/editor.d.ts +14 -9
  154. package/dist/types/defaultValues/editor.d.ts.map +1 -1
  155. package/dist/types/defaultValues/index.d.ts +14 -0
  156. package/dist/types/defaultValues/index.d.ts.map +1 -0
  157. package/dist/types/defaultValues/internationalization.d.ts +12 -6
  158. package/dist/types/defaultValues/internationalization.d.ts.map +1 -1
  159. package/dist/types/defaultValues/log.d.ts +7 -2
  160. package/dist/types/defaultValues/log.d.ts.map +1 -1
  161. package/dist/types/defaultValues/routing.d.ts +14 -0
  162. package/dist/types/defaultValues/routing.d.ts.map +1 -0
  163. package/dist/types/extractErrorMessage.d.ts +5 -0
  164. package/dist/types/extractErrorMessage.d.ts.map +1 -0
  165. package/dist/types/index.d.ts +21 -17
  166. package/dist/types/loadEnvFile.d.ts +8 -5
  167. package/dist/types/loadEnvFile.d.ts.map +1 -1
  168. package/dist/types/loadExternalFile/bundleFile.d.ts +10 -0
  169. package/dist/types/loadExternalFile/bundleFile.d.ts.map +1 -0
  170. package/dist/types/loadExternalFile/loadExternalFile.d.ts +25 -0
  171. package/dist/types/loadExternalFile/loadExternalFile.d.ts.map +1 -0
  172. package/dist/types/loadExternalFile/parseFileContent.d.ts +29 -0
  173. package/dist/types/loadExternalFile/parseFileContent.d.ts.map +1 -0
  174. package/dist/types/loadExternalFile/transpileTSToMJS.d.ts +9 -0
  175. package/dist/types/loadExternalFile/transpileTSToMJS.d.ts.map +1 -0
  176. package/dist/types/logger.d.ts +41 -37
  177. package/dist/types/logger.d.ts.map +1 -1
  178. package/dist/types/retryManager.d.ts +26 -8
  179. package/dist/types/retryManager.d.ts.map +1 -1
  180. package/dist/types/utils/ESMxCJSHelpers.d.ts +16 -2
  181. package/dist/types/utils/ESMxCJSHelpers.d.ts.map +1 -1
  182. package/dist/types/utils/cache.d.ts +50 -0
  183. package/dist/types/utils/cache.d.ts.map +1 -0
  184. package/dist/types/utils/clearModuleCache.d.ts +4 -1
  185. package/dist/types/utils/clearModuleCache.d.ts.map +1 -1
  186. package/dist/types/utils/extractErrorMessage.d.ts +5 -0
  187. package/dist/types/utils/extractErrorMessage.d.ts.map +1 -0
  188. package/dist/types/utils/getExtension.d.ts +6 -2
  189. package/dist/types/utils/getExtension.d.ts.map +1 -1
  190. package/dist/types/utils/getPackageJsonPath.d.ts +10 -0
  191. package/dist/types/utils/getPackageJsonPath.d.ts.map +1 -0
  192. package/dist/types/utils/logStack.d.ts +7 -0
  193. package/dist/types/utils/logStack.d.ts.map +1 -0
  194. package/dist/types/utils/normalizePath.d.ts +4 -1
  195. package/dist/types/utils/normalizePath.d.ts.map +1 -1
  196. package/package.json +40 -35
  197. package/LICENSE +0 -202
  198. package/dist/cjs/client.cjs.map +0 -1
  199. package/dist/cjs/configFile/index.cjs.map +0 -1
  200. package/dist/cjs/defaultValues/middleware.cjs +0 -47
  201. package/dist/cjs/defaultValues/middleware.cjs.map +0 -1
  202. package/dist/cjs/getSandboxContext.cjs +0 -64
  203. package/dist/cjs/getSandboxContext.cjs.map +0 -1
  204. package/dist/cjs/index.cjs.map +0 -1
  205. package/dist/cjs/loadExternalFile.cjs +0 -105
  206. package/dist/cjs/loadExternalFile.cjs.map +0 -1
  207. package/dist/cjs/types/config.cjs +0 -17
  208. package/dist/cjs/types/config.cjs.map +0 -1
  209. package/dist/cjs/types/locales.cjs +0 -310
  210. package/dist/cjs/types/locales.cjs.map +0 -1
  211. package/dist/esm/client.mjs.map +0 -1
  212. package/dist/esm/configFile/index.mjs.map +0 -1
  213. package/dist/esm/defaultValues/middleware.mjs +0 -17
  214. package/dist/esm/defaultValues/middleware.mjs.map +0 -1
  215. package/dist/esm/getSandboxContext.mjs +0 -40
  216. package/dist/esm/getSandboxContext.mjs.map +0 -1
  217. package/dist/esm/index.mjs.map +0 -1
  218. package/dist/esm/loadExternalFile.mjs +0 -81
  219. package/dist/esm/loadExternalFile.mjs.map +0 -1
  220. package/dist/esm/types/config.mjs +0 -1
  221. package/dist/esm/types/config.mjs.map +0 -1
  222. package/dist/esm/types/locales.mjs +0 -286
  223. package/dist/esm/types/locales.mjs.map +0 -1
  224. package/dist/types/client.d.ts.map +0 -1
  225. package/dist/types/configFile/index.d.ts.map +0 -1
  226. package/dist/types/defaultValues/middleware.d.ts +0 -8
  227. package/dist/types/defaultValues/middleware.d.ts.map +0 -1
  228. package/dist/types/getSandboxContext.d.ts +0 -4
  229. package/dist/types/getSandboxContext.d.ts.map +0 -1
  230. package/dist/types/index.d.ts.map +0 -1
  231. package/dist/types/loadExternalFile.d.ts +0 -8
  232. package/dist/types/loadExternalFile.d.ts.map +0 -1
  233. package/dist/types/types/config.d.ts +0 -659
  234. package/dist/types/types/config.d.ts.map +0 -1
  235. package/dist/types/types/locales.d.ts +0 -564
  236. package/dist/types/types/locales.d.ts.map +0 -1
@@ -1,105 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var loadExternalFile_exports = {};
20
- __export(loadExternalFile_exports, {
21
- loadExternalFile: () => loadExternalFile
22
- });
23
- module.exports = __toCommonJS(loadExternalFile_exports);
24
- var import_esbuild = require("esbuild");
25
- var import_path = require("path");
26
- var import_vm = require("vm");
27
- var import_getSandboxContext = require('./getSandboxContext.cjs');
28
- var import_logger = require('./logger.cjs');
29
- var import_ESMxCJSHelpers = require('./utils/ESMxCJSHelpers.cjs');
30
- const getTransformationOptions = (filePath) => ({
31
- loader: {
32
- ".js": "js",
33
- ".jsx": "jsx",
34
- ".mjs": "js",
35
- ".ts": "ts",
36
- ".tsx": "tsx",
37
- ".cjs": "js",
38
- ".json": "json",
39
- ".md": "text",
40
- ".mdx": "text"
41
- },
42
- format: "cjs",
43
- // Output format as commonjs
44
- target: "es2017",
45
- packages: "external",
46
- write: false,
47
- bundle: true,
48
- banner: {
49
- js: [
50
- `globalThis.intlayer_file_path = ${JSON.stringify(filePath)};`,
51
- `globalThis.intlayer_file_dir = ${JSON.stringify((0, import_path.dirname)(filePath))};`
52
- ].join("\n")
53
- }
54
- });
55
- const loadExternalFile = (filePath, envVarOptions, projectRequire, additionalEnvVars) => {
56
- let fileContent = void 0;
57
- const fileExtension = filePath.split(".").pop() ?? "";
58
- try {
59
- if (fileExtension === "json") {
60
- delete import_ESMxCJSHelpers.ESMxCJSRequire.cache[import_ESMxCJSHelpers.ESMxCJSRequire.resolve(filePath)];
61
- return (0, import_ESMxCJSHelpers.ESMxCJSRequire)(filePath);
62
- }
63
- const moduleResult = (0, import_esbuild.buildSync)({
64
- entryPoints: [filePath],
65
- ...getTransformationOptions(filePath)
66
- });
67
- const moduleResultString = moduleResult.outputFiles?.[0].text;
68
- if (!moduleResultString) {
69
- (0, import_logger.logger)("File could not be loaded.", { level: "error" });
70
- return void 0;
71
- }
72
- const sandboxContext = (0, import_getSandboxContext.getSandBoxContext)(
73
- envVarOptions,
74
- projectRequire,
75
- additionalEnvVars
76
- );
77
- (0, import_vm.runInNewContext)(moduleResultString, sandboxContext);
78
- if (sandboxContext.exports.default && Object.keys(sandboxContext.exports.default).length > 0) {
79
- fileContent = sandboxContext.exports.default;
80
- } else if (sandboxContext.module.exports.defaults && Object.keys(sandboxContext.module.exports.defaults).length > 0) {
81
- fileContent = sandboxContext.module.exports.default;
82
- } else if (sandboxContext.module.exports.default && Object.keys(sandboxContext.module.exports.default).length > 0) {
83
- fileContent = sandboxContext.module.exports.default;
84
- } else if (sandboxContext.module.exports && Object.keys(sandboxContext.module.exports).length > 0) {
85
- fileContent = sandboxContext.module.exports;
86
- }
87
- if (typeof fileContent === "undefined") {
88
- (0, import_logger.logger)(`File file could not be loaded. Path : ${filePath}`);
89
- return void 0;
90
- }
91
- return fileContent;
92
- } catch (error) {
93
- (0, import_logger.logger)(
94
- `Error: ${error} ${JSON.stringify(error.stack, null, 2)}`,
95
- {
96
- level: "error"
97
- }
98
- );
99
- }
100
- };
101
- // Annotate the CommonJS export names for ESM import in node:
102
- 0 && (module.exports = {
103
- loadExternalFile
104
- });
105
- //# sourceMappingURL=loadExternalFile.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/loadExternalFile.ts"],"sourcesContent":["import { buildSync, type BuildOptions, type BuildResult } from 'esbuild';\nimport { dirname } from 'path';\nimport { runInNewContext } from 'vm';\nimport { getSandBoxContext } from './getSandboxContext';\nimport { LoadEnvFileOptions } from './loadEnvFile';\nimport { logger } from './logger';\nimport { ESMxCJSRequire } from './utils/ESMxCJSHelpers';\n\nconst getTransformationOptions = (filePath: string): BuildOptions => ({\n loader: {\n '.js': 'js',\n '.jsx': 'jsx',\n '.mjs': 'js',\n '.ts': 'ts',\n '.tsx': 'tsx',\n '.cjs': 'js',\n '.json': 'json',\n '.md': 'text',\n '.mdx': 'text',\n },\n format: 'cjs', // Output format as commonjs\n target: 'es2017',\n packages: 'external',\n write: false,\n bundle: true,\n banner: {\n js: [\n `globalThis.intlayer_file_path = ${JSON.stringify(filePath)};`,\n `globalThis.intlayer_file_dir = ${JSON.stringify(dirname(filePath))};`,\n ].join('\\n'),\n },\n});\n\n/**\n * Load the content declaration from the given path\n *\n * Accepts JSON, JS, MJS and TS files as configuration\n */\nexport const loadExternalFile = (\n filePath: string,\n envVarOptions?: LoadEnvFileOptions,\n projectRequire?: NodeJS.Require,\n additionalEnvVars?: Record<string, string>\n): any | undefined => {\n let fileContent: any | undefined = undefined;\n\n const fileExtension = filePath.split('.').pop() ?? '';\n\n try {\n if (fileExtension === 'json') {\n // Remove cache to force reloading\n delete ESMxCJSRequire.cache[ESMxCJSRequire.resolve(filePath)];\n // Assume JSON\n return ESMxCJSRequire(filePath);\n }\n\n // Rest is JS, MJS or TS\n\n const moduleResult: BuildResult = buildSync({\n entryPoints: [filePath],\n ...getTransformationOptions(filePath),\n });\n\n const moduleResultString = moduleResult.outputFiles?.[0].text;\n\n if (!moduleResultString) {\n logger('File could not be loaded.', { level: 'error' });\n return undefined;\n }\n\n const sandboxContext = getSandBoxContext(\n envVarOptions,\n projectRequire,\n additionalEnvVars\n );\n\n runInNewContext(moduleResultString, sandboxContext);\n\n if (\n sandboxContext.exports.default &&\n Object.keys(sandboxContext.exports.default).length > 0\n ) {\n // ES Module\n fileContent = sandboxContext.exports.default;\n } else if (\n sandboxContext.module.exports.defaults &&\n Object.keys(sandboxContext.module.exports.defaults).length > 0\n ) {\n // CommonJS\n fileContent = sandboxContext.module.exports.default;\n } else if (\n sandboxContext.module.exports.default &&\n Object.keys(sandboxContext.module.exports.default).length > 0\n ) {\n // ES Module\n fileContent = sandboxContext.module.exports.default;\n } else if (\n sandboxContext.module.exports &&\n Object.keys(sandboxContext.module.exports).length > 0\n ) {\n // Other\n fileContent = sandboxContext.module.exports;\n }\n\n if (typeof fileContent === 'undefined') {\n logger(`File file could not be loaded. Path : ${filePath}`);\n return undefined;\n }\n\n return fileContent;\n } catch (error) {\n logger(\n `Error: ${error} ${JSON.stringify((error as Error).stack, null, 2)}`,\n {\n level: 'error',\n }\n );\n }\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAA+D;AAC/D,kBAAwB;AACxB,gBAAgC;AAChC,+BAAkC;AAElC,oBAAuB;AACvB,4BAA+B;AAE/B,MAAM,2BAA2B,CAAC,cAAoC;AAAA,EACpE,QAAQ;AAAA,IACN,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,OAAO;AAAA,IACP,QAAQ;AAAA,EACV;AAAA,EACA,QAAQ;AAAA;AAAA,EACR,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,QAAQ;AAAA,IACN,IAAI;AAAA,MACF,mCAAmC,KAAK,UAAU,QAAQ,CAAC;AAAA,MAC3D,kCAAkC,KAAK,cAAU,qBAAQ,QAAQ,CAAC,CAAC;AAAA,IACrE,EAAE,KAAK,IAAI;AAAA,EACb;AACF;AAOO,MAAM,mBAAmB,CAC9B,UACA,eACA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,UAAW,MAAgB,OAAO,MAAM,CAAC,CAAC;AAAA,MAClE;AAAA,QACE,OAAO;AAAA,MACT;AAAA,IACF;AAAA,EACF;AACF;","names":[]}
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from === "object" || typeof from === "function") {
8
- for (let key of __getOwnPropNames(from))
9
- if (!__hasOwnProp.call(to, key) && key !== except)
10
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
- }
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
- var config_exports = {};
16
- module.exports = __toCommonJS(config_exports);
17
- //# sourceMappingURL=config.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/types/config.ts"],"sourcesContent":["import type { Locales } from './locales';\n\nexport type StrictMode = 'strict' | 'inclusive' | 'loose';\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: Locales[];\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: Locales[];\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: Locales;\n};\n\nexport type ServerSetCookieRule = 'always' | 'never';\n\n/**\n * Configuration for middleware behaviors\n */\nexport type MiddlewareConfig = {\n /**\n * Header name to get the locale from the request\n *\n * Default: 'x-intlayer-locale'\n *\n * The HTTP header key used to determine the current locale.\n */\n headerName: string;\n\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 cookieName: string;\n\n /**\n * Prefix default prefix the default locale to the path as other locales.\n *\n * Example with prefixDefault = true and defaultLocale = 'en':\n * path = /en/dashboard or /fr/dashboard\n *\n * Example with prefixDefault = false and defaultLocale = 'en':\n * path = /dashboard or /fr/dashboard\n *\n *\n * Default: false\n */\n prefixDefault: boolean;\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 * Strategy for setting the locale cookie on the server\n *\n * Default: 'always'\n *\n * This setting controls when the server sets the locale cookie. It can either set the cookie on every request or never set it.\n */\n serverSetCookie: ServerSetCookieRule;\n\n /**\n * Indicates if no prefix should be used in the URL for locale\n *\n * Default: false\n *\n * If true, no locale-based prefix is used in the URL.\n */\n noPrefix: boolean;\n\n /**\n * Controls whether locale detection occurs during Next.js prefetch requests\n * - true: Detect and apply locale during prefetch\n * - false: Use default locale during prefetch (recommended)\n *\n * This setting affects how Next.js handles locale prefetching:\n *\n * Example scenario:\n * - User's browser language is 'fr'\n * - Current page is /fr/about\n * - Link prefetches /about\n *\n * With `detectLocaleOnPrefetchNoPrefix:true`\n * - Prefetch detects 'fr' locale from browser\n * - Redirects prefetch to /fr/about\n *\n * With `detectLocaleOnPrefetchNoPrefix:false` (default)\n * - Prefetch uses default locale\n * - Redirects prefetch to /en/about (assuming 'en' is default)\n *\n * When to use true:\n * - Your app uses non-localized internal links (e.g. <a href=\"/about\">)\n * - You want consistent locale detection behavior between regular and prefetch requests\n *\n * When to use false (default):\n * - Your app uses locale-prefixed links (e.g. <a href=\"/fr/about\">)\n * - You want to optimize prefetching performance\n * - You want to avoid potential redirect loops\n *\n * Default: false\n */\n detectLocaleOnPrefetchNoPrefix: boolean;\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 * > '*' means that the editor is accessible from any origin\n *\n * Default: '*'\n */\n applicationURL: string;\n\n /**\n * URL of the editor server. Used to restrict the origin of the editor for security reasons.\n *\n * > '*' means that the editor is accessible from any origin\n *\n * Default: 'http://localhost:8000'\n */\n editorURL: string;\n\n /**\n * URL of the CMS server. Used to restrict the origin of the editor for security reasons.\n *\n * Default: 'https://intlayer.org'\n */\n cmsURL: string;\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: string;\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://intlayer.org/dashboard/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://intlayer.org/dashboard/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: string;\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 *\n * Default: 'openai'\n */\n provider?: string;\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\nexport type BuildConfig = {\n /**\n * Indicates if the build should be optimized\n *\n * Default: process.env.NODE_ENV === 'production'\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 * - \"live\": The dictionaries are imported dynamically using the live sync API.\n * In that case, Intlayer will replace all calls to `useIntlayer` with `useDictionaryDynamic`.\n * Live 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 \"live\" 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' | 'live';\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,mjx,cjx}', '!**\\/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/**\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 middleware configuration\n */\n middleware?: Partial<MiddlewareConfig>;\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 middleware 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 plugins configuration\n */\n plugins?: PluginConfig[];\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 * Middleware configuration\n */\n middleware: MiddlewareConfig;\n\n /**\n * Content configuration\n */\n content: ContentConfig;\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 * Plugins configuration\n */\n plugins?: PluginConfig[];\n};\n\n/**\n * Base configuration for content handling\n */\nexport type BaseContentConfig = {\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 * 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 * Indicate how the content should be automatically filled using AI.\n *\n * Default: undefined\n *\n */\n autoFill?: boolean | string | { [key in Locales]?: string };\n};\n\n/**\n * Configuration derived based on the base content configuration\n */\nexport type BaseDerivedConfig = {\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 contentDir: string[];\n\n /**\n * Directory where the results are stored, relative to the base directory\n *\n * Default: .intlayer/dictionary\n *\n * Derived results directory based on the base configuration.\n */\n dictionariesDir: string;\n\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/**\n * Configuration derived based on the result directory\n */\nexport type ResultDirDerivedConfig = {\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/**\n * Configuration for content patterns\n */\nexport type PatternsContentConfig = {\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 /**\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\n// @TODO: Implement exclusion of non configurable fields, to not allow them to be set in the config\n/**\n * General configuration derived from the config file\n */\nexport type ContentConfig = BaseContentConfig &\n BaseDerivedConfig &\n ResultDirDerivedConfig &\n PatternsContentConfig;\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\nexport type PluginConfig = {\n /**\n * Name of the plugin\n */\n name: string;\n};\n"],"mappings":";;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
@@ -1,310 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var locales_exports = {};
20
- __export(locales_exports, {
21
- Locales: () => Locales
22
- });
23
- module.exports = __toCommonJS(locales_exports);
24
- var Locales = /* @__PURE__ */ ((Locales2) => {
25
- Locales2["AFRIKAANS"] = "af";
26
- Locales2["AFRIKAANS_SOUTH_AFRICA"] = "af-ZA";
27
- Locales2["ARABIC"] = "ar";
28
- Locales2["ARABIC_UNITED_ARAB_EMIRATES"] = "ar-AE";
29
- Locales2["ARABIC_BAHRAIN"] = "ar-BH";
30
- Locales2["ARABIC_ALGERIA"] = "ar-DZ";
31
- Locales2["ARABIC_EGYPT"] = "ar-EG";
32
- Locales2["ARABIC_IRAQ"] = "ar-IQ";
33
- Locales2["ARABIC_JORDAN"] = "ar-JO";
34
- Locales2["ARABIC_KUWAIT"] = "ar-KW";
35
- Locales2["ARABIC_LEBANON"] = "ar-LB";
36
- Locales2["ARABIC_LIBYA"] = "ar-LY";
37
- Locales2["ARABIC_MOROCCO"] = "ar-MA";
38
- Locales2["ARABIC_OMAN"] = "ar-OM";
39
- Locales2["ARABIC_QATAR"] = "ar-QA";
40
- Locales2["ARABIC_SAUDI_ARABIA"] = "ar-SA";
41
- Locales2["ARABIC_SYRIA"] = "ar-SY";
42
- Locales2["ARABIC_TUNISIA"] = "ar-TN";
43
- Locales2["ARABIC_YEMEN"] = "ar-YE";
44
- Locales2["AZERI_LATIN"] = "az";
45
- Locales2["AZERI_LATIN_AZERBAIJAN"] = "az-AZ";
46
- Locales2["BELARUSIAN"] = "be";
47
- Locales2["BELARUSIAN_BELARUS"] = "be-BY";
48
- Locales2["BULGARIAN"] = "bg";
49
- Locales2["BULGARIAN_BULGARIA"] = "bg-BG";
50
- Locales2["BOSNIAN"] = "bs";
51
- Locales2["BOSNIAN_BOSNIA_AND_HERZEGOVINA"] = "bs-BA";
52
- Locales2["CATALAN"] = "ca";
53
- Locales2["CATALAN_SPAIN"] = "ca-ES";
54
- Locales2["CZECH"] = "cs";
55
- Locales2["CZECH_CZECH_REPUBLIC"] = "cs-CZ";
56
- Locales2["WELSH"] = "cy";
57
- Locales2["WELSH_UNITED_KINGDOM"] = "cy-GB";
58
- Locales2["DANISH"] = "da";
59
- Locales2["DANISH_DENMARK"] = "da-DK";
60
- Locales2["GERMAN"] = "de";
61
- Locales2["GERMAN_AUSTRIA"] = "de-AT";
62
- Locales2["GERMAN_SWITZERLAND"] = "de-CH";
63
- Locales2["GERMAN_GERMANY"] = "de-DE";
64
- Locales2["GERMAN_LIECHTENSTEIN"] = "de-LI";
65
- Locales2["GERMAN_LUXEMBOURG"] = "de-LU";
66
- Locales2["DIVEHI"] = "dv";
67
- Locales2["DIVEHI_MALDIVES"] = "dv-MV";
68
- Locales2["GREEK"] = "el";
69
- Locales2["GREEK_GREECE"] = "el-GR";
70
- Locales2["ENGLISH"] = "en";
71
- Locales2["ENGLISH_AUSTRALIA"] = "en-AU";
72
- Locales2["ENGLISH_BELIZE"] = "en-BZ";
73
- Locales2["ENGLISH_CANADA"] = "en-CA";
74
- Locales2["ENGLISH_CARIBBEAN"] = "en-CB";
75
- Locales2["ENGLISH_UNITED_KINGDOM"] = "en-GB";
76
- Locales2["ENGLISH_IRELAND"] = "en-IE";
77
- Locales2["ENGLISH_JAMAICA"] = "en-JM";
78
- Locales2["ENGLISH_NEW_ZEALAND"] = "en-NZ";
79
- Locales2["ENGLISH_PHILIPPINES"] = "en-PH";
80
- Locales2["ENGLISH_TRINIDAD_AND_TOBAGO"] = "en-TT";
81
- Locales2["ENGLISH_UNITED_STATES"] = "en-US";
82
- Locales2["ENGLISH_SOUTH_AFRICA"] = "en-ZA";
83
- Locales2["ENGLISH_ZIMBABWE"] = "en-ZW";
84
- Locales2["ESPERANTO"] = "eo";
85
- Locales2["SPANISH"] = "es";
86
- Locales2["SPANISH_ARGENTINA"] = "es-AR";
87
- Locales2["SPANISH_BOLIVIA"] = "es-BO";
88
- Locales2["SPANISH_CHILE"] = "es-CL";
89
- Locales2["SPANISH_COLOMBIA"] = "es-CO";
90
- Locales2["SPANISH_COSTA_RICA"] = "es-CR";
91
- Locales2["SPANISH_DOMINICAN_REPUBLIC"] = "es-DO";
92
- Locales2["SPANISH_ECUADOR"] = "es-EC";
93
- Locales2["SPANISH_SPAIN"] = "es-ES";
94
- Locales2["SPANISH_GUATEMALA"] = "es-GT";
95
- Locales2["SPANISH_HONDURAS"] = "es-HN";
96
- Locales2["SPANISH_MEXICO"] = "es-MX";
97
- Locales2["SPANISH_NICARAGUA"] = "es-NI";
98
- Locales2["SPANISH_PANAMA"] = "es-PA";
99
- Locales2["SPANISH_PERU"] = "es-PE";
100
- Locales2["SPANISH_PUERTO_RICO"] = "es-PR";
101
- Locales2["SPANISH_PARAGUAY"] = "es-PY";
102
- Locales2["SPANISH_EL_SALVADOR"] = "es-SV";
103
- Locales2["SPANISH_URUGUAY"] = "es-UY";
104
- Locales2["SPANISH_VENEZUELA"] = "es-VE";
105
- Locales2["ESTONIAN"] = "et";
106
- Locales2["ESTONIAN_ESTONIA"] = "et-EE";
107
- Locales2["BASQUE"] = "eu";
108
- Locales2["BASQUE_SPAIN"] = "eu-ES";
109
- Locales2["FARSI"] = "fa";
110
- Locales2["FARSI_IRAN"] = "fa-IR";
111
- Locales2["FINNISH"] = "fi";
112
- Locales2["FINNISH_FINLAND"] = "fi-FI";
113
- Locales2["FAROESE"] = "fo";
114
- Locales2["FAROESE_FAROE_ISLANDS"] = "fo-FO";
115
- Locales2["FRENCH"] = "fr";
116
- Locales2["FRENCH_BELGIUM"] = "fr-BE";
117
- Locales2["FRENCH_CANADA"] = "fr-CA";
118
- Locales2["FRENCH_SWITZERLAND"] = "fr-CH";
119
- Locales2["FRENCH_FRANCE"] = "fr-FR";
120
- Locales2["FRENCH_LUXEMBOURG"] = "fr-LU";
121
- Locales2["FRENCH_PRINCIPALITY_OF_MONACO"] = "fr-MC";
122
- Locales2["GALICIAN"] = "gl";
123
- Locales2["GALICIAN_SPAIN"] = "gl-ES";
124
- Locales2["GUJARATI"] = "gu";
125
- Locales2["GUJARATI_INDIA"] = "gu-IN";
126
- Locales2["HEBREW"] = "he";
127
- Locales2["HEBREW_ISRAEL"] = "he-IL";
128
- Locales2["HINDI"] = "hi";
129
- Locales2["HINDI_INDIA"] = "hi-IN";
130
- Locales2["CROATIAN"] = "hr";
131
- Locales2["CROATIAN_BOSNIA_AND_HERZEGOVINA"] = "hr-BA";
132
- Locales2["CROATIAN_CROATIA"] = "hr-HR";
133
- Locales2["HUNGARIAN"] = "hu";
134
- Locales2["HUNGARIAN_HUNGARY"] = "hu-HU";
135
- Locales2["ARMENIAN"] = "hy";
136
- Locales2["ARMENIAN_ARMENIA"] = "hy-AM";
137
- Locales2["INDONESIAN"] = "id";
138
- Locales2["INDONESIAN_INDONESIA"] = "id-ID";
139
- Locales2["ICELANDIC"] = "is";
140
- Locales2["ICELANDIC_ICELAND"] = "is-IS";
141
- Locales2["ITALIAN"] = "it";
142
- Locales2["ITALIAN_SWITZERLAND"] = "it-CH";
143
- Locales2["ITALIAN_ITALY"] = "it-IT";
144
- Locales2["JAPANESE"] = "ja";
145
- Locales2["JAPANESE_JAPAN"] = "ja-JP";
146
- Locales2["GEORGIAN"] = "ka";
147
- Locales2["GEORGIAN_GEORGIA"] = "ka-GE";
148
- Locales2["KAZAKH"] = "kk";
149
- Locales2["KAZAKH_KAZAKHSTAN"] = "kk-KZ";
150
- Locales2["KANNADA"] = "kn";
151
- Locales2["KANNADA_INDIA"] = "kn-IN";
152
- Locales2["KOREAN"] = "ko";
153
- Locales2["KOREAN_KOREA"] = "ko-KR";
154
- Locales2["KONKANI"] = "kok";
155
- Locales2["KONKANI_INDIA"] = "kok-IN";
156
- Locales2["KYRGYZ"] = "ky";
157
- Locales2["KYRGYZ_KYRGYZSTAN"] = "ky-KG";
158
- Locales2["LITHUANIAN"] = "lt";
159
- Locales2["LITHUANIAN_LITHUANIA"] = "lt-LT";
160
- Locales2["LATVIAN"] = "lv";
161
- Locales2["LATVIAN_LATVIA"] = "lv-LV";
162
- Locales2["MAORI"] = "mi";
163
- Locales2["MAORI_NEW_ZEALAND"] = "mi-NZ";
164
- Locales2["FYRO_MACEDONIAN"] = "mk";
165
- Locales2["FYRO_MACEDONIAN_MACEDONIA"] = "mk-MK";
166
- Locales2["MONGOLIAN"] = "mn";
167
- Locales2["MONGOLIAN_MONGOLIA"] = "mn-MN";
168
- Locales2["MARATHI"] = "mr";
169
- Locales2["MARATHI_INDIA"] = "mr-IN";
170
- Locales2["MALAY"] = "ms";
171
- Locales2["MALAY_BRUNEI_DARUSSALAM"] = "ms-BN";
172
- Locales2["MALAY_MALAYSIA"] = "ms-MY";
173
- Locales2["MALTESE"] = "mt";
174
- Locales2["MALTESE_MALTA"] = "mt-MT";
175
- Locales2["NORWEGIAN_BOKMAL"] = "nb";
176
- Locales2["NORWEGIAN_BOKMAL_NORWAY"] = "nb-NO";
177
- Locales2["DUTCH"] = "nl";
178
- Locales2["DUTCH_BELGIUM"] = "nl-BE";
179
- Locales2["DUTCH_NETHERLANDS"] = "nl-NL";
180
- Locales2["NORWEGIAN_NYNORSK_NORWAY"] = "nn-NO";
181
- Locales2["NORTHERN_SOTHO"] = "ns";
182
- Locales2["NORTHERN_SOTHO_SOUTH_AFRICA"] = "ns-ZA";
183
- Locales2["PUNJABI"] = "pa";
184
- Locales2["PUNJABI_INDIA"] = "pa-IN";
185
- Locales2["POLISH"] = "pl";
186
- Locales2["POLISH_POLAND"] = "pl-PL";
187
- Locales2["PASHTO"] = "ps";
188
- Locales2["PASHTO_AFGHANISTAN"] = "ps-AR";
189
- Locales2["PORTUGUESE"] = "pt";
190
- Locales2["PORTUGUESE_BRAZIL"] = "pt-BR";
191
- Locales2["PORTUGUESE_PORTUGAL"] = "pt-PT";
192
- Locales2["QUECHUA"] = "qu";
193
- Locales2["QUECHUA_BOLIVIA"] = "qu-BO";
194
- Locales2["QUECHUA_ECUADOR"] = "qu-EC";
195
- Locales2["QUECHUA_PERU"] = "qu-PE";
196
- Locales2["ROMANIAN"] = "ro";
197
- Locales2["ROMANIAN_ROMANIA"] = "ro-RO";
198
- Locales2["RUSSIAN"] = "ru";
199
- Locales2["RUSSIAN_RUSSIA"] = "ru-RU";
200
- Locales2["SANSKRIT"] = "sa";
201
- Locales2["SANSKRIT_INDIA"] = "sa-IN";
202
- Locales2["SAMI_NORTHERN"] = "se";
203
- Locales2["SAMI_NORTHERN_FINLAND"] = "se-FI";
204
- Locales2["SAMI_NORTHERN_NORWAY"] = "se-NO";
205
- Locales2["SAMI_NORTHERN_SWEDEN"] = "se-SE";
206
- Locales2["SLOVAK"] = "sk";
207
- Locales2["SLOVAK_SLOVAKIA"] = "sk-SK";
208
- Locales2["SLOVENIAN"] = "sl";
209
- Locales2["SLOVENIAN_SLOVENIA"] = "sl-SI";
210
- Locales2["ALBANIAN"] = "sq";
211
- Locales2["ALBANIAN_ALBANIA"] = "sq-AL";
212
- Locales2["SERBIAN_LATIN"] = "sr";
213
- Locales2["SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA"] = "sr-BA";
214
- Locales2["SERBIAN_LATIN_SERBIA_AND_MONTENEGRO"] = "sr-SP";
215
- Locales2["SWEDISH"] = "sv";
216
- Locales2["SWEDISH_FINLAND"] = "sv-FI";
217
- Locales2["SWEDISH_SWEDEN"] = "sv-SE";
218
- Locales2["SWAHILI"] = "sw";
219
- Locales2["SWAHILI_KENYA"] = "sw-KE";
220
- Locales2["SYRIAC"] = "syr";
221
- Locales2["SYRIAC_SYRIA"] = "syr-SY";
222
- Locales2["TAMIL"] = "ta";
223
- Locales2["TAMIL_INDIA"] = "ta-IN";
224
- Locales2["TELUGU"] = "te";
225
- Locales2["TELUGU_INDIA"] = "te-IN";
226
- Locales2["THAI"] = "th";
227
- Locales2["THAI_THAILAND"] = "th-TH";
228
- Locales2["TAGALOG"] = "tl";
229
- Locales2["TAGALOG_PHILIPPINES"] = "tl-PH";
230
- Locales2["TSWANA"] = "tn";
231
- Locales2["TSWANA_SOUTH_AFRICA"] = "tn-ZA";
232
- Locales2["TURKISH"] = "tr";
233
- Locales2["TURKISH_TURKEY"] = "tr-TR";
234
- Locales2["TATAR"] = "tt";
235
- Locales2["TATAR_RUSSIA"] = "tt-RU";
236
- Locales2["TSOGA"] = "ts";
237
- Locales2["UKRAINIAN"] = "uk";
238
- Locales2["UKRAINIAN_UKRAINE"] = "uk-UA";
239
- Locales2["URDU"] = "ur";
240
- Locales2["URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN"] = "ur-PK";
241
- Locales2["UZBEK_LATIN"] = "uz";
242
- Locales2["UZBEK_LATIN_UZBEKISTAN"] = "uz-UZ";
243
- Locales2["VIETNAMESE"] = "vi";
244
- Locales2["VIETNAMESE_VIET_NAM"] = "vi-VN";
245
- Locales2["XHOSA"] = "xh";
246
- Locales2["XHOSA_SOUTH_AFRICA"] = "xh-ZA";
247
- Locales2["CHINESE"] = "zh";
248
- Locales2["CHINESE_SIMPLIFIED"] = "zh-Hans";
249
- Locales2["CHINESE_SIMPLIFIED_CHINA"] = "zh-CN";
250
- Locales2["CHINESE_HONG_KONG"] = "zh-HK";
251
- Locales2["CHINESE_MACAU"] = "zh-MO";
252
- Locales2["CHINESE_SINGAPORE"] = "zh-SG";
253
- Locales2["CHINESE_TRADITIONAL"] = "zh-Hant";
254
- Locales2["ZULU"] = "zu";
255
- Locales2["ZULU_SOUTH_AFRICA"] = "zu-ZA";
256
- Locales2["BENGALI"] = "bn";
257
- Locales2["BENGALI_BANGLADESH"] = "bn-BD";
258
- Locales2["BENGALI_INDIA"] = "bn-IN";
259
- Locales2["BENGALI_MYANMAR"] = "bn-MM";
260
- Locales2["BURMESE"] = "my";
261
- Locales2["BURMESE_MYANMAR"] = "my-MM";
262
- Locales2["KHMER"] = "km";
263
- Locales2["KHMER_CAMBODIA"] = "km-KH";
264
- Locales2["LAO"] = "lo";
265
- Locales2["LAO_LAOS"] = "lo-LA";
266
- Locales2["YORUBA"] = "yo";
267
- Locales2["YORUBA_NIGERIA"] = "yo-NG";
268
- Locales2["AMHARIC"] = "am";
269
- Locales2["AMHARIC_ETHIOPIA"] = "am-ET";
270
- Locales2["NEPALI"] = "ne";
271
- Locales2["NEPALI_NEPAL"] = "ne-NP";
272
- Locales2["SINHALA"] = "si";
273
- Locales2["SINHALA_SRI_LANKA"] = "si-LK";
274
- Locales2["SERBIAN_CYRILLIC"] = "sr-Cyrl";
275
- Locales2["SERBIAN_CYRILLIC_SERBIA"] = "sr-RS";
276
- Locales2["SERBIAN_CYRILLIC_BOSNIA_AND_HERZEGOVINA"] = "sr-BA";
277
- Locales2["ENGLISH_INDIA"] = "en-IN";
278
- Locales2["ENGLISH_SINGAPORE"] = "en-SG";
279
- Locales2["ENGLISH_HONG_KONG"] = "en-HK";
280
- Locales2["ENGLISH_NIGERIA"] = "en-NG";
281
- Locales2["ENGLISH_PAKISTAN"] = "en-PK";
282
- Locales2["ENGLISH_MALAYSIA"] = "en-MY";
283
- Locales2["ENGLISH_BOTSWANA"] = "en-BW";
284
- Locales2["ENGLISH_KENYA"] = "en-KE";
285
- Locales2["ENGLISH_TANZANIA"] = "en-TZ";
286
- Locales2["ENGLISH_GHANA"] = "en-GH";
287
- Locales2["ENGLISH_UGANDA"] = "en-UG";
288
- Locales2["SPANISH_CUBA"] = "es-CU";
289
- Locales2["SPANISH_UNITED_STATES"] = "es-US";
290
- Locales2["PORTUGUESE_GUINEA_BISSAU"] = "pt-GW";
291
- Locales2["PORTUGUESE_MOZAMBIQUE"] = "pt-MZ";
292
- Locales2["PORTUGUESE_SAO_TOME_AND_PRINCIPE"] = "pt-ST";
293
- Locales2["PORTUGUESE_CAPE_VERDE"] = "pt-CV";
294
- Locales2["PORTUGUESE_TIMOR_LESTE"] = "pt-TL";
295
- Locales2["PORTUGUESE_MACAU"] = "pt-MO";
296
- Locales2["CHINESE_TAIWAN"] = "zh-TW";
297
- Locales2["ARABIC_MAURITANIA"] = "ar-MR";
298
- Locales2["ARABIC_PALESTINE"] = "ar-PS";
299
- Locales2["ARABIC_SUDAN"] = "ar-SD";
300
- Locales2["ARABIC_DJIBOUTI"] = "ar-DJ";
301
- Locales2["ARABIC_SOMALIA"] = "ar-SO";
302
- Locales2["ARABIC_CHAD"] = "ar-TD";
303
- Locales2["ARABIC_COMOROS"] = "ar-KM";
304
- return Locales2;
305
- })(Locales || {});
306
- // Annotate the CommonJS export names for ESM import in node:
307
- 0 && (module.exports = {
308
- Locales
309
- });
310
- //# sourceMappingURL=locales.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/types/locales.ts"],"sourcesContent":["/** Can be imported from a shared config */\nexport enum Locales {\n /** Afrikaans language */\n AFRIKAANS = 'af',\n /** Afrikaans language as used in South Africa */\n AFRIKAANS_SOUTH_AFRICA = 'af-ZA',\n /** Arabic language */\n ARABIC = 'ar',\n /** Arabic language as used in the United Arab Emirates */\n ARABIC_UNITED_ARAB_EMIRATES = 'ar-AE',\n /** Arabic language as used in Bahrain */\n ARABIC_BAHRAIN = 'ar-BH',\n /** Arabic language as used in Algeria */\n ARABIC_ALGERIA = 'ar-DZ',\n /** Arabic language as used in Egypt */\n ARABIC_EGYPT = 'ar-EG',\n /** Arabic language as used in Iraq */\n ARABIC_IRAQ = 'ar-IQ',\n /** Arabic language as used in Jordan */\n ARABIC_JORDAN = 'ar-JO',\n /** Arabic language as used in Kuwait */\n ARABIC_KUWAIT = 'ar-KW',\n /** Arabic language as used in Lebanon */\n ARABIC_LEBANON = 'ar-LB',\n /** Arabic language as used in Libya */\n ARABIC_LIBYA = 'ar-LY',\n /** Arabic language as used in Morocco */\n ARABIC_MOROCCO = 'ar-MA',\n /** Arabic language as used in Oman */\n ARABIC_OMAN = 'ar-OM',\n /** Arabic language as used in Qatar */\n ARABIC_QATAR = 'ar-QA',\n /** Arabic language as used in Saudi Arabia */\n ARABIC_SAUDI_ARABIA = 'ar-SA',\n /** Arabic language as used in Syria */\n ARABIC_SYRIA = 'ar-SY',\n /** Arabic language as used in Tunisia */\n ARABIC_TUNISIA = 'ar-TN',\n /** Arabic language as used in Yemen */\n ARABIC_YEMEN = 'ar-YE',\n /** Azeri language (Latin script) */\n AZERI_LATIN = 'az',\n /** Azeri language (Latin script) as used in Azerbaijan */\n AZERI_LATIN_AZERBAIJAN = 'az-AZ',\n /** Belarusian language */\n BELARUSIAN = 'be',\n /** Belarusian language as used in Belarus */\n BELARUSIAN_BELARUS = 'be-BY',\n /** Bulgarian language */\n BULGARIAN = 'bg',\n /** Bulgarian language as used in Bulgaria */\n BULGARIAN_BULGARIA = 'bg-BG',\n /** Bosnian */\n BOSNIAN = 'bs',\n /** Bosnian language as used in Bosnia and Herzegovina */\n BOSNIAN_BOSNIA_AND_HERZEGOVINA = 'bs-BA',\n /** Catalan language */\n CATALAN = 'ca',\n /** Catalan language as used in Spain */\n CATALAN_SPAIN = 'ca-ES',\n /** Czech language */\n CZECH = 'cs',\n /** Czech language as used in Czech Republic */\n CZECH_CZECH_REPUBLIC = 'cs-CZ',\n /** Welsh language */\n WELSH = 'cy',\n /** Welsh language as used in the United Kingdom */\n WELSH_UNITED_KINGDOM = 'cy-GB',\n /** Danish language */\n DANISH = 'da',\n /** Danish language as used in Denmark */\n DANISH_DENMARK = 'da-DK',\n /** German language */\n GERMAN = 'de',\n /** German language as used in Austria */\n GERMAN_AUSTRIA = 'de-AT',\n /** German language as used in Switzerland */\n GERMAN_SWITZERLAND = 'de-CH',\n /** German language as used in Germany */\n GERMAN_GERMANY = 'de-DE',\n /** German language as used in Liechtenstein */\n GERMAN_LIECHTENSTEIN = 'de-LI',\n /** German language as used in Luxembourg */\n GERMAN_LUXEMBOURG = 'de-LU',\n /** Divehi language */\n DIVEHI = 'dv',\n /** Divehi language as used in Maldives */\n DIVEHI_MALDIVES = 'dv-MV',\n /** Greek language */\n GREEK = 'el',\n /** Greek language as used in Greece */\n GREEK_GREECE = 'el-GR',\n /** English language */\n ENGLISH = 'en',\n /** English language as used in Australia */\n ENGLISH_AUSTRALIA = 'en-AU',\n /** English language as used in Belize */\n ENGLISH_BELIZE = 'en-BZ',\n /** English language as used in Canada */\n ENGLISH_CANADA = 'en-CA',\n /** English language as used in Caribbean */\n ENGLISH_CARIBBEAN = 'en-CB',\n /** English language as used in the United Kingdom */\n ENGLISH_UNITED_KINGDOM = 'en-GB',\n /** English language as used in Ireland */\n ENGLISH_IRELAND = 'en-IE',\n /** English language as used in Jamaica */\n ENGLISH_JAMAICA = 'en-JM',\n /** English language as used in New Zealand */\n ENGLISH_NEW_ZEALAND = 'en-NZ',\n /** English language as used in Philippines */\n ENGLISH_PHILIPPINES = 'en-PH',\n /** English language as used in Trinidad and Tobago */\n ENGLISH_TRINIDAD_AND_TOBAGO = 'en-TT',\n /** English language as used in the United States */\n ENGLISH_UNITED_STATES = 'en-US',\n /** English language as used in South Africa */\n ENGLISH_SOUTH_AFRICA = 'en-ZA',\n /** English language as used in Zimbabwe */\n ENGLISH_ZIMBABWE = 'en-ZW',\n /** Esperanto language */\n ESPERANTO = 'eo',\n /** Spanish language */\n SPANISH = 'es',\n /** Spanish language as used in Argentina */\n SPANISH_ARGENTINA = 'es-AR',\n /** Spanish language as used in Bolivia */\n SPANISH_BOLIVIA = 'es-BO',\n /** Spanish language as used in Chile */\n SPANISH_CHILE = 'es-CL',\n /** Spanish language as used in Colombia */\n SPANISH_COLOMBIA = 'es-CO',\n /** Spanish language as used in Costa Rica */\n SPANISH_COSTA_RICA = 'es-CR',\n /** Spanish language as used in Dominican Republic */\n SPANISH_DOMINICAN_REPUBLIC = 'es-DO',\n /** Spanish language as used in Ecuador */\n SPANISH_ECUADOR = 'es-EC',\n /** Spanish language as used in Spain */\n SPANISH_SPAIN = 'es-ES',\n /** Spanish language as used in Guatemala */\n SPANISH_GUATEMALA = 'es-GT',\n /** Spanish language as used in Honduras */\n SPANISH_HONDURAS = 'es-HN',\n /** Spanish language as used in Mexico */\n SPANISH_MEXICO = 'es-MX',\n /** Spanish language as used in Nicaragua */\n SPANISH_NICARAGUA = 'es-NI',\n /** Spanish language as used in Panama */\n SPANISH_PANAMA = 'es-PA',\n /** Spanish language as used in Peru */\n SPANISH_PERU = 'es-PE',\n /** Spanish language as used in Puerto Rico */\n SPANISH_PUERTO_RICO = 'es-PR',\n /** Spanish language as used in Paraguay */\n SPANISH_PARAGUAY = 'es-PY',\n /** Spanish language as used in El Salvador */\n SPANISH_EL_SALVADOR = 'es-SV',\n /** Spanish language as used in Uruguay */\n SPANISH_URUGUAY = 'es-UY',\n /** Spanish language as used in Venezuela */\n SPANISH_VENEZUELA = 'es-VE',\n /** Estonian language */\n ESTONIAN = 'et',\n /** Estonian language as used in Estonia */\n ESTONIAN_ESTONIA = 'et-EE',\n /** Basque language */\n BASQUE = 'eu',\n /** Basque language as used in Spain */\n BASQUE_SPAIN = 'eu-ES',\n /** Farsi language */\n FARSI = 'fa',\n /** Farsi language as used in Iran */\n FARSI_IRAN = 'fa-IR',\n /** Finnish language */\n FINNISH = 'fi',\n /** Finnish language as used in Finland */\n FINNISH_FINLAND = 'fi-FI',\n /** Faroese language */\n FAROESE = 'fo',\n /** Faroese language as used in Faroe Islands */\n FAROESE_FAROE_ISLANDS = 'fo-FO',\n /** French language */\n FRENCH = 'fr',\n /** French language as used in Belgium */\n FRENCH_BELGIUM = 'fr-BE',\n /** French language as used in Canada */\n FRENCH_CANADA = 'fr-CA',\n /** French language as used in Switzerland */\n FRENCH_SWITZERLAND = 'fr-CH',\n /** French language as used in France */\n FRENCH_FRANCE = 'fr-FR',\n /** French language as used in Luxembourg */\n FRENCH_LUXEMBOURG = 'fr-LU',\n /** French language as used in the Principality of Monaco */\n FRENCH_PRINCIPALITY_OF_MONACO = 'fr-MC',\n /** Galician language */\n GALICIAN = 'gl',\n /** Galician language as used in Spain */\n GALICIAN_SPAIN = 'gl-ES',\n /** Gujarati language */\n GUJARATI = 'gu',\n /** Gujarati language as used in India */\n GUJARATI_INDIA = 'gu-IN',\n /** Hebrew language */\n HEBREW = 'he',\n /** Hebrew language as used in Israel */\n HEBREW_ISRAEL = 'he-IL',\n /** Hindi language */\n HINDI = 'hi',\n /** Hindi language as used in India */\n HINDI_INDIA = 'hi-IN',\n /** Croatian language */\n CROATIAN = 'hr',\n /** Croatian language as used in Bosnia and Herzegovina */\n CROATIAN_BOSNIA_AND_HERZEGOVINA = 'hr-BA',\n /** Croatian language as used in Croatia */\n CROATIAN_CROATIA = 'hr-HR',\n /** Hungarian language */\n HUNGARIAN = 'hu',\n /** Hungarian language as used in Hungary */\n HUNGARIAN_HUNGARY = 'hu-HU',\n /** Armenian language */\n ARMENIAN = 'hy',\n /** Armenian language as used in Armenia */\n ARMENIAN_ARMENIA = 'hy-AM',\n /** Indonesian language */\n INDONESIAN = 'id',\n /** Indonesian language as used in Indonesia */\n INDONESIAN_INDONESIA = 'id-ID',\n /** Icelandic language */\n ICELANDIC = 'is',\n /** Icelandic language as used in Iceland */\n ICELANDIC_ICELAND = 'is-IS',\n /** Italian language */\n ITALIAN = 'it',\n /** Italian language as used in Switzerland */\n ITALIAN_SWITZERLAND = 'it-CH',\n /** Italian language as used in Italy */\n ITALIAN_ITALY = 'it-IT',\n /** Japanese language */\n JAPANESE = 'ja',\n /** Japanese language as used in Japan */\n JAPANESE_JAPAN = 'ja-JP',\n /** Georgian language */\n GEORGIAN = 'ka',\n /** Georgian language as used in Georgia */\n GEORGIAN_GEORGIA = 'ka-GE',\n /** Kazakh language */\n KAZAKH = 'kk',\n /** Kazakh language as used in Kazakhstan */\n KAZAKH_KAZAKHSTAN = 'kk-KZ',\n /** Kannada language */\n KANNADA = 'kn',\n /** Kannada language as used in India */\n KANNADA_INDIA = 'kn-IN',\n /** Korean language */\n KOREAN = 'ko',\n /** Korean language as used in Korea */\n KOREAN_KOREA = 'ko-KR',\n /** Konkani language */\n KONKANI = 'kok',\n /** Konkani language as used in India */\n KONKANI_INDIA = 'kok-IN',\n /** Kyrgyz language */\n KYRGYZ = 'ky',\n /** Kyrgyz language as used in Kyrgyzstan */\n KYRGYZ_KYRGYZSTAN = 'ky-KG',\n /** Lithuanian language */\n LITHUANIAN = 'lt',\n /** Lithuanian language as used in Lithuania */\n LITHUANIAN_LITHUANIA = 'lt-LT',\n /** Latvian language */\n LATVIAN = 'lv',\n /** Latvian language as used in Latvia */\n LATVIAN_LATVIA = 'lv-LV',\n /** Maori language */\n MAORI = 'mi',\n /** Maori language as used in New Zealand */\n MAORI_NEW_ZEALAND = 'mi-NZ',\n /** Macedonian language (Former Yugoslav Republic of Macedonia) */\n FYRO_MACEDONIAN = 'mk',\n /** Macedonian language as used in Macedonia */\n FYRO_MACEDONIAN_MACEDONIA = 'mk-MK',\n /** Mongolian language */\n MONGOLIAN = 'mn',\n /** Mongolian language as used in Mongolia */\n MONGOLIAN_MONGOLIA = 'mn-MN',\n /** Marathi language */\n MARATHI = 'mr',\n /** Marathi language as used in India */\n MARATHI_INDIA = 'mr-IN',\n /** Malay language */\n MALAY = 'ms',\n /** Malay language as used in Brunei Darussalam */\n MALAY_BRUNEI_DARUSSALAM = 'ms-BN',\n /** Malay language as used in Malaysia */\n MALAY_MALAYSIA = 'ms-MY',\n /** Maltese language */\n MALTESE = 'mt',\n /** Maltese language as used in Malta */\n MALTESE_MALTA = 'mt-MT',\n /** Norwegian (Bokmål) language */\n NORWEGIAN_BOKMAL = 'nb',\n /** Norwegian (Bokmål) language as used in Norway */\n NORWEGIAN_BOKMAL_NORWAY = 'nb-NO',\n /** Dutch language */\n DUTCH = 'nl',\n /** Dutch language as used in Belgium */\n DUTCH_BELGIUM = 'nl-BE',\n /** Dutch language as used in the Netherlands */\n DUTCH_NETHERLANDS = 'nl-NL',\n /** Norwegian (Nynorsk) language as used in Norway */\n NORWEGIAN_NYNORSK_NORWAY = 'nn-NO',\n /** Northern Sotho language */\n NORTHERN_SOTHO = 'ns',\n /** Northern Sotho language as used in South Africa */\n NORTHERN_SOTHO_SOUTH_AFRICA = 'ns-ZA',\n /** Punjabi language */\n PUNJABI = 'pa',\n /** Punjabi language as used in India */\n PUNJABI_INDIA = 'pa-IN',\n /** Polish language */\n POLISH = 'pl',\n /** Polish language as used in Poland */\n POLISH_POLAND = 'pl-PL',\n /** Pashto language */\n PASHTO = 'ps',\n /** Pashto language as used in Afghanistan */\n PASHTO_AFGHANISTAN = 'ps-AR',\n /** Portuguese language */\n PORTUGUESE = 'pt',\n /** Portuguese language as used in Brazil */\n PORTUGUESE_BRAZIL = 'pt-BR',\n /** Portuguese language as used in Portugal */\n PORTUGUESE_PORTUGAL = 'pt-PT',\n /** Quechua language */\n QUECHUA = 'qu',\n /** Quechua language as used in Bolivia */\n QUECHUA_BOLIVIA = 'qu-BO',\n /** Quechua language as used in Ecuador */\n QUECHUA_ECUADOR = 'qu-EC',\n /** Quechua language as used in Peru */\n QUECHUA_PERU = 'qu-PE',\n /** Romanian language */\n ROMANIAN = 'ro',\n /** Romanian language as used in Romania */\n ROMANIAN_ROMANIA = 'ro-RO',\n /** Russian language */\n RUSSIAN = 'ru',\n /** Russian language as used in Russia */\n RUSSIAN_RUSSIA = 'ru-RU',\n /** Sanskrit language */\n SANSKRIT = 'sa',\n /** Sanskrit language as used in India */\n SANSKRIT_INDIA = 'sa-IN',\n /** Northern Sami language */\n SAMI_NORTHERN = 'se',\n /** Northern Sami language as used in Finland */\n SAMI_NORTHERN_FINLAND = 'se-FI',\n /** Northern Sami language as used in Norway */\n SAMI_NORTHERN_NORWAY = 'se-NO',\n /** Northern Sami language as used in Sweden */\n SAMI_NORTHERN_SWEDEN = 'se-SE',\n /** Slovak language */\n SLOVAK = 'sk',\n /** Slovak language as used in Slovakia */\n SLOVAK_SLOVAKIA = 'sk-SK',\n /** Slovenian language */\n SLOVENIAN = 'sl',\n /** Slovenian language as used in Slovenia */\n SLOVENIAN_SLOVENIA = 'sl-SI',\n /** Albanian language */\n ALBANIAN = 'sq',\n /** Albanian language as used in Albania */\n ALBANIAN_ALBANIA = 'sq-AL',\n /** Servian language (Latin script) */\n SERBIAN_LATIN = 'sr',\n /** Serbian language (Latin script) as used in Bosnia and Herzegovina */\n SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA = 'sr-BA',\n /** Serbian language (Latin script) as used in Serbia and Montenegro */\n SERBIAN_LATIN_SERBIA_AND_MONTENEGRO = 'sr-SP',\n /** Swedish language */\n SWEDISH = 'sv',\n /** Swedish language as used in Finland */\n SWEDISH_FINLAND = 'sv-FI',\n /** Swedish language as used in Sweden */\n SWEDISH_SWEDEN = 'sv-SE',\n /** Swahili language */\n SWAHILI = 'sw',\n /** Swahili language as used in Kenya */\n SWAHILI_KENYA = 'sw-KE',\n /** Syriac language */\n SYRIAC = 'syr',\n /** Syriac language as used in Syria */\n SYRIAC_SYRIA = 'syr-SY',\n /** Tamil language */\n TAMIL = 'ta',\n /** Tamil language as used in India */\n TAMIL_INDIA = 'ta-IN',\n /** Telugu language */\n TELUGU = 'te',\n /** Telugu language as used in India */\n TELUGU_INDIA = 'te-IN',\n /** Thai language */\n THAI = 'th',\n /** Thai language as used in Thailand */\n THAI_THAILAND = 'th-TH',\n /** Tagalog language */\n TAGALOG = 'tl',\n /** Tagalog language as used in Philippines */\n TAGALOG_PHILIPPINES = 'tl-PH',\n /** Tswana language */\n TSWANA = 'tn',\n /** Tswana language as used in South Africa */\n TSWANA_SOUTH_AFRICA = 'tn-ZA',\n /** Turkish language */\n TURKISH = 'tr',\n /** Turkish language as used in Turkey */\n TURKISH_TURKEY = 'tr-TR',\n /** Tatar language */\n TATAR = 'tt',\n /** Tatar language as used in Russia */\n TATAR_RUSSIA = 'tt-RU',\n /** Tsonga language */\n TSOGA = 'ts',\n /** Ukrainian language */\n UKRAINIAN = 'uk',\n /** Ukrainian language as used in Ukraine */\n UKRAINIAN_UKRAINE = 'uk-UA',\n /** Urdu language */\n URDU = 'ur',\n /** Urdu language as used in Islamic Republic of Pakistan */\n URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN = 'ur-PK',\n /** Uzbek language (Latin script) */\n UZBEK_LATIN = 'uz',\n /** Uzbek language (Latin script) as used in Uzbekistan */\n UZBEK_LATIN_UZBEKISTAN = 'uz-UZ',\n /** Vietnamese language */\n VIETNAMESE = 'vi',\n /** Vietnamese language as used in Viet Nam */\n VIETNAMESE_VIET_NAM = 'vi-VN',\n /** Xhosa language */\n XHOSA = 'xh',\n /** Xhosa language as used in South Africa */\n XHOSA_SOUTH_AFRICA = 'xh-ZA',\n /** Chinese language */\n CHINESE = 'zh',\n /** Chinese language (Simplified) */\n CHINESE_SIMPLIFIED = 'zh-Hans',\n /** Chinese language (Simplified, People's Republic of China) */\n CHINESE_SIMPLIFIED_CHINA = 'zh-CN',\n /** Chinese language as used in Hong Kong */\n CHINESE_HONG_KONG = 'zh-HK',\n /** Chinese language as used in Macau */\n CHINESE_MACAU = 'zh-MO',\n /** Chinese language as used in Singapore */\n CHINESE_SINGAPORE = 'zh-SG',\n /** Chinese language (Traditional script) */\n CHINESE_TRADITIONAL = 'zh-Hant',\n /** Zulu language */\n ZULU = 'zu',\n /** Zulu language as used in South Africa */\n ZULU_SOUTH_AFRICA = 'zu-ZA',\n /** Bengali / Bangla */\n BENGALI = 'bn',\n /** Bengali / Bangla as used in Bangladesh */\n BENGALI_BANGLADESH = 'bn-BD',\n /** Bengali / Bangla as used in India */\n BENGALI_INDIA = 'bn-IN',\n /** Bengali / Bangla as used in Myanmar */\n BENGALI_MYANMAR = 'bn-MM',\n /** Burmese language */\n BURMESE = 'my',\n /** Burmese language as used in Myanmar */\n BURMESE_MYANMAR = 'my-MM',\n /** Khmer language */\n KHMER = 'km',\n /** Khmer language as used in Cambodia */\n KHMER_CAMBODIA = 'km-KH',\n /** Lao language */\n LAO = 'lo',\n /** Lao language as used in Laos */\n LAO_LAOS = 'lo-LA',\n /** Yoruba language */\n YORUBA = 'yo',\n /** Yoruba language as used in Nigeria */\n YORUBA_NIGERIA = 'yo-NG',\n /** Amharic language */\n AMHARIC = 'am',\n /** Amharic language as used in Ethiopia */\n AMHARIC_ETHIOPIA = 'am-ET',\n /** Nepali language */\n NEPALI = 'ne',\n /** Nepali language as used in Nepal */\n NEPALI_NEPAL = 'ne-NP',\n /** Sinhala language */\n SINHALA = 'si',\n /** Sinhala language as used in Sri Lanka */\n SINHALA_SRI_LANKA = 'si-LK',\n /** Serbian language (Cyrillic script) */\n SERBIAN_CYRILLIC = 'sr-Cyrl',\n /** Serbian language (Cyrillic script) as used in Serbia */\n SERBIAN_CYRILLIC_SERBIA = 'sr-RS',\n /** Serbian language (Cyrillic script) as used in Bosnia and Herzegovina */\n SERBIAN_CYRILLIC_BOSNIA_AND_HERZEGOVINA = 'sr-BA',\n /** English language as used in India */\n ENGLISH_INDIA = 'en-IN',\n /** English language as used in Singapore */\n ENGLISH_SINGAPORE = 'en-SG',\n /** English language as used in Hong Kong */\n ENGLISH_HONG_KONG = 'en-HK',\n /** English language as used in Nigeria */\n ENGLISH_NIGERIA = 'en-NG',\n /** English language as used in Pakistan */\n ENGLISH_PAKISTAN = 'en-PK',\n /** English language as used in Malaysia */\n ENGLISH_MALAYSIA = 'en-MY',\n /** English language as used in Botswana */\n ENGLISH_BOTSWANA = 'en-BW',\n /** English language as used in Kenya */\n ENGLISH_KENYA = 'en-KE',\n /** English language as used in Tanzania */\n ENGLISH_TANZANIA = 'en-TZ',\n /** English language as used in Ghana */\n ENGLISH_GHANA = 'en-GH',\n /** English language as used in Uganda */\n ENGLISH_UGANDA = 'en-UG',\n /** Spanish language as used in Cuba */\n SPANISH_CUBA = 'es-CU',\n /** Spanish language as used in United States */\n SPANISH_UNITED_STATES = 'es-US',\n\n /** Portuguese language as used in Guinea-Bissau */\n PORTUGUESE_GUINEA_BISSAU = 'pt-GW',\n /** Portuguese language as used in Mozambique */\n PORTUGUESE_MOZAMBIQUE = 'pt-MZ',\n /** Portuguese language as used in São Tomé and Príncipe */\n PORTUGUESE_SAO_TOME_AND_PRINCIPE = 'pt-ST',\n /** Portuguese language as used in Cape Verde */\n PORTUGUESE_CAPE_VERDE = 'pt-CV',\n /** Portuguese language as used in Timor-Leste */\n PORTUGUESE_TIMOR_LESTE = 'pt-TL',\n /** Portuguese language as used in Macau */\n PORTUGUESE_MACAU = 'pt-MO',\n /** Chinese language as used in Taiwan */\n CHINESE_TAIWAN = 'zh-TW',\n /** Arabic language as used in Mauritania */\n ARABIC_MAURITANIA = 'ar-MR',\n /** Arabic language as used in Palestinian Territories */\n ARABIC_PALESTINE = 'ar-PS',\n /** Arabic language as used in Sudan */\n ARABIC_SUDAN = 'ar-SD',\n /** Arabic language as used in Djibouti */\n ARABIC_DJIBOUTI = 'ar-DJ',\n /** Arabic language as used in Somalia */\n ARABIC_SOMALIA = 'ar-SO',\n /** Arabic language as used in Chad */\n ARABIC_CHAD = 'ar-TD',\n /** Arabic language as used in Comoros */\n ARABIC_COMOROS = 'ar-KM',\n}\n\n/** Define MyType using the ValueOf utility type on Locales */\nexport type LocalesValues = (Locales | `${Locales}`) | (string & {});\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACO,IAAK,UAAL,kBAAKA,aAAL;AAEL,EAAAA,SAAA,eAAY;AAEZ,EAAAA,SAAA,4BAAyB;AAEzB,EAAAA,SAAA,YAAS;AAET,EAAAA,SAAA,iCAA8B;AAE9B,EAAAA,SAAA,oBAAiB;AAEjB,EAAAA,SAAA,oBAAiB;AAEjB,EAAAA,SAAA,kBAAe;AAEf,EAAAA,SAAA,iBAAc;AAEd,EAAAA,SAAA,mBAAgB;AAEhB,EAAAA,SAAA,mBAAgB;AAEhB,EAAAA,SAAA,oBAAiB;AAEjB,EAAAA,SAAA,kBAAe;AAEf,EAAAA,SAAA,oBAAiB;AAEjB,EAAAA,SAAA,iBAAc;AAEd,EAAAA,SAAA,kBAAe;AAEf,EAAAA,SAAA,yBAAsB;AAEtB,EAAAA,SAAA,kBAAe;AAEf,EAAAA,SAAA,oBAAiB;AAEjB,EAAAA,SAAA,kBAAe;AAEf,EAAAA,SAAA,iBAAc;AAEd,EAAAA,SAAA,4BAAyB;AAEzB,EAAAA,SAAA,gBAAa;AAEb,EAAAA,SAAA,wBAAqB;AAErB,EAAAA,SAAA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SAAA,sBAAmB;AAEnB,EAAAA,SAAA,6BAA0B;AAE1B,EAAAA,SAAA,6CAA0C;AAE1C,EAAAA,SAAA,mBAAgB;AAEhB,EAAAA,SAAA,uBAAoB;AAEpB,EAAAA,SAAA,uBAAoB;AAEpB,EAAAA,SAAA,qBAAkB;AAElB,EAAAA,SAAA,sBAAmB;AAEnB,EAAAA,SAAA,sBAAmB;AAEnB,EAAAA,SAAA,sBAAmB;AAEnB,EAAAA,SAAA,mBAAgB;AAEhB,EAAAA,SAAA,sBAAmB;AAEnB,EAAAA,SAAA,mBAAgB;AAEhB,EAAAA,SAAA,oBAAiB;AAEjB,EAAAA,SAAA,kBAAe;AAEf,EAAAA,SAAA,2BAAwB;AAGxB,EAAAA,SAAA,8BAA2B;AAE3B,EAAAA,SAAA,2BAAwB;AAExB,EAAAA,SAAA,sCAAmC;AAEnC,EAAAA,SAAA,2BAAwB;AAExB,EAAAA,SAAA,4BAAyB;AAEzB,EAAAA,SAAA,sBAAmB;AAEnB,EAAAA,SAAA,oBAAiB;AAEjB,EAAAA,SAAA,uBAAoB;AAEpB,EAAAA,SAAA,sBAAmB;AAEnB,EAAAA,SAAA,kBAAe;AAEf,EAAAA,SAAA,qBAAkB;AAElB,EAAAA,SAAA,oBAAiB;AAEjB,EAAAA,SAAA,iBAAc;AAEd,EAAAA,SAAA,oBAAiB;AA/iBP,SAAAA;AAAA,GAAA;","names":["Locales"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/client.ts"],"sourcesContent":["export {\n ANSIColors,\n clock,\n colon,\n colorizeKey,\n colorizeLocales,\n colorizeNumber,\n colorizePath,\n getAppLogger,\n logger,\n spinnerFrames,\n v,\n x,\n} from './logger';\nexport type {\n BaseContentConfig,\n BaseDerivedConfig,\n CustomIntlayerConfig,\n IntlayerConfig,\n PatternsContentConfig,\n ResultDirDerivedConfig,\n} from './types/config';\nexport { Locales } from './types/locales';\nexport type { LocalesValues } from './types/locales';\n"],"mappings":"AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AASP,SAAS,eAAe;","names":[]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/configFile/index.ts"],"sourcesContent":["export * from './getConfiguration';\nexport * from './searchConfigurationFile';\n"],"mappings":"AAAA,cAAc;AACd,cAAc;","names":[]}
@@ -1,17 +0,0 @@
1
- const HEADER_NAME = "x-intlayer-locale";
2
- const COOKIE_NAME = "INTLAYER_LOCALE";
3
- const PREFIX_DEFAULT = false;
4
- const BASE_PATH = "";
5
- const SERVER_SET_COOKIE = "always";
6
- const NO_PREFIX = false;
7
- const DETECT_LOCALE_ON_PREFETCH_NO_PREFIX = false;
8
- export {
9
- BASE_PATH,
10
- COOKIE_NAME,
11
- DETECT_LOCALE_ON_PREFETCH_NO_PREFIX,
12
- HEADER_NAME,
13
- NO_PREFIX,
14
- PREFIX_DEFAULT,
15
- SERVER_SET_COOKIE
16
- };
17
- //# sourceMappingURL=middleware.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/defaultValues/middleware.ts"],"sourcesContent":["export const HEADER_NAME = 'x-intlayer-locale';\n\nexport const COOKIE_NAME = 'INTLAYER_LOCALE';\n\nexport const PREFIX_DEFAULT = false;\n\nexport const BASE_PATH = '';\n\nexport const SERVER_SET_COOKIE = 'always';\n\nexport const NO_PREFIX = false;\n\nexport const DETECT_LOCALE_ON_PREFETCH_NO_PREFIX = false;\n"],"mappings":"AAAO,MAAM,cAAc;AAEpB,MAAM,cAAc;AAEpB,MAAM,iBAAiB;AAEvB,MAAM,YAAY;AAElB,MAAM,oBAAoB;AAE1B,MAAM,YAAY;AAElB,MAAM,sCAAsC;","names":[]}