intlayer 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.
- package/dist/cjs/_virtual/rolldown_runtime.cjs +25 -0
- package/dist/cjs/cli/index.cjs +8 -22
- package/dist/cjs/cli/script.cjs +8 -3
- package/dist/cjs/cli/script.cjs.map +1 -1
- package/dist/cjs/index.cjs +235 -117
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/cli/index.mjs +1 -2
- package/dist/esm/cli/script.mjs +4 -0
- package/dist/esm/cli/script.mjs.map +1 -1
- package/dist/esm/index.mjs +12 -80
- package/dist/esm/index.mjs.map +1 -1
- package/dist/types/cli/index.d.ts +1 -2
- package/dist/types/cli/script.d.ts +1 -3
- package/dist/types/index.d.ts +299 -19
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +32 -40
- package/LICENSE +0 -202
- package/dist/cjs/cli/index.cjs.map +0 -1
- package/dist/esm/cli/index.mjs.map +0 -1
- package/dist/types/cli/index.d.ts.map +0 -1
- package/dist/types/cli/script.d.ts.map +0 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
//#region rolldown:runtime
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
10
|
+
key = keys[i];
|
|
11
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
12
|
+
get: ((k) => from[k]).bind(null, key),
|
|
13
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
19
|
+
value: mod,
|
|
20
|
+
enumerable: true
|
|
21
|
+
}) : target, mod));
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
|
|
25
|
+
exports.__toESM = __toESM;
|
package/dist/cjs/cli/index.cjs
CHANGED
|
@@ -1,23 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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 __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
-
var cli_exports = {};
|
|
17
|
-
module.exports = __toCommonJS(cli_exports);
|
|
18
|
-
__reExport(cli_exports, require("@intlayer/cli"), module.exports);
|
|
19
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
20
|
-
0 && (module.exports = {
|
|
21
|
-
...require("@intlayer/cli")
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
var __intlayer_cli = require("@intlayer/cli");
|
|
4
|
+
Object.keys(__intlayer_cli).forEach(function (k) {
|
|
5
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function () { return __intlayer_cli[k]; }
|
|
8
|
+
});
|
|
22
9
|
});
|
|
23
|
-
//# sourceMappingURL=index.cjs.map
|
package/dist/cjs/cli/script.cjs
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
3
|
+
let __intlayer_cli = require("@intlayer/cli");
|
|
4
|
+
__intlayer_cli = require_rolldown_runtime.__toESM(__intlayer_cli);
|
|
5
|
+
|
|
6
|
+
//#region src/cli/script.ts
|
|
7
|
+
(0, __intlayer_cli.setAPI)();
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
5
10
|
//# sourceMappingURL=script.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/cli/script.ts"],"sourcesContent":["#!/usr/bin/env node\nimport { setAPI } from '@intlayer/cli';\n\nsetAPI();\n"],"mappings":"
|
|
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"}
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,119 +1,237 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
)
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
1
|
+
const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
|
|
2
|
+
let __intlayer_types = require("@intlayer/types");
|
|
3
|
+
__intlayer_types = require_rolldown_runtime.__toESM(__intlayer_types);
|
|
4
|
+
let __intlayer_config_built = require("@intlayer/config/built");
|
|
5
|
+
__intlayer_config_built = require_rolldown_runtime.__toESM(__intlayer_config_built);
|
|
6
|
+
let __intlayer_core = require("@intlayer/core");
|
|
7
|
+
__intlayer_core = require_rolldown_runtime.__toESM(__intlayer_core);
|
|
8
|
+
let __intlayer_core_file = require("@intlayer/core/file");
|
|
9
|
+
__intlayer_core_file = require_rolldown_runtime.__toESM(__intlayer_core_file);
|
|
10
|
+
|
|
11
|
+
//#region src/index.ts
|
|
12
|
+
__intlayer_types.Locales.ALL_LOCALES;
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated Use `import { configuration } from 'intlayer'` instead.
|
|
15
|
+
*/
|
|
16
|
+
const getConfiguration = () => __intlayer_config_built.default;
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
Object.defineProperty(exports, 'Intl', {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () {
|
|
22
|
+
return __intlayer_core.Intl;
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
Object.defineProperty(exports, 'Locales', {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function () {
|
|
28
|
+
return __intlayer_types.Locales;
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, 'compact', {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () {
|
|
34
|
+
return __intlayer_core.compact;
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
Object.defineProperty(exports, 'cond', {
|
|
38
|
+
enumerable: true,
|
|
39
|
+
get: function () {
|
|
40
|
+
return __intlayer_core.cond;
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
exports.configuration = __intlayer_config_built.default;
|
|
44
|
+
Object.defineProperty(exports, 'currency', {
|
|
45
|
+
enumerable: true,
|
|
46
|
+
get: function () {
|
|
47
|
+
return __intlayer_core.currency;
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
Object.defineProperty(exports, 'date', {
|
|
51
|
+
enumerable: true,
|
|
52
|
+
get: function () {
|
|
53
|
+
return __intlayer_core.date;
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
Object.defineProperty(exports, 'enu', {
|
|
57
|
+
enumerable: true,
|
|
58
|
+
get: function () {
|
|
59
|
+
return __intlayer_core.enu;
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
Object.defineProperty(exports, 'file', {
|
|
63
|
+
enumerable: true,
|
|
64
|
+
get: function () {
|
|
65
|
+
return __intlayer_core_file.file;
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
Object.defineProperty(exports, 'gender', {
|
|
69
|
+
enumerable: true,
|
|
70
|
+
get: function () {
|
|
71
|
+
return __intlayer_core.gender;
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
Object.defineProperty(exports, 'getBrowserLocale', {
|
|
75
|
+
enumerable: true,
|
|
76
|
+
get: function () {
|
|
77
|
+
return __intlayer_core.getBrowserLocale;
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
exports.getConfiguration = getConfiguration;
|
|
81
|
+
Object.defineProperty(exports, 'getDictionary', {
|
|
82
|
+
enumerable: true,
|
|
83
|
+
get: function () {
|
|
84
|
+
return __intlayer_core.getDictionary;
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
Object.defineProperty(exports, 'getEnumeration', {
|
|
88
|
+
enumerable: true,
|
|
89
|
+
get: function () {
|
|
90
|
+
return __intlayer_core.getEnumeration;
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
Object.defineProperty(exports, 'getEnumerationContent', {
|
|
94
|
+
enumerable: true,
|
|
95
|
+
get: function () {
|
|
96
|
+
return __intlayer_core.getEnumeration;
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
Object.defineProperty(exports, 'getHTMLTextDir', {
|
|
100
|
+
enumerable: true,
|
|
101
|
+
get: function () {
|
|
102
|
+
return __intlayer_core.getHTMLTextDir;
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
Object.defineProperty(exports, 'getIntlayer', {
|
|
106
|
+
enumerable: true,
|
|
107
|
+
get: function () {
|
|
108
|
+
return __intlayer_core.getIntlayer;
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
Object.defineProperty(exports, 'getLocaleFromPath', {
|
|
112
|
+
enumerable: true,
|
|
113
|
+
get: function () {
|
|
114
|
+
return __intlayer_core.getLocaleFromPath;
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
Object.defineProperty(exports, 'getLocaleLang', {
|
|
118
|
+
enumerable: true,
|
|
119
|
+
get: function () {
|
|
120
|
+
return __intlayer_core.getLocaleLang;
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
Object.defineProperty(exports, 'getLocaleName', {
|
|
124
|
+
enumerable: true,
|
|
125
|
+
get: function () {
|
|
126
|
+
return __intlayer_core.getLocaleName;
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
Object.defineProperty(exports, 'getLocalizedUrl', {
|
|
130
|
+
enumerable: true,
|
|
131
|
+
get: function () {
|
|
132
|
+
return __intlayer_core.getLocalizedUrl;
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
Object.defineProperty(exports, 'getMarkdownMetadata', {
|
|
136
|
+
enumerable: true,
|
|
137
|
+
get: function () {
|
|
138
|
+
return __intlayer_core.getMarkdownMetadata;
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
Object.defineProperty(exports, 'getMultilingualUrls', {
|
|
142
|
+
enumerable: true,
|
|
143
|
+
get: function () {
|
|
144
|
+
return __intlayer_core.getMultilingualUrls;
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
Object.defineProperty(exports, 'getNesting', {
|
|
148
|
+
enumerable: true,
|
|
149
|
+
get: function () {
|
|
150
|
+
return __intlayer_core.getNesting;
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
Object.defineProperty(exports, 'getPathWithoutLocale', {
|
|
154
|
+
enumerable: true,
|
|
155
|
+
get: function () {
|
|
156
|
+
return __intlayer_core.getPathWithoutLocale;
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
Object.defineProperty(exports, 'getTranslation', {
|
|
160
|
+
enumerable: true,
|
|
161
|
+
get: function () {
|
|
162
|
+
return __intlayer_core.getTranslation;
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
Object.defineProperty(exports, 'getTranslationContent', {
|
|
166
|
+
enumerable: true,
|
|
167
|
+
get: function () {
|
|
168
|
+
return __intlayer_core.getTranslation;
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
Object.defineProperty(exports, 'insert', {
|
|
172
|
+
enumerable: true,
|
|
173
|
+
get: function () {
|
|
174
|
+
return __intlayer_core.insert;
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
Object.defineProperty(exports, 'localeFlatMap', {
|
|
178
|
+
enumerable: true,
|
|
179
|
+
get: function () {
|
|
180
|
+
return __intlayer_core.localeFlatMap;
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
Object.defineProperty(exports, 'localeMap', {
|
|
184
|
+
enumerable: true,
|
|
185
|
+
get: function () {
|
|
186
|
+
return __intlayer_core.localeMap;
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
Object.defineProperty(exports, 'localeRecord', {
|
|
190
|
+
enumerable: true,
|
|
191
|
+
get: function () {
|
|
192
|
+
return __intlayer_core.localeRecord;
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
Object.defineProperty(exports, 'md', {
|
|
196
|
+
enumerable: true,
|
|
197
|
+
get: function () {
|
|
198
|
+
return __intlayer_core.md;
|
|
199
|
+
}
|
|
200
|
+
});
|
|
201
|
+
Object.defineProperty(exports, 'nest', {
|
|
202
|
+
enumerable: true,
|
|
203
|
+
get: function () {
|
|
204
|
+
return __intlayer_core.nest;
|
|
205
|
+
}
|
|
206
|
+
});
|
|
207
|
+
Object.defineProperty(exports, 'number', {
|
|
208
|
+
enumerable: true,
|
|
209
|
+
get: function () {
|
|
210
|
+
return __intlayer_core.number;
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
Object.defineProperty(exports, 'percentage', {
|
|
214
|
+
enumerable: true,
|
|
215
|
+
get: function () {
|
|
216
|
+
return __intlayer_core.percentage;
|
|
217
|
+
}
|
|
218
|
+
});
|
|
219
|
+
Object.defineProperty(exports, 'relativeTime', {
|
|
220
|
+
enumerable: true,
|
|
221
|
+
get: function () {
|
|
222
|
+
return __intlayer_core.relativeTime;
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
Object.defineProperty(exports, 't', {
|
|
226
|
+
enumerable: true,
|
|
227
|
+
get: function () {
|
|
228
|
+
return __intlayer_core.t;
|
|
229
|
+
}
|
|
230
|
+
});
|
|
231
|
+
Object.defineProperty(exports, 'units', {
|
|
232
|
+
enumerable: true,
|
|
233
|
+
get: function () {
|
|
234
|
+
return __intlayer_core.units;
|
|
235
|
+
}
|
|
118
236
|
});
|
|
119
237
|
//# sourceMappingURL=index.cjs.map
|
package/dist/cjs/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["
|
|
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 getDictionary,\n getEnumeration,\n /**\n * @deprecated Use `getEnumeration` instead.\n */\n getEnumeration as getEnumerationContent,\n getHTMLTextDir,\n getIntlayer,\n getLocaleFromPath,\n getLocaleLang,\n getLocaleName,\n getLocalizedUrl,\n getMarkdownMetadata,\n getMultilingualUrls,\n getNesting,\n getPathWithoutLocale,\n getTranslation,\n /**\n * @deprecated Use `getTranslation` instead.\n */\n getTranslation as getTranslationContent,\n Intl,\n insert,\n localeFlatMap,\n localeMap,\n localeRecord,\n md,\n nest,\n number,\n percentage,\n relativeTime,\n t,\n units,\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"}
|
package/dist/esm/cli/index.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export * from "@intlayer/cli"
|
|
2
|
-
//# sourceMappingURL=index.mjs.map
|
|
1
|
+
export * from "@intlayer/cli"
|
package/dist/esm/cli/script.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/cli/script.ts"],"sourcesContent":["#!/usr/bin/env node\nimport { setAPI } from '@intlayer/cli';\n\nsetAPI();\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"script.mjs","names":[],"sources":["../../../src/cli/script.ts"],"sourcesContent":["#!/usr/bin/env node\nimport { setAPI } from '@intlayer/cli';\n\nsetAPI();\n"],"mappings":";;;;AAGA,QAAQ"}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,83 +1,15 @@
|
|
|
1
|
-
import { Locales } from "@intlayer/
|
|
1
|
+
import { Locales, Locales as Locales$1 } from "@intlayer/types";
|
|
2
2
|
import configuration from "@intlayer/config/built";
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
compact,
|
|
6
|
-
cond,
|
|
7
|
-
currency,
|
|
8
|
-
date,
|
|
9
|
-
enu,
|
|
10
|
-
gender,
|
|
11
|
-
getDictionary,
|
|
12
|
-
getEnumeration,
|
|
13
|
-
getEnumeration as getEnumeration2,
|
|
14
|
-
getHTMLTextDir,
|
|
15
|
-
getIntlayer,
|
|
16
|
-
getIntlayerAsync,
|
|
17
|
-
getLocaleFromPath,
|
|
18
|
-
getLocaleLang,
|
|
19
|
-
getLocaleName,
|
|
20
|
-
getLocalizedUrl,
|
|
21
|
-
getMarkdownMetadata,
|
|
22
|
-
getMultilingualUrls,
|
|
23
|
-
getNesting,
|
|
24
|
-
getPathWithoutLocale,
|
|
25
|
-
getTranslation,
|
|
26
|
-
getTranslation as getTranslation2,
|
|
27
|
-
insert,
|
|
28
|
-
Intl,
|
|
29
|
-
localeFlatMap,
|
|
30
|
-
localeList,
|
|
31
|
-
localeMap,
|
|
32
|
-
localeRecord,
|
|
33
|
-
md,
|
|
34
|
-
nest,
|
|
35
|
-
number,
|
|
36
|
-
percentage,
|
|
37
|
-
relativeTime,
|
|
38
|
-
t,
|
|
39
|
-
units
|
|
40
|
-
} from "@intlayer/core";
|
|
3
|
+
import { Intl, compact, cond, currency, date, enu, gender, getBrowserLocale, getDictionary, getEnumeration, getEnumeration as getEnumerationContent, getHTMLTextDir, getIntlayer, getLocaleFromPath, getLocaleLang, getLocaleName, getLocalizedUrl, getMarkdownMetadata, getMultilingualUrls, getNesting, getPathWithoutLocale, getTranslation, getTranslation as getTranslationContent, insert, localeFlatMap, localeMap, localeRecord, md, nest, number, percentage, relativeTime, t, units } from "@intlayer/core";
|
|
41
4
|
import { file } from "@intlayer/core/file";
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
gender,
|
|
53
|
-
getConfiguration,
|
|
54
|
-
getDictionary,
|
|
55
|
-
getEnumeration,
|
|
56
|
-
getEnumeration2 as getEnumerationContent,
|
|
57
|
-
getHTMLTextDir,
|
|
58
|
-
getIntlayer,
|
|
59
|
-
getIntlayerAsync,
|
|
60
|
-
getLocaleFromPath,
|
|
61
|
-
getLocaleLang,
|
|
62
|
-
getLocaleName,
|
|
63
|
-
getLocalizedUrl,
|
|
64
|
-
getMarkdownMetadata,
|
|
65
|
-
getMultilingualUrls,
|
|
66
|
-
getNesting,
|
|
67
|
-
getPathWithoutLocale,
|
|
68
|
-
getTranslation,
|
|
69
|
-
getTranslation2 as getTranslationContent,
|
|
70
|
-
insert,
|
|
71
|
-
localeFlatMap,
|
|
72
|
-
localeList,
|
|
73
|
-
localeMap,
|
|
74
|
-
localeRecord,
|
|
75
|
-
md,
|
|
76
|
-
nest,
|
|
77
|
-
number,
|
|
78
|
-
percentage,
|
|
79
|
-
relativeTime,
|
|
80
|
-
t,
|
|
81
|
-
units
|
|
82
|
-
};
|
|
5
|
+
|
|
6
|
+
//#region src/index.ts
|
|
7
|
+
Locales$1.ALL_LOCALES;
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated Use `import { configuration } from 'intlayer'` instead.
|
|
10
|
+
*/
|
|
11
|
+
const getConfiguration = () => configuration;
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
export { Intl, Locales, compact, cond, configuration, currency, date, enu, file, gender, getBrowserLocale, getConfiguration, getDictionary, getEnumeration, getEnumerationContent, getHTMLTextDir, getIntlayer, getLocaleFromPath, getLocaleLang, getLocaleName, getLocalizedUrl, getMarkdownMetadata, getMultilingualUrls, getNesting, getPathWithoutLocale, getTranslation, getTranslationContent, insert, localeFlatMap, localeMap, localeRecord, md, nest, number, percentage, relativeTime, t, units };
|
|
83
15
|
//# sourceMappingURL=index.mjs.map
|
package/dist/esm/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["
|
|
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 getDictionary,\n getEnumeration,\n /**\n * @deprecated Use `getEnumeration` instead.\n */\n getEnumeration as getEnumerationContent,\n getHTMLTextDir,\n getIntlayer,\n getLocaleFromPath,\n getLocaleLang,\n getLocaleName,\n getLocalizedUrl,\n getMarkdownMetadata,\n getMultilingualUrls,\n getNesting,\n getPathWithoutLocale,\n getTranslation,\n /**\n * @deprecated Use `getTranslation` instead.\n */\n getTranslation as getTranslationContent,\n Intl,\n insert,\n localeFlatMap,\n localeMap,\n localeRecord,\n md,\n nest,\n number,\n percentage,\n relativeTime,\n t,\n units,\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,2 +1 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
export * from "@intlayer/cli";
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,29 +1,309 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
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";
|
|
3
|
+
import configuration from "@intlayer/config/built";
|
|
4
|
+
import { Intl, compact, cond, currency, date, enu, gender, getBrowserLocale, getDictionary, getEnumeration, getEnumeration as getEnumerationContent, getHTMLTextDir, getIntlayer, getLocaleFromPath, getLocaleLang, getLocaleName, getLocalizedUrl, getMarkdownMetadata, getMultilingualUrls, getNesting, getPathWithoutLocale, getTranslation, getTranslation as getTranslationContent, insert, localeFlatMap, localeMap, localeRecord, md, nest, number, percentage, relativeTime, t, units } from "@intlayer/core";
|
|
5
|
+
import { file } from "@intlayer/core/file";
|
|
6
|
+
|
|
7
|
+
//#region src/index.d.ts
|
|
8
|
+
type Dictionary<T = undefined> = Dictionary$1<T, true>;
|
|
4
9
|
/**
|
|
5
10
|
* @deprecated Use `Dictionary<T>` instead.
|
|
6
11
|
*/
|
|
7
12
|
type DeclarationContent<T = undefined> = Dictionary<T>;
|
|
8
|
-
export { Locales, type LocalesValues } from '@intlayer/config/client';
|
|
9
|
-
export type { DeclarationContent, Dictionary };
|
|
10
13
|
/**
|
|
11
|
-
*
|
|
14
|
+
* @deprecated
|
|
15
|
+
*
|
|
16
|
+
* Use Locales.All_LOCALES instead
|
|
12
17
|
*/
|
|
13
|
-
|
|
18
|
+
declare const localeList: {
|
|
19
|
+
readonly AFRIKAANS: "af";
|
|
20
|
+
readonly AFRIKAANS_SOUTH_AFRICA: "af-ZA";
|
|
21
|
+
readonly ARABIC: "ar";
|
|
22
|
+
readonly ARABIC_UNITED_ARAB_EMIRATES: "ar-AE";
|
|
23
|
+
readonly ARABIC_BAHRAIN: "ar-BH";
|
|
24
|
+
readonly ARABIC_ALGERIA: "ar-DZ";
|
|
25
|
+
readonly ARABIC_EGYPT: "ar-EG";
|
|
26
|
+
readonly ARABIC_IRAQ: "ar-IQ";
|
|
27
|
+
readonly ARABIC_JORDAN: "ar-JO";
|
|
28
|
+
readonly ARABIC_KUWAIT: "ar-KW";
|
|
29
|
+
readonly ARABIC_LEBANON: "ar-LB";
|
|
30
|
+
readonly ARABIC_LIBYA: "ar-LY";
|
|
31
|
+
readonly ARABIC_MOROCCO: "ar-MA";
|
|
32
|
+
readonly ARABIC_OMAN: "ar-OM";
|
|
33
|
+
readonly ARABIC_QATAR: "ar-QA";
|
|
34
|
+
readonly ARABIC_SAUDI_ARABIA: "ar-SA";
|
|
35
|
+
readonly ARABIC_SYRIA: "ar-SY";
|
|
36
|
+
readonly ARABIC_TUNISIA: "ar-TN";
|
|
37
|
+
readonly ARABIC_YEMEN: "ar-YE";
|
|
38
|
+
readonly AZERI_LATIN: "az";
|
|
39
|
+
readonly AZERI_LATIN_AZERBAIJAN: "az-AZ";
|
|
40
|
+
readonly BELARUSIAN: "be";
|
|
41
|
+
readonly BELARUSIAN_BELARUS: "be-BY";
|
|
42
|
+
readonly BULGARIAN: "bg";
|
|
43
|
+
readonly BULGARIAN_BULGARIA: "bg-BG";
|
|
44
|
+
readonly BOSNIAN: "bs";
|
|
45
|
+
readonly BOSNIAN_BOSNIA_AND_HERZEGOVINA: "bs-BA";
|
|
46
|
+
readonly CATALAN: "ca";
|
|
47
|
+
readonly CATALAN_SPAIN: "ca-ES";
|
|
48
|
+
readonly CZECH: "cs";
|
|
49
|
+
readonly CZECH_CZECH_REPUBLIC: "cs-CZ";
|
|
50
|
+
readonly WELSH: "cy";
|
|
51
|
+
readonly WELSH_UNITED_KINGDOM: "cy-GB";
|
|
52
|
+
readonly DANISH: "da";
|
|
53
|
+
readonly DANISH_DENMARK: "da-DK";
|
|
54
|
+
readonly GERMAN: "de";
|
|
55
|
+
readonly GERMAN_AUSTRIA: "de-AT";
|
|
56
|
+
readonly GERMAN_SWITZERLAND: "de-CH";
|
|
57
|
+
readonly GERMAN_GERMANY: "de-DE";
|
|
58
|
+
readonly GERMAN_LIECHTENSTEIN: "de-LI";
|
|
59
|
+
readonly GERMAN_LUXEMBOURG: "de-LU";
|
|
60
|
+
readonly DIVEHI: "dv";
|
|
61
|
+
readonly DIVEHI_MALDIVES: "dv-MV";
|
|
62
|
+
readonly GREEK: "el";
|
|
63
|
+
readonly GREEK_GREECE: "el-GR";
|
|
64
|
+
readonly ENGLISH: "en";
|
|
65
|
+
readonly ENGLISH_AUSTRALIA: "en-AU";
|
|
66
|
+
readonly ENGLISH_BELIZE: "en-BZ";
|
|
67
|
+
readonly ENGLISH_CANADA: "en-CA";
|
|
68
|
+
readonly ENGLISH_CARIBBEAN: "en-CB";
|
|
69
|
+
readonly ENGLISH_UNITED_KINGDOM: "en-GB";
|
|
70
|
+
readonly ENGLISH_IRELAND: "en-IE";
|
|
71
|
+
readonly ENGLISH_JAMAICA: "en-JM";
|
|
72
|
+
readonly ENGLISH_NEW_ZEALAND: "en-NZ";
|
|
73
|
+
readonly ENGLISH_PHILIPPINES: "en-PH";
|
|
74
|
+
readonly ENGLISH_TRINIDAD_AND_TOBAGO: "en-TT";
|
|
75
|
+
readonly ENGLISH_UNITED_STATES: "en-US";
|
|
76
|
+
readonly ENGLISH_SOUTH_AFRICA: "en-ZA";
|
|
77
|
+
readonly ENGLISH_ZIMBABWE: "en-ZW";
|
|
78
|
+
readonly ESPERANTO: "eo";
|
|
79
|
+
readonly SPANISH: "es";
|
|
80
|
+
readonly SPANISH_ARGENTINA: "es-AR";
|
|
81
|
+
readonly SPANISH_BOLIVIA: "es-BO";
|
|
82
|
+
readonly SPANISH_CHILE: "es-CL";
|
|
83
|
+
readonly SPANISH_COLOMBIA: "es-CO";
|
|
84
|
+
readonly SPANISH_COSTA_RICA: "es-CR";
|
|
85
|
+
readonly SPANISH_DOMINICAN_REPUBLIC: "es-DO";
|
|
86
|
+
readonly SPANISH_ECUADOR: "es-EC";
|
|
87
|
+
readonly SPANISH_SPAIN: "es-ES";
|
|
88
|
+
readonly SPANISH_GUATEMALA: "es-GT";
|
|
89
|
+
readonly SPANISH_HONDURAS: "es-HN";
|
|
90
|
+
readonly SPANISH_MEXICO: "es-MX";
|
|
91
|
+
readonly SPANISH_NICARAGUA: "es-NI";
|
|
92
|
+
readonly SPANISH_PANAMA: "es-PA";
|
|
93
|
+
readonly SPANISH_PERU: "es-PE";
|
|
94
|
+
readonly SPANISH_PUERTO_RICO: "es-PR";
|
|
95
|
+
readonly SPANISH_PARAGUAY: "es-PY";
|
|
96
|
+
readonly SPANISH_EL_SALVADOR: "es-SV";
|
|
97
|
+
readonly SPANISH_URUGUAY: "es-UY";
|
|
98
|
+
readonly SPANISH_VENEZUELA: "es-VE";
|
|
99
|
+
readonly ESTONIAN: "et";
|
|
100
|
+
readonly ESTONIAN_ESTONIA: "et-EE";
|
|
101
|
+
readonly BASQUE: "eu";
|
|
102
|
+
readonly BASQUE_SPAIN: "eu-ES";
|
|
103
|
+
readonly FARSI: "fa";
|
|
104
|
+
readonly FARSI_IRAN: "fa-IR";
|
|
105
|
+
readonly FINNISH: "fi";
|
|
106
|
+
readonly FINNISH_FINLAND: "fi-FI";
|
|
107
|
+
readonly FAROESE: "fo";
|
|
108
|
+
readonly FAROESE_FAROE_ISLANDS: "fo-FO";
|
|
109
|
+
readonly FRENCH: "fr";
|
|
110
|
+
readonly FRENCH_BELGIUM: "fr-BE";
|
|
111
|
+
readonly FRENCH_CANADA: "fr-CA";
|
|
112
|
+
readonly FRENCH_SWITZERLAND: "fr-CH";
|
|
113
|
+
readonly FRENCH_FRANCE: "fr-FR";
|
|
114
|
+
readonly FRENCH_LUXEMBOURG: "fr-LU";
|
|
115
|
+
readonly FRENCH_PRINCIPALITY_OF_MONACO: "fr-MC";
|
|
116
|
+
readonly GALICIAN: "gl";
|
|
117
|
+
readonly GALICIAN_SPAIN: "gl-ES";
|
|
118
|
+
readonly GUJARATI: "gu";
|
|
119
|
+
readonly GUJARATI_INDIA: "gu-IN";
|
|
120
|
+
readonly HEBREW: "he";
|
|
121
|
+
readonly HEBREW_ISRAEL: "he-IL";
|
|
122
|
+
readonly HINDI: "hi";
|
|
123
|
+
readonly HINDI_INDIA: "hi-IN";
|
|
124
|
+
readonly CROATIAN: "hr";
|
|
125
|
+
readonly CROATIAN_BOSNIA_AND_HERZEGOVINA: "hr-BA";
|
|
126
|
+
readonly CROATIAN_CROATIA: "hr-HR";
|
|
127
|
+
readonly HUNGARIAN: "hu";
|
|
128
|
+
readonly HUNGARIAN_HUNGARY: "hu-HU";
|
|
129
|
+
readonly ARMENIAN: "hy";
|
|
130
|
+
readonly ARMENIAN_ARMENIA: "hy-AM";
|
|
131
|
+
readonly INDONESIAN: "id";
|
|
132
|
+
readonly INDONESIAN_INDONESIA: "id-ID";
|
|
133
|
+
readonly ICELANDIC: "is";
|
|
134
|
+
readonly ICELANDIC_ICELAND: "is-IS";
|
|
135
|
+
readonly ITALIAN: "it";
|
|
136
|
+
readonly ITALIAN_SWITZERLAND: "it-CH";
|
|
137
|
+
readonly ITALIAN_ITALY: "it-IT";
|
|
138
|
+
readonly JAPANESE: "ja";
|
|
139
|
+
readonly JAPANESE_JAPAN: "ja-JP";
|
|
140
|
+
readonly GEORGIAN: "ka";
|
|
141
|
+
readonly GEORGIAN_GEORGIA: "ka-GE";
|
|
142
|
+
readonly KAZAKH: "kk";
|
|
143
|
+
readonly KAZAKH_KAZAKHSTAN: "kk-KZ";
|
|
144
|
+
readonly KANNADA: "kn";
|
|
145
|
+
readonly KANNADA_INDIA: "kn-IN";
|
|
146
|
+
readonly KOREAN: "ko";
|
|
147
|
+
readonly KOREAN_KOREA: "ko-KR";
|
|
148
|
+
readonly KONKANI: "kok";
|
|
149
|
+
readonly KONKANI_INDIA: "kok-IN";
|
|
150
|
+
readonly KYRGYZ: "ky";
|
|
151
|
+
readonly KYRGYZ_KYRGYZSTAN: "ky-KG";
|
|
152
|
+
readonly LITHUANIAN: "lt";
|
|
153
|
+
readonly LITHUANIAN_LITHUANIA: "lt-LT";
|
|
154
|
+
readonly LATVIAN: "lv";
|
|
155
|
+
readonly LATVIAN_LATVIA: "lv-LV";
|
|
156
|
+
readonly MAORI: "mi";
|
|
157
|
+
readonly MAORI_NEW_ZEALAND: "mi-NZ";
|
|
158
|
+
readonly FYRO_MACEDONIAN: "mk";
|
|
159
|
+
readonly FYRO_MACEDONIAN_MACEDONIA: "mk-MK";
|
|
160
|
+
readonly MONGOLIAN: "mn";
|
|
161
|
+
readonly MONGOLIAN_MONGOLIA: "mn-MN";
|
|
162
|
+
readonly MARATHI: "mr";
|
|
163
|
+
readonly MARATHI_INDIA: "mr-IN";
|
|
164
|
+
readonly MALAY: "ms";
|
|
165
|
+
readonly MALAY_BRUNEI_DARUSSALAM: "ms-BN";
|
|
166
|
+
readonly MALAY_MALAYSIA: "ms-MY";
|
|
167
|
+
readonly MALTESE: "mt";
|
|
168
|
+
readonly MALTESE_MALTA: "mt-MT";
|
|
169
|
+
readonly NORWEGIAN_BOKMAL: "nb";
|
|
170
|
+
readonly NORWEGIAN_BOKMAL_NORWAY: "nb-NO";
|
|
171
|
+
readonly DUTCH: "nl";
|
|
172
|
+
readonly DUTCH_BELGIUM: "nl-BE";
|
|
173
|
+
readonly DUTCH_NETHERLANDS: "nl-NL";
|
|
174
|
+
readonly NORWEGIAN_NYNORSK_NORWAY: "nn-NO";
|
|
175
|
+
readonly NORTHERN_SOTHO: "ns";
|
|
176
|
+
readonly NORTHERN_SOTHO_SOUTH_AFRICA: "ns-ZA";
|
|
177
|
+
readonly PUNJABI: "pa";
|
|
178
|
+
readonly PUNJABI_INDIA: "pa-IN";
|
|
179
|
+
readonly POLISH: "pl";
|
|
180
|
+
readonly POLISH_POLAND: "pl-PL";
|
|
181
|
+
readonly PASHTO: "ps";
|
|
182
|
+
readonly PASHTO_AFGHANISTAN: "ps-AR";
|
|
183
|
+
readonly PORTUGUESE: "pt";
|
|
184
|
+
readonly PORTUGUESE_BRAZIL: "pt-BR";
|
|
185
|
+
readonly PORTUGUESE_PORTUGAL: "pt-PT";
|
|
186
|
+
readonly QUECHUA: "qu";
|
|
187
|
+
readonly QUECHUA_BOLIVIA: "qu-BO";
|
|
188
|
+
readonly QUECHUA_ECUADOR: "qu-EC";
|
|
189
|
+
readonly QUECHUA_PERU: "qu-PE";
|
|
190
|
+
readonly ROMANIAN: "ro";
|
|
191
|
+
readonly ROMANIAN_ROMANIA: "ro-RO";
|
|
192
|
+
readonly RUSSIAN: "ru";
|
|
193
|
+
readonly RUSSIAN_RUSSIA: "ru-RU";
|
|
194
|
+
readonly SANSKRIT: "sa";
|
|
195
|
+
readonly SANSKRIT_INDIA: "sa-IN";
|
|
196
|
+
readonly SAMI_NORTHERN: "se";
|
|
197
|
+
readonly SAMI_NORTHERN_FINLAND: "se-FI";
|
|
198
|
+
readonly SAMI_NORTHERN_NORWAY: "se-NO";
|
|
199
|
+
readonly SAMI_NORTHERN_SWEDEN: "se-SE";
|
|
200
|
+
readonly SLOVAK: "sk";
|
|
201
|
+
readonly SLOVAK_SLOVAKIA: "sk-SK";
|
|
202
|
+
readonly SLOVENIAN: "sl";
|
|
203
|
+
readonly SLOVENIAN_SLOVENIA: "sl-SI";
|
|
204
|
+
readonly ALBANIAN: "sq";
|
|
205
|
+
readonly ALBANIAN_ALBANIA: "sq-AL";
|
|
206
|
+
readonly SERBIAN_LATIN: "sr";
|
|
207
|
+
readonly SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA: "sr-BA";
|
|
208
|
+
readonly SERBIAN_LATIN_SERBIA_AND_MONTENEGRO: "sr-SP";
|
|
209
|
+
readonly SWEDISH: "sv";
|
|
210
|
+
readonly SWEDISH_FINLAND: "sv-FI";
|
|
211
|
+
readonly SWEDISH_SWEDEN: "sv-SE";
|
|
212
|
+
readonly SWAHILI: "sw";
|
|
213
|
+
readonly SWAHILI_KENYA: "sw-KE";
|
|
214
|
+
readonly SYRIAC: "syr";
|
|
215
|
+
readonly SYRIAC_SYRIA: "syr-SY";
|
|
216
|
+
readonly TAMIL: "ta";
|
|
217
|
+
readonly TAMIL_INDIA: "ta-IN";
|
|
218
|
+
readonly TELUGU: "te";
|
|
219
|
+
readonly TELUGU_INDIA: "te-IN";
|
|
220
|
+
readonly THAI: "th";
|
|
221
|
+
readonly THAI_THAILAND: "th-TH";
|
|
222
|
+
readonly TAGALOG: "tl";
|
|
223
|
+
readonly TAGALOG_PHILIPPINES: "tl-PH";
|
|
224
|
+
readonly TSWANA: "tn";
|
|
225
|
+
readonly TSWANA_SOUTH_AFRICA: "tn-ZA";
|
|
226
|
+
readonly TURKISH: "tr";
|
|
227
|
+
readonly TURKISH_TURKEY: "tr-TR";
|
|
228
|
+
readonly TATAR: "tt";
|
|
229
|
+
readonly TATAR_RUSSIA: "tt-RU";
|
|
230
|
+
readonly TSOGA: "ts";
|
|
231
|
+
readonly UKRAINIAN: "uk";
|
|
232
|
+
readonly UKRAINIAN_UKRAINE: "uk-UA";
|
|
233
|
+
readonly URDU: "ur";
|
|
234
|
+
readonly URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN: "ur-PK";
|
|
235
|
+
readonly UZBEK_LATIN: "uz";
|
|
236
|
+
readonly UZBEK_LATIN_UZBEKISTAN: "uz-UZ";
|
|
237
|
+
readonly VIETNAMESE: "vi";
|
|
238
|
+
readonly VIETNAMESE_VIET_NAM: "vi-VN";
|
|
239
|
+
readonly XHOSA: "xh";
|
|
240
|
+
readonly XHOSA_SOUTH_AFRICA: "xh-ZA";
|
|
241
|
+
readonly CHINESE: "zh";
|
|
242
|
+
readonly CHINESE_SIMPLIFIED: "zh-Hans";
|
|
243
|
+
readonly CHINESE_SIMPLIFIED_CHINA: "zh-CN";
|
|
244
|
+
readonly CHINESE_HONG_KONG: "zh-HK";
|
|
245
|
+
readonly CHINESE_MACAU: "zh-MO";
|
|
246
|
+
readonly CHINESE_SINGAPORE: "zh-SG";
|
|
247
|
+
readonly CHINESE_TRADITIONAL: "zh-Hant";
|
|
248
|
+
readonly ZULU: "zu";
|
|
249
|
+
readonly ZULU_SOUTH_AFRICA: "zu-ZA";
|
|
250
|
+
readonly BENGALI: "bn";
|
|
251
|
+
readonly BENGALI_BANGLADESH: "bn-BD";
|
|
252
|
+
readonly BENGALI_INDIA: "bn-IN";
|
|
253
|
+
readonly BENGALI_MYANMAR: "bn-MM";
|
|
254
|
+
readonly BURMESE: "my";
|
|
255
|
+
readonly BURMESE_MYANMAR: "my-MM";
|
|
256
|
+
readonly KHMER: "km";
|
|
257
|
+
readonly KHMER_CAMBODIA: "km-KH";
|
|
258
|
+
readonly LAO: "lo";
|
|
259
|
+
readonly LAO_LAOS: "lo-LA";
|
|
260
|
+
readonly YORUBA: "yo";
|
|
261
|
+
readonly YORUBA_NIGERIA: "yo-NG";
|
|
262
|
+
readonly AMHARIC: "am";
|
|
263
|
+
readonly AMHARIC_ETHIOPIA: "am-ET";
|
|
264
|
+
readonly NEPALI: "ne";
|
|
265
|
+
readonly NEPALI_NEPAL: "ne-NP";
|
|
266
|
+
readonly SINHALA: "si";
|
|
267
|
+
readonly SINHALA_SRI_LANKA: "si-LK";
|
|
268
|
+
readonly SERBIAN_CYRILLIC: "sr-Cyrl";
|
|
269
|
+
readonly SERBIAN_CYRILLIC_SERBIA: "sr-RS";
|
|
270
|
+
readonly SERBIAN_CYRILLIC_BOSNIA_AND_HERZEGOVINA: "sr-BA";
|
|
271
|
+
readonly ENGLISH_INDIA: "en-IN";
|
|
272
|
+
readonly ENGLISH_SINGAPORE: "en-SG";
|
|
273
|
+
readonly ENGLISH_HONG_KONG: "en-HK";
|
|
274
|
+
readonly ENGLISH_NIGERIA: "en-NG";
|
|
275
|
+
readonly ENGLISH_PAKISTAN: "en-PK";
|
|
276
|
+
readonly ENGLISH_MALAYSIA: "en-MY";
|
|
277
|
+
readonly ENGLISH_BOTSWANA: "en-BW";
|
|
278
|
+
readonly ENGLISH_KENYA: "en-KE";
|
|
279
|
+
readonly ENGLISH_TANZANIA: "en-TZ";
|
|
280
|
+
readonly ENGLISH_GHANA: "en-GH";
|
|
281
|
+
readonly ENGLISH_UGANDA: "en-UG";
|
|
282
|
+
readonly SPANISH_CUBA: "es-CU";
|
|
283
|
+
readonly SPANISH_UNITED_STATES: "es-US";
|
|
284
|
+
readonly PORTUGUESE_GUINEA_BISSAU: "pt-GW";
|
|
285
|
+
readonly PORTUGUESE_MOZAMBIQUE: "pt-MZ";
|
|
286
|
+
readonly PORTUGUESE_SAO_TOME_AND_PRINCIPE: "pt-ST";
|
|
287
|
+
readonly PORTUGUESE_CAPE_VERDE: "pt-CV";
|
|
288
|
+
readonly PORTUGUESE_TIMOR_LESTE: "pt-TL";
|
|
289
|
+
readonly PORTUGUESE_MACAU: "pt-MO";
|
|
290
|
+
readonly CHINESE_TAIWAN: "zh-TW";
|
|
291
|
+
readonly ARABIC_MAURITANIA: "ar-MR";
|
|
292
|
+
readonly ARABIC_PALESTINE: "ar-PS";
|
|
293
|
+
readonly ARABIC_SUDAN: "ar-SD";
|
|
294
|
+
readonly ARABIC_DJIBOUTI: "ar-DJ";
|
|
295
|
+
readonly ARABIC_SOMALIA: "ar-SO";
|
|
296
|
+
readonly ARABIC_CHAD: "ar-TD";
|
|
297
|
+
readonly ARABIC_COMOROS: "ar-KM";
|
|
298
|
+
};
|
|
14
299
|
/**
|
|
15
300
|
* @deprecated Use `import { configuration } from 'intlayer'` instead.
|
|
16
301
|
*/
|
|
17
|
-
declare const getConfiguration: () =>
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
getEnumeration
|
|
24
|
-
/**
|
|
25
|
-
* @deprecated Use `getTranslation` instead.
|
|
26
|
-
*/
|
|
27
|
-
getTranslation as getTranslationContent, insert, Intl, localeFlatMap, localeList, localeMap, localeRecord, md, nest, number, percentage, relativeTime, t, units, type ContentNode, type LanguageContent, } from '@intlayer/core';
|
|
28
|
-
export { file } from '@intlayer/core/file';
|
|
302
|
+
declare const getConfiguration: () => _intlayer_types0.IntlayerConfig;
|
|
303
|
+
interface __DictionaryRegistry {}
|
|
304
|
+
interface __DeclaredLocalesRegistry {}
|
|
305
|
+
interface __RequiredLocalesRegistry {}
|
|
306
|
+
interface __StrictModeRegistry {}
|
|
307
|
+
//#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, getDictionary, getEnumeration, getEnumerationContent, getHTMLTextDir, getIntlayer, getLocaleFromPath, getLocaleLang, getLocaleName, getLocalizedUrl, getMarkdownMetadata, getMultilingualUrls, getNesting, getPathWithoutLocale, getTranslation, getTranslationContent, insert, localeFlatMap, type localeList, localeMap, localeRecord, md, nest, number, percentage, relativeTime, t, units };
|
|
29
309
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;KAOK,4BAA4B,aAAe;;;;KAI3C,oCAAoC,WAAW;AAN3B;AAEsB;AAII;AAqBA;AAwDnD;AACA,cAvEM,UAuEW,EAAA;EACA,SAAA,SAAA,EAAA,IAAA;EACA,SAAA,sBAAoB,EAAA,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAtD/B,wBAAsC,gBAAA,CAAtB;UAmDL,oBAAA;UACA,yBAAA;UACA,yBAAA;UACA,oBAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "intlayer",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0-canary.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": [
|
|
@@ -72,54 +72,46 @@
|
|
|
72
72
|
"./dist",
|
|
73
73
|
"./package.json"
|
|
74
74
|
],
|
|
75
|
+
"scripts": {
|
|
76
|
+
"build": "tsdown --config tsdown.config.ts",
|
|
77
|
+
"build:ci": "tsdown --config tsdown.config.ts",
|
|
78
|
+
"clean": "rimraf ./dist .turbo",
|
|
79
|
+
"dev": "tsdown --config tsdown.config.ts --watch",
|
|
80
|
+
"format": "biome format . --check",
|
|
81
|
+
"format:fix": "biome format --write .",
|
|
82
|
+
"lint": "biome lint .",
|
|
83
|
+
"lint:fix": "biome lint --write .",
|
|
84
|
+
"prepublish": "cp -f ../../README.md ./README.md",
|
|
85
|
+
"test": "vitest run",
|
|
86
|
+
"test:watch": "vitest",
|
|
87
|
+
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
88
|
+
},
|
|
75
89
|
"dependencies": {
|
|
76
|
-
"@intlayer/
|
|
77
|
-
"@intlayer/
|
|
78
|
-
"@intlayer/
|
|
90
|
+
"@intlayer/cli": "workspace:*",
|
|
91
|
+
"@intlayer/config": "workspace:*",
|
|
92
|
+
"@intlayer/core": "workspace:*",
|
|
93
|
+
"@intlayer/types": "workspace:*"
|
|
79
94
|
},
|
|
80
95
|
"devDependencies": {
|
|
81
|
-
"@
|
|
82
|
-
"@
|
|
83
|
-
"@types
|
|
84
|
-
"@
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"tsc-alias": "^1.8.16",
|
|
90
|
-
"tsup": "^8.5.0",
|
|
91
|
-
"typescript": "^5.9.2",
|
|
92
|
-
"vitest": "^3.2.4",
|
|
93
|
-
"@utils/eslint-config": "1.0.4",
|
|
94
|
-
"@utils/ts-config-types": "1.0.4",
|
|
95
|
-
"@utils/ts-config": "1.0.4",
|
|
96
|
-
"@utils/tsup-config": "1.0.4"
|
|
96
|
+
"@types/node": "24.9.1",
|
|
97
|
+
"@utils/ts-config": "workspace:*",
|
|
98
|
+
"@utils/ts-config-types": "workspace:*",
|
|
99
|
+
"@utils/tsdown-config": "workspace:*",
|
|
100
|
+
"rimraf": "6.0.1",
|
|
101
|
+
"tsdown": "0.15.9",
|
|
102
|
+
"typescript": "5.9.3",
|
|
103
|
+
"vitest": "4.0.3"
|
|
97
104
|
},
|
|
98
105
|
"peerDependencies": {
|
|
99
|
-
"@intlayer/cli": "
|
|
100
|
-
"@intlayer/config": "
|
|
101
|
-
"@intlayer/core": "
|
|
106
|
+
"@intlayer/cli": "workspace:*",
|
|
107
|
+
"@intlayer/config": "workspace:*",
|
|
108
|
+
"@intlayer/core": "workspace:*",
|
|
109
|
+
"@intlayer/types": "workspace:*"
|
|
102
110
|
},
|
|
103
111
|
"engines": {
|
|
104
112
|
"node": ">=14.18"
|
|
105
113
|
},
|
|
106
114
|
"bug": {
|
|
107
115
|
"url": "https://github.com/aymericzip/intlayer/issues"
|
|
108
|
-
},
|
|
109
|
-
"scripts": {
|
|
110
|
-
"build": "pnpm clean & pnpm build:ci",
|
|
111
|
-
"build:ci": "pnpm build:package & pnpm build:types",
|
|
112
|
-
"build:package": "tsup",
|
|
113
|
-
"build:types": "tsc --project ./tsconfig.types.json && tsc-alias --project ./tsconfig.types.json",
|
|
114
|
-
"clean": "rimraf ./dist",
|
|
115
|
-
"dev": "concurrently --prefix none \"tsup --watch\" \"tsc --project ./tsconfig.types.json --watch\" \"tsc-alias --project ./tsconfig.types.json --watch\"",
|
|
116
|
-
"lint": "eslint . --cache",
|
|
117
|
-
"lint:fix": "eslint . --cache --fix",
|
|
118
|
-
"prettier": "prettier . --check",
|
|
119
|
-
"prettier:fix": "prettier . --write",
|
|
120
|
-
"prepublish": "cp -f ../../README.md ./README.md",
|
|
121
|
-
"test": "vitest run",
|
|
122
|
-
"test:watch": "vitest",
|
|
123
|
-
"typecheck": "tsup --project ./tsconfig.json --noEmit"
|
|
124
116
|
}
|
|
125
|
-
}
|
|
117
|
+
}
|
package/LICENSE
DELETED
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
Apache License
|
|
2
|
-
Version 2.0, January 2004
|
|
3
|
-
http://www.apache.org/licenses/
|
|
4
|
-
|
|
5
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
-
|
|
7
|
-
1. Definitions.
|
|
8
|
-
|
|
9
|
-
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
-
|
|
12
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
-
the copyright owner that is granting the License.
|
|
14
|
-
|
|
15
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
-
other entities that control, are controlled by, or are under common
|
|
17
|
-
control with that entity. For the purposes of this definition,
|
|
18
|
-
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
-
direction or management of such entity, whether by contract or
|
|
20
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
-
|
|
23
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
-
exercising permissions granted by this License.
|
|
25
|
-
|
|
26
|
-
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
-
including but not limited to software source code, documentation
|
|
28
|
-
source, and configuration files.
|
|
29
|
-
|
|
30
|
-
"Object" form shall mean any form resulting from mechanical
|
|
31
|
-
transformation or translation of a Source form, including but
|
|
32
|
-
not limited to compiled object code, generated documentation,
|
|
33
|
-
and conversions to other media types.
|
|
34
|
-
|
|
35
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
-
Object form, made available under the License, as indicated by a
|
|
37
|
-
copyright notice that is included in or attached to the work
|
|
38
|
-
(an example is provided in the Appendix below).
|
|
39
|
-
|
|
40
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
-
form, that is based on (or derived from) the Work and for which the
|
|
42
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
-
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
-
of this License, Derivative Works shall not include works that remain
|
|
45
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
-
the Work and Derivative Works thereof.
|
|
47
|
-
|
|
48
|
-
"Contribution" shall mean any work of authorship, including
|
|
49
|
-
the original version of the Work and any modifications or additions
|
|
50
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
-
submitted to Licensor for inclusion in the Work by the copyright
|
|
52
|
-
owner or by an individual or Legal Entity authorized to submit on
|
|
53
|
-
behalf of the copyright owner. For the purposes of this definition,
|
|
54
|
-
"submitted" means any form of electronic, verbal, or written
|
|
55
|
-
communication sent to the Licensor or its representatives, including
|
|
56
|
-
but not limited to communication on electronic mailing lists, source
|
|
57
|
-
code control systems, and issue tracking systems that are managed by,
|
|
58
|
-
or on behalf of, the Licensor for the purpose of discussing and improving
|
|
59
|
-
the Work, but excluding communication that is conspicuously marked or
|
|
60
|
-
otherwise designated in writing by the copyright owner as "Not a
|
|
61
|
-
Contribution."
|
|
62
|
-
|
|
63
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
-
subsequently incorporated within the Work.
|
|
66
|
-
|
|
67
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
-
Work and such Derivative Works in Source or Object form.
|
|
73
|
-
|
|
74
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
-
(except as stated in this section) patent license to make, have made,
|
|
78
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
-
where such license applies only to those patent claims licensable
|
|
80
|
-
by such Contributor that are necessarily infringed by their
|
|
81
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
-
institute patent litigation against any entity (including a
|
|
84
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
-
or contributory patent infringement, then any patent licenses
|
|
87
|
-
granted to You under this License for that Work shall terminate
|
|
88
|
-
as of the date such litigation is filed.
|
|
89
|
-
|
|
90
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
-
modifications, and in Source or Object form, provided that You
|
|
93
|
-
meet the following conditions:
|
|
94
|
-
|
|
95
|
-
(a) You must give any other recipients of the Work or
|
|
96
|
-
Derivative Works a copy of this License; and
|
|
97
|
-
|
|
98
|
-
(b) You must cause any modified files to carry prominent notices
|
|
99
|
-
stating that You changed the files; and
|
|
100
|
-
|
|
101
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
-
that You distribute, all copyright, patent, trademark, and
|
|
103
|
-
attribution notices from the Source form of the Work,
|
|
104
|
-
excluding those notices that do not pertain to any part of
|
|
105
|
-
the Derivative Works; and
|
|
106
|
-
|
|
107
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
-
distribution, then any Derivative Works that You distribute must
|
|
109
|
-
include a readable copy of the attribution notices contained
|
|
110
|
-
within such NOTICE file, excluding those notices that do not
|
|
111
|
-
pertain to any part of the Derivative Works, in at least one
|
|
112
|
-
of the following places: within a NOTICE text file distributed
|
|
113
|
-
as part of the Derivative Works; within the Source form or
|
|
114
|
-
documentation, if provided along with the Derivative Works; or,
|
|
115
|
-
within a display generated by the Derivative Works, if and
|
|
116
|
-
wherever such third-party notices normally appear. The contents
|
|
117
|
-
of the NOTICE file are for informational purposes only and
|
|
118
|
-
do not modify the License. You may add Your own attribution
|
|
119
|
-
notices within Derivative Works that You distribute, alongside
|
|
120
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
-
that such additional attribution notices cannot be construed
|
|
122
|
-
as modifying the License.
|
|
123
|
-
|
|
124
|
-
You may add Your own copyright statement to Your modifications and
|
|
125
|
-
may provide additional or different license terms and conditions
|
|
126
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
-
the conditions stated in this License.
|
|
130
|
-
|
|
131
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
-
this License, without any additional terms or conditions.
|
|
135
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
-
the terms of any separate license agreement you may have executed
|
|
137
|
-
with Licensor regarding such Contributions.
|
|
138
|
-
|
|
139
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
-
except as required for reasonable and customary use in describing the
|
|
142
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
-
|
|
144
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
-
implied, including, without limitation, any warranties or conditions
|
|
149
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
-
appropriateness of using or redistributing the Work and assume any
|
|
152
|
-
risks associated with Your exercise of permissions under this License.
|
|
153
|
-
|
|
154
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
-
unless required by applicable law (such as deliberate and grossly
|
|
157
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
-
liable to You for damages, including any direct, indirect, special,
|
|
159
|
-
incidental, or consequential damages of any character arising as a
|
|
160
|
-
result of this License or out of the use or inability to use the
|
|
161
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
-
other commercial damages or losses), even if such Contributor
|
|
164
|
-
has been advised of the possibility of such damages.
|
|
165
|
-
|
|
166
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
-
or other liability obligations and/or rights consistent with this
|
|
170
|
-
License. However, in accepting such obligations, You may act only
|
|
171
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
-
defend, and hold each Contributor harmless for any liability
|
|
174
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
-
of your accepting any such warranty or additional liability.
|
|
176
|
-
|
|
177
|
-
END OF TERMS AND CONDITIONS
|
|
178
|
-
|
|
179
|
-
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
-
|
|
181
|
-
To apply the Apache License to your work, attach the following
|
|
182
|
-
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
-
replaced with your own identifying information. (Don't include
|
|
184
|
-
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
-
comment syntax for the file format. We also recommend that a
|
|
186
|
-
file or class name and description of purpose be included on the
|
|
187
|
-
same "printed page" as the copyright notice for easier
|
|
188
|
-
identification within third-party archives.
|
|
189
|
-
|
|
190
|
-
Copyright 2024 Aymeric PINEAU
|
|
191
|
-
|
|
192
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
-
you may not use this file except in compliance with the License.
|
|
194
|
-
You may obtain a copy of the License at
|
|
195
|
-
|
|
196
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
-
|
|
198
|
-
Unless required by applicable law or agreed to in writing, software
|
|
199
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
-
See the License for the specific language governing permissions and
|
|
202
|
-
limitations under the License.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/cli/index.ts"],"sourcesContent":["export * from '@intlayer/cli';\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,0BAAd;","names":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/cli/index.ts"],"sourcesContent":["export * from '@intlayer/cli';\n"],"mappings":"AAAA,cAAc;","names":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cli/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"script.d.ts","sourceRoot":"","sources":["../../../src/cli/script.ts"],"names":[],"mappings":""}
|