intlayer 7.5.0-canary.0 → 7.5.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.
@@ -1,9 +1,9 @@
1
1
 
2
2
 
3
- var __intlayer_cli = require("@intlayer/cli");
4
- Object.keys(__intlayer_cli).forEach(function (k) {
3
+ var _intlayer_cli = require("@intlayer/cli");
4
+ Object.keys(_intlayer_cli).forEach(function (k) {
5
5
  if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
6
6
  enumerable: true,
7
- get: function () { return __intlayer_cli[k]; }
7
+ get: function () { return _intlayer_cli[k]; }
8
8
  });
9
9
  });
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
3
- let __intlayer_cli = require("@intlayer/cli");
3
+ let _intlayer_cli = require("@intlayer/cli");
4
4
 
5
5
  //#region src/cli/script.ts
6
- (0, __intlayer_cli.setAPI)();
6
+ (0, _intlayer_cli.setAPI)();
7
7
 
8
8
  //#endregion
9
9
  //# sourceMappingURL=script.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"script.cjs","names":[],"sources":["../../../src/cli/script.ts"],"sourcesContent":["#!/usr/bin/env node\nimport { setAPI } from '@intlayer/cli';\n\nsetAPI();\n"],"mappings":";;;;;4BAGQ"}
1
+ {"version":3,"file":"script.cjs","names":[],"sources":["../../../src/cli/script.ts"],"sourcesContent":["#!/usr/bin/env node\nimport { setAPI } from '@intlayer/cli';\n\nsetAPI();\n"],"mappings":";;;;;2BAGQ"}
@@ -1,286 +1,292 @@
1
1
  const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
2
- let __intlayer_types = require("@intlayer/types");
3
- let __intlayer_config_built = require("@intlayer/config/built");
4
- __intlayer_config_built = require_rolldown_runtime.__toESM(__intlayer_config_built);
5
- let __intlayer_core = require("@intlayer/core");
6
- let __intlayer_core_file = require("@intlayer/core/file");
2
+ let _intlayer_types = require("@intlayer/types");
3
+ let _intlayer_config_built = require("@intlayer/config/built");
4
+ _intlayer_config_built = require_rolldown_runtime.__toESM(_intlayer_config_built);
5
+ let _intlayer_core = require("@intlayer/core");
6
+ let _intlayer_core_file = require("@intlayer/core/file");
7
7
 
8
8
  //#region src/index.ts
9
9
  /** biome-ignore-all lint/suspicious/noEmptyInterface: Intlayer module augmentation registries */
10
10
  /**
11
11
  * Rexport using named import because πof Tsup bug in CJS
12
12
  */
13
- __intlayer_types.Locales.ALL_LOCALES;
13
+ _intlayer_types.Locales.ALL_LOCALES;
14
14
  /**
15
15
  * @deprecated Use `import { configuration } from 'intlayer'` instead.
16
16
  */
17
- const getConfiguration = () => __intlayer_config_built.default;
17
+ const getConfiguration = () => _intlayer_config_built.default;
18
+ const locales = _intlayer_config_built.default.internationalization.locales;
19
+ const requiredLocales = _intlayer_config_built.default.internationalization.requiredLocales;
20
+ const defaultLocale = _intlayer_config_built.default.internationalization.defaultLocale;
18
21
 
19
22
  //#endregion
20
23
  Object.defineProperty(exports, 'Intl', {
21
24
  enumerable: true,
22
25
  get: function () {
23
- return __intlayer_core.Intl;
26
+ return _intlayer_core.Intl;
24
27
  }
25
28
  });
26
29
  Object.defineProperty(exports, 'Locales', {
27
30
  enumerable: true,
28
31
  get: function () {
29
- return __intlayer_types.Locales;
32
+ return _intlayer_types.Locales;
30
33
  }
31
34
  });
32
35
  Object.defineProperty(exports, 'compact', {
33
36
  enumerable: true,
34
37
  get: function () {
35
- return __intlayer_core.compact;
38
+ return _intlayer_core.compact;
36
39
  }
37
40
  });
38
41
  Object.defineProperty(exports, 'cond', {
39
42
  enumerable: true,
40
43
  get: function () {
41
- return __intlayer_core.cond;
44
+ return _intlayer_core.cond;
42
45
  }
43
46
  });
44
- exports.configuration = __intlayer_config_built.default;
47
+ exports.configuration = _intlayer_config_built.default;
45
48
  Object.defineProperty(exports, 'currency', {
46
49
  enumerable: true,
47
50
  get: function () {
48
- return __intlayer_core.currency;
51
+ return _intlayer_core.currency;
49
52
  }
50
53
  });
51
54
  Object.defineProperty(exports, 'date', {
52
55
  enumerable: true,
53
56
  get: function () {
54
- return __intlayer_core.date;
57
+ return _intlayer_core.date;
55
58
  }
56
59
  });
60
+ exports.defaultLocale = defaultLocale;
57
61
  Object.defineProperty(exports, 'enu', {
58
62
  enumerable: true,
59
63
  get: function () {
60
- return __intlayer_core.enu;
64
+ return _intlayer_core.enu;
61
65
  }
62
66
  });
63
67
  Object.defineProperty(exports, 'file', {
64
68
  enumerable: true,
65
69
  get: function () {
66
- return __intlayer_core_file.file;
70
+ return _intlayer_core_file.file;
67
71
  }
68
72
  });
69
73
  Object.defineProperty(exports, 'gender', {
70
74
  enumerable: true,
71
75
  get: function () {
72
- return __intlayer_core.gender;
76
+ return _intlayer_core.gender;
73
77
  }
74
78
  });
75
79
  Object.defineProperty(exports, 'getBrowserLocale', {
76
80
  enumerable: true,
77
81
  get: function () {
78
- return __intlayer_core.getBrowserLocale;
82
+ return _intlayer_core.getBrowserLocale;
79
83
  }
80
84
  });
81
85
  exports.getConfiguration = getConfiguration;
82
86
  Object.defineProperty(exports, 'getCookie', {
83
87
  enumerable: true,
84
88
  get: function () {
85
- return __intlayer_core.getCookie;
89
+ return _intlayer_core.getCookie;
86
90
  }
87
91
  });
88
92
  Object.defineProperty(exports, 'getDictionary', {
89
93
  enumerable: true,
90
94
  get: function () {
91
- return __intlayer_core.getDictionary;
95
+ return _intlayer_core.getDictionary;
92
96
  }
93
97
  });
94
98
  Object.defineProperty(exports, 'getEnumeration', {
95
99
  enumerable: true,
96
100
  get: function () {
97
- return __intlayer_core.getEnumeration;
101
+ return _intlayer_core.getEnumeration;
98
102
  }
99
103
  });
100
104
  Object.defineProperty(exports, 'getEnumerationContent', {
101
105
  enumerable: true,
102
106
  get: function () {
103
- return __intlayer_core.getEnumeration;
107
+ return _intlayer_core.getEnumeration;
104
108
  }
105
109
  });
106
110
  Object.defineProperty(exports, 'getHTMLTextDir', {
107
111
  enumerable: true,
108
112
  get: function () {
109
- return __intlayer_core.getHTMLTextDir;
113
+ return _intlayer_core.getHTMLTextDir;
110
114
  }
111
115
  });
112
116
  Object.defineProperty(exports, 'getIntlayer', {
113
117
  enumerable: true,
114
118
  get: function () {
115
- return __intlayer_core.getIntlayer;
119
+ return _intlayer_core.getIntlayer;
116
120
  }
117
121
  });
118
122
  Object.defineProperty(exports, 'getLocale', {
119
123
  enumerable: true,
120
124
  get: function () {
121
- return __intlayer_core.getLocale;
125
+ return _intlayer_core.getLocale;
122
126
  }
123
127
  });
124
128
  Object.defineProperty(exports, 'getLocaleFromPath', {
125
129
  enumerable: true,
126
130
  get: function () {
127
- return __intlayer_core.getLocaleFromPath;
131
+ return _intlayer_core.getLocaleFromPath;
128
132
  }
129
133
  });
130
134
  Object.defineProperty(exports, 'getLocaleFromStorage', {
131
135
  enumerable: true,
132
136
  get: function () {
133
- return __intlayer_core.getLocaleFromStorage;
137
+ return _intlayer_core.getLocaleFromStorage;
134
138
  }
135
139
  });
136
140
  Object.defineProperty(exports, 'getLocaleLang', {
137
141
  enumerable: true,
138
142
  get: function () {
139
- return __intlayer_core.getLocaleLang;
143
+ return _intlayer_core.getLocaleLang;
140
144
  }
141
145
  });
142
146
  Object.defineProperty(exports, 'getLocaleName', {
143
147
  enumerable: true,
144
148
  get: function () {
145
- return __intlayer_core.getLocaleName;
149
+ return _intlayer_core.getLocaleName;
146
150
  }
147
151
  });
148
152
  Object.defineProperty(exports, 'getLocalizedUrl', {
149
153
  enumerable: true,
150
154
  get: function () {
151
- return __intlayer_core.getLocalizedUrl;
155
+ return _intlayer_core.getLocalizedUrl;
152
156
  }
153
157
  });
154
158
  Object.defineProperty(exports, 'getMarkdownMetadata', {
155
159
  enumerable: true,
156
160
  get: function () {
157
- return __intlayer_core.getMarkdownMetadata;
161
+ return _intlayer_core.getMarkdownMetadata;
158
162
  }
159
163
  });
160
164
  Object.defineProperty(exports, 'getMultilingualUrls', {
161
165
  enumerable: true,
162
166
  get: function () {
163
- return __intlayer_core.getMultilingualUrls;
167
+ return _intlayer_core.getMultilingualUrls;
164
168
  }
165
169
  });
166
170
  Object.defineProperty(exports, 'getNesting', {
167
171
  enumerable: true,
168
172
  get: function () {
169
- return __intlayer_core.getNesting;
173
+ return _intlayer_core.getNesting;
170
174
  }
171
175
  });
172
176
  Object.defineProperty(exports, 'getPathWithoutLocale', {
173
177
  enumerable: true,
174
178
  get: function () {
175
- return __intlayer_core.getPathWithoutLocale;
179
+ return _intlayer_core.getPathWithoutLocale;
176
180
  }
177
181
  });
178
182
  Object.defineProperty(exports, 'getPrefix', {
179
183
  enumerable: true,
180
184
  get: function () {
181
- return __intlayer_core.getPrefix;
185
+ return _intlayer_core.getPrefix;
182
186
  }
183
187
  });
184
188
  Object.defineProperty(exports, 'getTranslation', {
185
189
  enumerable: true,
186
190
  get: function () {
187
- return __intlayer_core.getTranslation;
191
+ return _intlayer_core.getTranslation;
188
192
  }
189
193
  });
190
194
  Object.defineProperty(exports, 'getTranslationContent', {
191
195
  enumerable: true,
192
196
  get: function () {
193
- return __intlayer_core.getTranslation;
197
+ return _intlayer_core.getTranslation;
194
198
  }
195
199
  });
196
200
  Object.defineProperty(exports, 'insert', {
197
201
  enumerable: true,
198
202
  get: function () {
199
- return __intlayer_core.insert;
203
+ return _intlayer_core.insert;
200
204
  }
201
205
  });
202
206
  Object.defineProperty(exports, 'localeDetector', {
203
207
  enumerable: true,
204
208
  get: function () {
205
- return __intlayer_core.localeDetector;
209
+ return _intlayer_core.localeDetector;
206
210
  }
207
211
  });
208
212
  Object.defineProperty(exports, 'localeFlatMap', {
209
213
  enumerable: true,
210
214
  get: function () {
211
- return __intlayer_core.localeFlatMap;
215
+ return _intlayer_core.localeFlatMap;
212
216
  }
213
217
  });
214
218
  Object.defineProperty(exports, 'localeMap', {
215
219
  enumerable: true,
216
220
  get: function () {
217
- return __intlayer_core.localeMap;
221
+ return _intlayer_core.localeMap;
218
222
  }
219
223
  });
220
224
  Object.defineProperty(exports, 'localeRecord', {
221
225
  enumerable: true,
222
226
  get: function () {
223
- return __intlayer_core.localeRecord;
227
+ return _intlayer_core.localeRecord;
224
228
  }
225
229
  });
226
230
  Object.defineProperty(exports, 'localeResolver', {
227
231
  enumerable: true,
228
232
  get: function () {
229
- return __intlayer_core.localeResolver;
233
+ return _intlayer_core.localeResolver;
230
234
  }
231
235
  });
236
+ exports.locales = locales;
232
237
  Object.defineProperty(exports, 'md', {
233
238
  enumerable: true,
234
239
  get: function () {
235
- return __intlayer_core.md;
240
+ return _intlayer_core.md;
236
241
  }
237
242
  });
238
243
  Object.defineProperty(exports, 'nest', {
239
244
  enumerable: true,
240
245
  get: function () {
241
- return __intlayer_core.nest;
246
+ return _intlayer_core.nest;
242
247
  }
243
248
  });
244
249
  Object.defineProperty(exports, 'number', {
245
250
  enumerable: true,
246
251
  get: function () {
247
- return __intlayer_core.number;
252
+ return _intlayer_core.number;
248
253
  }
249
254
  });
250
255
  Object.defineProperty(exports, 'percentage', {
251
256
  enumerable: true,
252
257
  get: function () {
253
- return __intlayer_core.percentage;
258
+ return _intlayer_core.percentage;
254
259
  }
255
260
  });
256
261
  Object.defineProperty(exports, 'relativeTime', {
257
262
  enumerable: true,
258
263
  get: function () {
259
- return __intlayer_core.relativeTime;
264
+ return _intlayer_core.relativeTime;
260
265
  }
261
266
  });
267
+ exports.requiredLocales = requiredLocales;
262
268
  Object.defineProperty(exports, 'setLocaleInStorage', {
263
269
  enumerable: true,
264
270
  get: function () {
265
- return __intlayer_core.setLocaleInStorage;
271
+ return _intlayer_core.setLocaleInStorage;
266
272
  }
267
273
  });
268
274
  Object.defineProperty(exports, 't', {
269
275
  enumerable: true,
270
276
  get: function () {
271
- return __intlayer_core.t;
277
+ return _intlayer_core.t;
272
278
  }
273
279
  });
274
280
  Object.defineProperty(exports, 'units', {
275
281
  enumerable: true,
276
282
  get: function () {
277
- return __intlayer_core.units;
283
+ return _intlayer_core.units;
278
284
  }
279
285
  });
280
286
  Object.defineProperty(exports, 'validatePrefix', {
281
287
  enumerable: true,
282
288
  get: function () {
283
- return __intlayer_core.validatePrefix;
289
+ return _intlayer_core.validatePrefix;
284
290
  }
285
291
  });
286
292
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":["Locales","configuration"],"sources":["../../src/index.ts"],"sourcesContent":["/** biome-ignore-all lint/suspicious/noEmptyInterface: Intlayer module augmentation registries */\nimport {\n type Dictionary as DictionaryCore,\n type CustomIntlayerConfig as IntlayerConfig,\n Locales,\n} from '@intlayer/types';\n\ntype Dictionary<T = undefined> = DictionaryCore<T, true>;\n/**\n * @deprecated Use `Dictionary<T>` instead.\n */\ntype DeclarationContent<T = undefined> = Dictionary<T>;\n\n/**\n * @deprecated\n *\n * Use Locales.All_LOCALES instead\n */\nconst localeList = Locales.ALL_LOCALES;\n\nexport {\n type ContentNode,\n type Locale,\n Locales,\n type LocalesValues,\n type StrictModeLocaleMap,\n} from '@intlayer/types';\nexport type { DeclarationContent, Dictionary, IntlayerConfig, localeList };\n\n/**\n * Rexport using named import because πof Tsup bug in CJS\n */\nimport configuration from '@intlayer/config/built';\n\n/**\n * @deprecated Use `import { configuration } from 'intlayer'` instead.\n */\nconst getConfiguration = () => configuration;\n\n// Reexport here for CJS compatibility\n// Fix ReferenceError: Cannot access 'xxx' before initialization\nexport { configuration, getConfiguration };\n\nexport {\n compact,\n cond,\n currency,\n date,\n enu,\n gender,\n getBrowserLocale,\n getCookie,\n getDictionary,\n getEnumeration,\n /**\n * @deprecated Use `getEnumeration` instead.\n */\n getEnumeration as getEnumerationContent,\n getHTMLTextDir,\n getIntlayer,\n getLocale,\n getLocaleFromPath,\n getLocaleFromStorage,\n getLocaleLang,\n getLocaleName,\n getLocalizedUrl,\n getMarkdownMetadata,\n getMultilingualUrls,\n getNesting,\n getPathWithoutLocale,\n getPrefix,\n getTranslation,\n /**\n * @deprecated Use `getTranslation` instead.\n */\n getTranslation as getTranslationContent,\n Intl,\n insert,\n localeDetector,\n localeFlatMap,\n localeMap,\n localeRecord,\n localeResolver,\n md,\n nest,\n number,\n percentage,\n relativeTime,\n setLocaleInStorage,\n t,\n units,\n validatePrefix,\n} from '@intlayer/core';\nexport { file } from '@intlayer/core/file'; // Include specific export for browser because of node js function that can't be used in browser\n\n// --- Registries to be augmented by the generator ---\nexport interface __DictionaryRegistry {} // id -> interfaceof ictionary\nexport interface __DeclaredLocalesRegistry {} // 'fr': 1, 'en': 1, ...\nexport interface __RequiredLocalesRegistry {} // 'en': 1, ...\nexport interface __StrictModeRegistry {} // one of: { strict: true } | { inclusive: true } | { loose: true }\n"],"mappings":";;;;;;;;;;;;AAkBmBA,yBAAQ;;;;AAmB3B,MAAM,yBAAyBC"}
1
+ {"version":3,"file":"index.cjs","names":["Locales","configuration"],"sources":["../../src/index.ts"],"sourcesContent":["/** biome-ignore-all lint/suspicious/noEmptyInterface: Intlayer module augmentation registries */\nimport {\n type Dictionary as DictionaryCore,\n type CustomIntlayerConfig as IntlayerConfig,\n Locales,\n} from '@intlayer/types';\n\ntype Dictionary<T = undefined> = DictionaryCore<T, true>;\n/**\n * @deprecated Use `Dictionary<T>` instead.\n */\ntype DeclarationContent<T = undefined> = Dictionary<T>;\n\n/**\n * @deprecated\n *\n * Use Locales.All_LOCALES instead\n */\nconst localeList = Locales.ALL_LOCALES;\n\nexport {\n type ContentNode,\n type Locale,\n Locales,\n type LocalesValues,\n type StrictModeLocaleMap,\n} from '@intlayer/types';\nexport type { DeclarationContent, Dictionary, IntlayerConfig, localeList };\n\n/**\n * Rexport using named import because πof Tsup bug in CJS\n */\nimport configuration from '@intlayer/config/built';\n\n/**\n * @deprecated Use `import { configuration } from 'intlayer'` instead.\n */\nconst getConfiguration = () => configuration;\n\nconst locales = configuration.internationalization.locales;\nconst requiredLocales = configuration.internationalization.requiredLocales;\nconst defaultLocale = configuration.internationalization.defaultLocale;\n\n// Reexport here for CJS compatibility\n// Fix ReferenceError: Cannot access 'xxx' before initialization\nexport {\n configuration,\n getConfiguration,\n locales,\n requiredLocales,\n defaultLocale,\n};\n\nexport {\n compact,\n cond,\n currency,\n date,\n enu,\n gender,\n getBrowserLocale,\n getCookie,\n getDictionary,\n getEnumeration,\n /**\n * @deprecated Use `getEnumeration` instead.\n */\n getEnumeration as getEnumerationContent,\n getHTMLTextDir,\n getIntlayer,\n getLocale,\n getLocaleFromPath,\n getLocaleFromStorage,\n getLocaleLang,\n getLocaleName,\n getLocalizedUrl,\n getMarkdownMetadata,\n getMultilingualUrls,\n getNesting,\n getPathWithoutLocale,\n getPrefix,\n getTranslation,\n /**\n * @deprecated Use `getTranslation` instead.\n */\n getTranslation as getTranslationContent,\n Intl,\n insert,\n localeDetector,\n localeFlatMap,\n localeMap,\n localeRecord,\n localeResolver,\n md,\n nest,\n number,\n percentage,\n relativeTime,\n setLocaleInStorage,\n t,\n units,\n validatePrefix,\n} from '@intlayer/core';\nexport { file } from '@intlayer/core/file'; // Include specific export for browser because of node js function that can't be used in browser\n\n// --- Registries to be augmented by the generator ---\nexport interface __DictionaryRegistry {} // id -> interfaceof ictionary\nexport interface __DeclaredLocalesRegistry {} // 'fr': 1, 'en': 1, ...\nexport interface __RequiredLocalesRegistry {} // 'en': 1, ...\nexport interface __StrictModeRegistry {} // one of: { strict: true } | { inclusive: true } | { loose: true }\n"],"mappings":";;;;;;;;;;;;AAkBmBA,wBAAQ;;;;AAmB3B,MAAM,yBAAyBC;AAE/B,MAAM,UAAUA,+BAAc,qBAAqB;AACnD,MAAM,kBAAkBA,+BAAc,qBAAqB;AAC3D,MAAM,gBAAgBA,+BAAc,qBAAqB"}
@@ -13,7 +13,10 @@ Locales$1.ALL_LOCALES;
13
13
  * @deprecated Use `import { configuration } from 'intlayer'` instead.
14
14
  */
15
15
  const getConfiguration = () => configuration;
16
+ const locales = configuration.internationalization.locales;
17
+ const requiredLocales = configuration.internationalization.requiredLocales;
18
+ const defaultLocale = configuration.internationalization.defaultLocale;
16
19
 
17
20
  //#endregion
18
- export { Intl, Locales, compact, cond, configuration, currency, date, enu, file, gender, getBrowserLocale, getConfiguration, getCookie, getDictionary, getEnumeration, getEnumerationContent, getHTMLTextDir, getIntlayer, getLocale, getLocaleFromPath, getLocaleFromStorage, getLocaleLang, getLocaleName, getLocalizedUrl, getMarkdownMetadata, getMultilingualUrls, getNesting, getPathWithoutLocale, getPrefix, getTranslation, getTranslationContent, insert, localeDetector, localeFlatMap, localeMap, localeRecord, localeResolver, md, nest, number, percentage, relativeTime, setLocaleInStorage, t, units, validatePrefix };
21
+ export { Intl, Locales, compact, cond, configuration, currency, date, defaultLocale, enu, file, gender, getBrowserLocale, getConfiguration, getCookie, getDictionary, getEnumeration, getEnumerationContent, getHTMLTextDir, getIntlayer, getLocale, getLocaleFromPath, getLocaleFromStorage, getLocaleLang, getLocaleName, getLocalizedUrl, getMarkdownMetadata, getMultilingualUrls, getNesting, getPathWithoutLocale, getPrefix, getTranslation, getTranslationContent, insert, localeDetector, localeFlatMap, localeMap, localeRecord, localeResolver, locales, md, nest, number, percentage, relativeTime, requiredLocales, setLocaleInStorage, t, units, validatePrefix };
19
22
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":["Locales"],"sources":["../../src/index.ts"],"sourcesContent":["/** biome-ignore-all lint/suspicious/noEmptyInterface: Intlayer module augmentation registries */\nimport {\n type Dictionary as DictionaryCore,\n type CustomIntlayerConfig as IntlayerConfig,\n Locales,\n} from '@intlayer/types';\n\ntype Dictionary<T = undefined> = DictionaryCore<T, true>;\n/**\n * @deprecated Use `Dictionary<T>` instead.\n */\ntype DeclarationContent<T = undefined> = Dictionary<T>;\n\n/**\n * @deprecated\n *\n * Use Locales.All_LOCALES instead\n */\nconst localeList = Locales.ALL_LOCALES;\n\nexport {\n type ContentNode,\n type Locale,\n Locales,\n type LocalesValues,\n type StrictModeLocaleMap,\n} from '@intlayer/types';\nexport type { DeclarationContent, Dictionary, IntlayerConfig, localeList };\n\n/**\n * Rexport using named import because πof Tsup bug in CJS\n */\nimport configuration from '@intlayer/config/built';\n\n/**\n * @deprecated Use `import { configuration } from 'intlayer'` instead.\n */\nconst getConfiguration = () => configuration;\n\n// Reexport here for CJS compatibility\n// Fix ReferenceError: Cannot access 'xxx' before initialization\nexport { configuration, getConfiguration };\n\nexport {\n compact,\n cond,\n currency,\n date,\n enu,\n gender,\n getBrowserLocale,\n getCookie,\n getDictionary,\n getEnumeration,\n /**\n * @deprecated Use `getEnumeration` instead.\n */\n getEnumeration as getEnumerationContent,\n getHTMLTextDir,\n getIntlayer,\n getLocale,\n getLocaleFromPath,\n getLocaleFromStorage,\n getLocaleLang,\n getLocaleName,\n getLocalizedUrl,\n getMarkdownMetadata,\n getMultilingualUrls,\n getNesting,\n getPathWithoutLocale,\n getPrefix,\n getTranslation,\n /**\n * @deprecated Use `getTranslation` instead.\n */\n getTranslation as getTranslationContent,\n Intl,\n insert,\n localeDetector,\n localeFlatMap,\n localeMap,\n localeRecord,\n localeResolver,\n md,\n nest,\n number,\n percentage,\n relativeTime,\n setLocaleInStorage,\n t,\n units,\n validatePrefix,\n} from '@intlayer/core';\nexport { file } from '@intlayer/core/file'; // Include specific export for browser because of node js function that can't be used in browser\n\n// --- Registries to be augmented by the generator ---\nexport interface __DictionaryRegistry {} // id -> interfaceof ictionary\nexport interface __DeclaredLocalesRegistry {} // 'fr': 1, 'en': 1, ...\nexport interface __RequiredLocalesRegistry {} // 'en': 1, ...\nexport interface __StrictModeRegistry {} // one of: { strict: true } | { inclusive: true } | { loose: true }\n"],"mappings":";;;;;;;;;;AAkBmBA,UAAQ;;;;AAmB3B,MAAM,yBAAyB"}
1
+ {"version":3,"file":"index.mjs","names":["Locales"],"sources":["../../src/index.ts"],"sourcesContent":["/** biome-ignore-all lint/suspicious/noEmptyInterface: Intlayer module augmentation registries */\nimport {\n type Dictionary as DictionaryCore,\n type CustomIntlayerConfig as IntlayerConfig,\n Locales,\n} from '@intlayer/types';\n\ntype Dictionary<T = undefined> = DictionaryCore<T, true>;\n/**\n * @deprecated Use `Dictionary<T>` instead.\n */\ntype DeclarationContent<T = undefined> = Dictionary<T>;\n\n/**\n * @deprecated\n *\n * Use Locales.All_LOCALES instead\n */\nconst localeList = Locales.ALL_LOCALES;\n\nexport {\n type ContentNode,\n type Locale,\n Locales,\n type LocalesValues,\n type StrictModeLocaleMap,\n} from '@intlayer/types';\nexport type { DeclarationContent, Dictionary, IntlayerConfig, localeList };\n\n/**\n * Rexport using named import because πof Tsup bug in CJS\n */\nimport configuration from '@intlayer/config/built';\n\n/**\n * @deprecated Use `import { configuration } from 'intlayer'` instead.\n */\nconst getConfiguration = () => configuration;\n\nconst locales = configuration.internationalization.locales;\nconst requiredLocales = configuration.internationalization.requiredLocales;\nconst defaultLocale = configuration.internationalization.defaultLocale;\n\n// Reexport here for CJS compatibility\n// Fix ReferenceError: Cannot access 'xxx' before initialization\nexport {\n configuration,\n getConfiguration,\n locales,\n requiredLocales,\n defaultLocale,\n};\n\nexport {\n compact,\n cond,\n currency,\n date,\n enu,\n gender,\n getBrowserLocale,\n getCookie,\n getDictionary,\n getEnumeration,\n /**\n * @deprecated Use `getEnumeration` instead.\n */\n getEnumeration as getEnumerationContent,\n getHTMLTextDir,\n getIntlayer,\n getLocale,\n getLocaleFromPath,\n getLocaleFromStorage,\n getLocaleLang,\n getLocaleName,\n getLocalizedUrl,\n getMarkdownMetadata,\n getMultilingualUrls,\n getNesting,\n getPathWithoutLocale,\n getPrefix,\n getTranslation,\n /**\n * @deprecated Use `getTranslation` instead.\n */\n getTranslation as getTranslationContent,\n Intl,\n insert,\n localeDetector,\n localeFlatMap,\n localeMap,\n localeRecord,\n localeResolver,\n md,\n nest,\n number,\n percentage,\n relativeTime,\n setLocaleInStorage,\n t,\n units,\n validatePrefix,\n} from '@intlayer/core';\nexport { file } from '@intlayer/core/file'; // Include specific export for browser because of node js function that can't be used in browser\n\n// --- Registries to be augmented by the generator ---\nexport interface __DictionaryRegistry {} // id -> interfaceof ictionary\nexport interface __DeclaredLocalesRegistry {} // 'fr': 1, 'en': 1, ...\nexport interface __RequiredLocalesRegistry {} // 'en': 1, ...\nexport interface __StrictModeRegistry {} // one of: { strict: true } | { inclusive: true } | { loose: true }\n"],"mappings":";;;;;;;;;;AAkBmBA,UAAQ;;;;AAmB3B,MAAM,yBAAyB;AAE/B,MAAM,UAAU,cAAc,qBAAqB;AACnD,MAAM,kBAAkB,cAAc,qBAAqB;AAC3D,MAAM,gBAAgB,cAAc,qBAAqB"}
@@ -1,5 +1,5 @@
1
1
  import * as _intlayer_types0 from "@intlayer/types";
2
- import { ContentNode, CustomIntlayerConfig as IntlayerConfig, Dictionary as Dictionary$1, Locale, Locales, LocalesValues, StrictModeLocaleMap } from "@intlayer/types";
2
+ import { ContentNode, CustomIntlayerConfig as IntlayerConfig, Dictionary as Dictionary$1, Locale, Locales, Locales as Locales$1, LocalesValues, StrictModeLocaleMap } from "@intlayer/types";
3
3
  import configuration from "@intlayer/config/built";
4
4
  import { Intl, compact, cond, currency, date, enu, gender, getBrowserLocale, getCookie, getDictionary, getEnumeration, getEnumeration as getEnumerationContent, getHTMLTextDir, getIntlayer, getLocale, getLocaleFromPath, getLocaleFromStorage, getLocaleLang, getLocaleName, getLocalizedUrl, getMarkdownMetadata, getMultilingualUrls, getNesting, getPathWithoutLocale, getPrefix, getTranslation, getTranslation as getTranslationContent, insert, localeDetector, localeFlatMap, localeMap, localeRecord, localeResolver, md, nest, number, percentage, relativeTime, setLocaleInStorage, t, units, validatePrefix } from "@intlayer/core";
5
5
  import { file } from "@intlayer/core/file";
@@ -113,6 +113,10 @@ declare const localeList: {
113
113
  readonly FRENCH_FRANCE: "fr-FR";
114
114
  readonly FRENCH_LUXEMBOURG: "fr-LU";
115
115
  readonly FRENCH_PRINCIPALITY_OF_MONACO: "fr-MC";
116
+ readonly IRISH: "ga";
117
+ readonly IRISH_IRELAND: "ga-IE";
118
+ readonly SCOTTISH_GAELIC: "gd";
119
+ readonly SCOTTISH_GAELIC_UNITED_KINGDOM: "gd-GB";
116
120
  readonly GALICIAN: "gl";
117
121
  readonly GALICIAN_SPAIN: "gl-ES";
118
122
  readonly GUJARATI: "gu";
@@ -147,6 +151,8 @@ declare const localeList: {
147
151
  readonly KOREAN_KOREA: "ko-KR";
148
152
  readonly KONKANI: "kok";
149
153
  readonly KONKANI_INDIA: "kok-IN";
154
+ readonly KURDISH: "ku";
155
+ readonly KURDISH_TURKEY: "ku-TR";
150
156
  readonly KYRGYZ: "ky";
151
157
  readonly KYRGYZ_KYRGYZSTAN: "ky-KG";
152
158
  readonly LITHUANIAN: "lt";
@@ -166,11 +172,15 @@ declare const localeList: {
166
172
  readonly MALAY_MALAYSIA: "ms-MY";
167
173
  readonly MALTESE: "mt";
168
174
  readonly MALTESE_MALTA: "mt-MT";
175
+ readonly MALAYALAM: "ml";
176
+ readonly MALAYALAM_INDIA: "ml-IN";
177
+ readonly NORWEGIAN: "no";
169
178
  readonly NORWEGIAN_BOKMAL: "nb";
170
179
  readonly NORWEGIAN_BOKMAL_NORWAY: "nb-NO";
171
180
  readonly DUTCH: "nl";
172
181
  readonly DUTCH_BELGIUM: "nl-BE";
173
182
  readonly DUTCH_NETHERLANDS: "nl-NL";
183
+ readonly NORWEGIAN_NYNORSK: "nn";
174
184
  readonly NORWEGIAN_NYNORSK_NORWAY: "nn-NO";
175
185
  readonly NORTHERN_SOTHO: "ns";
176
186
  readonly NORTHERN_SOTHO_SOUTH_AFRICA: "ns-ZA";
@@ -189,14 +199,22 @@ declare const localeList: {
189
199
  readonly QUECHUA_PERU: "qu-PE";
190
200
  readonly ROMANIAN: "ro";
191
201
  readonly ROMANIAN_ROMANIA: "ro-RO";
202
+ readonly ROMANIAN_MOLDOVA: "ro-MD";
203
+ readonly ROMANSH: "rm";
204
+ readonly ROMANSH_SWITZERLAND: "rm-CH";
192
205
  readonly RUSSIAN: "ru";
193
206
  readonly RUSSIAN_RUSSIA: "ru-RU";
207
+ readonly RUSSIAN_MOLDOVA: "ru-MD";
194
208
  readonly SANSKRIT: "sa";
195
209
  readonly SANSKRIT_INDIA: "sa-IN";
196
210
  readonly SAMI_NORTHERN: "se";
197
211
  readonly SAMI_NORTHERN_FINLAND: "se-FI";
198
212
  readonly SAMI_NORTHERN_NORWAY: "se-NO";
199
213
  readonly SAMI_NORTHERN_SWEDEN: "se-SE";
214
+ readonly UPPER_SORBIAN: "hsb";
215
+ readonly UPPER_SORBIAN_GERMANY: "hsb-DE";
216
+ readonly LOWER_SORBIAN: "dsb";
217
+ readonly LOWER_SORBIAN_GERMANY: "dsb-DE";
200
218
  readonly SLOVAK: "sk";
201
219
  readonly SLOVAK_SLOVAKIA: "sk-SK";
202
220
  readonly SLOVENIAN: "sl";
@@ -236,6 +254,8 @@ declare const localeList: {
236
254
  readonly UZBEK_LATIN_UZBEKISTAN: "uz-UZ";
237
255
  readonly VIETNAMESE: "vi";
238
256
  readonly VIETNAMESE_VIET_NAM: "vi-VN";
257
+ readonly VENDA: "ve";
258
+ readonly VENDA_SOUTH_AFRICA: "ve-ZA";
239
259
  readonly XHOSA: "xh";
240
260
  readonly XHOSA_SOUTH_AFRICA: "xh-ZA";
241
261
  readonly CHINESE: "zh";
@@ -259,6 +279,8 @@ declare const localeList: {
259
279
  readonly LAO_LAOS: "lo-LA";
260
280
  readonly YORUBA: "yo";
261
281
  readonly YORUBA_NIGERIA: "yo-NG";
282
+ readonly YIDDISH: "yi";
283
+ readonly YIDDISH_WORLD: "yi-001";
262
284
  readonly AMHARIC: "am";
263
285
  readonly AMHARIC_ETHIOPIA: "am-ET";
264
286
  readonly NEPALI: "ne";
@@ -300,10 +322,13 @@ declare const localeList: {
300
322
  * @deprecated Use `import { configuration } from 'intlayer'` instead.
301
323
  */
302
324
  declare const getConfiguration: () => _intlayer_types0.IntlayerConfig;
325
+ declare const locales: Locales$1.Locale[];
326
+ declare const requiredLocales: Locales$1.Locale[];
327
+ declare const defaultLocale: Locales$1.Locale;
303
328
  interface __DictionaryRegistry {}
304
329
  interface __DeclaredLocalesRegistry {}
305
330
  interface __RequiredLocalesRegistry {}
306
331
  interface __StrictModeRegistry {}
307
332
  //#endregion
308
- export { type ContentNode, type DeclarationContent, type Dictionary, Intl, type IntlayerConfig, type Locale, Locales, type LocalesValues, type StrictModeLocaleMap, __DeclaredLocalesRegistry, __DictionaryRegistry, __RequiredLocalesRegistry, __StrictModeRegistry, compact, cond, configuration, currency, date, enu, file, gender, getBrowserLocale, getConfiguration, getCookie, getDictionary, getEnumeration, getEnumerationContent, getHTMLTextDir, getIntlayer, getLocale, getLocaleFromPath, getLocaleFromStorage, getLocaleLang, getLocaleName, getLocalizedUrl, getMarkdownMetadata, getMultilingualUrls, getNesting, getPathWithoutLocale, getPrefix, getTranslation, getTranslationContent, insert, localeDetector, localeFlatMap, type localeList, localeMap, localeRecord, localeResolver, md, nest, number, percentage, relativeTime, setLocaleInStorage, t, units, validatePrefix };
333
+ export { type ContentNode, type DeclarationContent, type Dictionary, Intl, type IntlayerConfig, type Locale, Locales, type LocalesValues, type StrictModeLocaleMap, __DeclaredLocalesRegistry, __DictionaryRegistry, __RequiredLocalesRegistry, __StrictModeRegistry, compact, cond, configuration, currency, date, defaultLocale, enu, file, gender, getBrowserLocale, getConfiguration, getCookie, getDictionary, getEnumeration, getEnumerationContent, getHTMLTextDir, getIntlayer, getLocale, getLocaleFromPath, getLocaleFromStorage, getLocaleLang, getLocaleName, getLocalizedUrl, getMarkdownMetadata, getMultilingualUrls, getNesting, getPathWithoutLocale, getPrefix, getTranslation, getTranslationContent, insert, localeDetector, localeFlatMap, type localeList, localeMap, localeRecord, localeResolver, locales, md, nest, number, percentage, relativeTime, requiredLocales, setLocaleInStorage, t, units, validatePrefix };
309
334
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;KAOK,4BAA4B,aAAe;;;;KAI3C,oCAAoC,WAAW;AAN3B;AAEsB;AAII;AAqBA;AAgEnD;AACA,cA/EM,UA+EW,EAAA;EACA,SAAA,SAAA,EAAA,IAAA;EACA,SAAA,sBAAoB,EAAA,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA9D/B,wBAAsC,gBAAA,CAAtB;UA2DL,oBAAA;UACA,yBAAA;UACA,yBAAA;UACA,oBAAA"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;KAOK,4BAA4B,aAAe;;;;KAI3C,oCAAoC,WAAW;AAN3B;AAEsB;AAII;AAqBA;AAKP;AAE/B,cArBP,UAsBoE,EAAA;EACpE,SAAA,SAAgE,EAAA,IAAA;EAiErD,SAAA,sBAAoB,EAAA,OAAA;EACpB,SAAA,MAAA,EAAA,IAAA;EACA,SAAA,2BAAyB,EAAA,OAAA;EACzB,SAAA,cAAoB,EAAA,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAxE/B,wBAAsC,gBAAA,CAAtB;cAEhB,SAAO,SAAA,CAAA;cACP,iBAAe,SAAA,CAAA;cACf,eAAa,SAAA,CAAA;UAiEF,oBAAA;UACA,yBAAA;UACA,yBAAA;UACA,oBAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intlayer",
3
- "version": "7.5.0-canary.0",
3
+ "version": "7.5.0",
4
4
  "private": false,
5
5
  "description": "Manage internationalization i18n in a simple way, through TypeScript, declaration file, declare your multilingual content every where in your code.",
6
6
  "keywords": [
@@ -91,20 +91,20 @@
91
91
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
92
92
  },
93
93
  "dependencies": {
94
- "@intlayer/cli": "7.5.0-canary.0",
95
- "@intlayer/config": "7.5.0-canary.0",
96
- "@intlayer/core": "7.5.0-canary.0",
97
- "@intlayer/types": "7.5.0-canary.0"
94
+ "@intlayer/cli": "7.5.0",
95
+ "@intlayer/config": "7.5.0",
96
+ "@intlayer/core": "7.5.0",
97
+ "@intlayer/types": "7.5.0"
98
98
  },
99
99
  "devDependencies": {
100
- "@types/node": "24.10.1",
100
+ "@types/node": "25.0.3",
101
101
  "@utils/ts-config": "1.0.4",
102
102
  "@utils/ts-config-types": "1.0.4",
103
103
  "@utils/tsdown-config": "1.0.4",
104
104
  "rimraf": "6.1.2",
105
- "tsdown": "0.16.8",
105
+ "tsdown": "0.18.1",
106
106
  "typescript": "5.9.3",
107
- "vitest": "4.0.15"
107
+ "vitest": "4.0.16"
108
108
  },
109
109
  "engines": {
110
110
  "node": ">=14.18"