@leyyo/localization 1.1.1 → 1.1.3
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/README.md +3 -3
- package/dist/base/base-localization.handler.d.ts +1 -1
- package/dist/base/base-localization.handler.js +18 -12
- package/dist/base/index.d.ts +2 -2
- package/dist/base/index.js +2 -19
- package/dist/base/index.types.js +1 -3
- package/dist/config/index.d.ts +2 -2
- package/dist/config/index.js +2 -19
- package/dist/config/index.types.d.ts +3 -5
- package/dist/config/index.types.js +1 -3
- package/dist/config/localization.config.d.ts +1 -1
- package/dist/config/localization.config.js +33 -21
- package/dist/country/country.handler.d.ts +1 -1
- package/dist/country/country.handler.js +13 -23
- package/dist/country/country.map.d.ts +2 -2
- package/dist/country/country.map.js +252 -256
- package/dist/country/index.d.ts +2 -3
- package/dist/country/index.js +2 -20
- package/dist/country/index.types.d.ts +2 -3
- package/dist/country/index.types.js +1 -3
- package/dist/exchange/exchange.handler.d.ts +1 -1
- package/dist/exchange/exchange.handler.js +14 -25
- package/dist/exchange/exchange.map.d.ts +2 -2
- package/dist/exchange/exchange.map.js +36 -9
- package/dist/exchange/index.d.ts +2 -3
- package/dist/exchange/index.js +2 -20
- package/dist/exchange/index.types.d.ts +2 -3
- package/dist/exchange/index.types.js +1 -3
- package/dist/index.d.ts +11 -7
- package/dist/index.foretell.d.ts +1 -0
- package/dist/index.foretell.js +19 -0
- package/dist/index.js +11 -24
- package/dist/index.loader.d.ts +1 -0
- package/dist/index.loader.js +13 -0
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +2 -5
- package/dist/language/index.d.ts +2 -3
- package/dist/language/index.js +2 -20
- package/dist/language/index.types.d.ts +2 -2
- package/dist/language/index.types.js +1 -3
- package/dist/language/language.handler.d.ts +1 -11
- package/dist/language/language.handler.js +13 -21
- package/dist/language/language.map.d.ts +2 -2
- package/dist/language/language.map.js +185 -189
- package/dist/literal/browser-type.d.ts +7 -0
- package/dist/literal/browser-type.js +2 -0
- package/dist/{country → literal}/country-code.d.ts +1 -1
- package/dist/literal/country-code.js +257 -0
- package/dist/literal/cpu-architecture.d.ts +7 -0
- package/dist/literal/cpu-architecture.js +20 -0
- package/dist/literal/device-type.d.ts +7 -0
- package/dist/literal/device-type.js +11 -0
- package/dist/literal/engine-type.d.ts +7 -0
- package/dist/literal/engine-type.js +23 -0
- package/dist/{exchange → literal}/exchange-code.d.ts +1 -1
- package/dist/literal/exchange-code.js +157 -0
- package/dist/literal/index.d.ts +9 -0
- package/dist/literal/index.js +9 -0
- package/dist/{language → literal}/language-code.d.ts +1 -1
- package/dist/literal/language-code.js +187 -0
- package/dist/{locale → literal}/locale-code.d.ts +1 -1
- package/dist/literal/locale-code.js +199 -0
- package/dist/{timezone → literal}/timezone-code.d.ts +1 -1
- package/dist/literal/timezone-code.js +605 -0
- package/dist/locale/index.d.ts +2 -3
- package/dist/locale/index.js +2 -20
- package/dist/locale/index.types.d.ts +2 -4
- package/dist/locale/index.types.js +1 -3
- package/dist/locale/locale.handler.d.ts +1 -17
- package/dist/locale/locale.handler.js +17 -28
- package/dist/locale/locale.map.d.ts +2 -2
- package/dist/locale/locale.map.js +84 -88
- package/dist/parser/index.d.ts +2 -2
- package/dist/parser/index.js +2 -19
- package/dist/parser/index.types.d.ts +4 -24
- package/dist/parser/index.types.js +1 -3
- package/dist/parser/localization.parser.d.ts +1 -1
- package/dist/parser/localization.parser.js +112 -111
- package/dist/timezone/index.d.ts +2 -3
- package/dist/timezone/index.js +2 -20
- package/dist/timezone/index.types.d.ts +2 -3
- package/dist/timezone/index.types.js +1 -3
- package/dist/timezone/timezone.handler.d.ts +1 -1
- package/dist/timezone/timezone.handler.js +21 -24
- package/dist/timezone/timezone.map.d.ts +2 -2
- package/dist/timezone/timezone.map.js +603 -607
- package/package.json +23 -23
- package/dist/base/base-localization.handler.js.map +0 -1
- package/dist/base/index.js.map +0 -1
- package/dist/base/index.types.js.map +0 -1
- package/dist/config/index.js.map +0 -1
- package/dist/config/index.types.js.map +0 -1
- package/dist/config/localization.config.js.map +0 -1
- package/dist/country/country-code.js +0 -19
- package/dist/country/country-code.js.map +0 -1
- package/dist/country/country.handler.js.map +0 -1
- package/dist/country/country.map.js.map +0 -1
- package/dist/country/index.js.map +0 -1
- package/dist/country/index.types.js.map +0 -1
- package/dist/exchange/exchange-code.js +0 -23
- package/dist/exchange/exchange-code.js.map +0 -1
- package/dist/exchange/exchange.handler.js.map +0 -1
- package/dist/exchange/exchange.map.js.map +0 -1
- package/dist/exchange/index.js.map +0 -1
- package/dist/exchange/index.types.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/internal.js.map +0 -1
- package/dist/language/index.js.map +0 -1
- package/dist/language/index.types.js.map +0 -1
- package/dist/language/language-code.js +0 -33
- package/dist/language/language-code.js.map +0 -1
- package/dist/language/language.handler.js.map +0 -1
- package/dist/language/language.map.js.map +0 -1
- package/dist/locale/index.js.map +0 -1
- package/dist/locale/index.types.js.map +0 -1
- package/dist/locale/locale-code.js +0 -25
- package/dist/locale/locale-code.js.map +0 -1
- package/dist/locale/locale.handler.js.map +0 -1
- package/dist/locale/locale.map.js.map +0 -1
- package/dist/parser/index.js.map +0 -1
- package/dist/parser/index.types.js.map +0 -1
- package/dist/parser/localization.parser.js.map +0 -1
- package/dist/timezone/index.js.map +0 -1
- package/dist/timezone/index.types.js.map +0 -1
- package/dist/timezone/timezone-code.js +0 -109
- package/dist/timezone/timezone-code.js.map +0 -1
- package/dist/timezone/timezone.handler.js.map +0 -1
- package/dist/timezone/timezone.map.js.map +0 -1
|
@@ -1,44 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const locale_code_1 = require("./locale-code");
|
|
5
|
-
const locale_map_1 = require("./locale.map");
|
|
6
|
-
const base_1 = require("../base");
|
|
1
|
+
import { LocaleCodeItems } from "../literal/index.js";
|
|
2
|
+
import { localeMap } from "./locale.map.js";
|
|
3
|
+
import { BaseLocalizationHandler } from "../base/index.js";
|
|
7
4
|
/** @inheritDoc */
|
|
8
|
-
class LocaleHandler extends
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
/** @inheritDoc */
|
|
14
|
-
this.codes = locale_code_1.LocaleCodeItems;
|
|
15
|
-
}
|
|
5
|
+
class LocaleHandler extends BaseLocalizationHandler {
|
|
6
|
+
/** @inheritDoc */
|
|
7
|
+
_raw = localeMap;
|
|
8
|
+
/** @inheritDoc */
|
|
9
|
+
codes = LocaleCodeItems;
|
|
16
10
|
/** @inheritDoc */
|
|
17
11
|
getLanguage(code) {
|
|
18
|
-
|
|
19
|
-
return (_a = this.getRaw(code)) === null || _a === void 0 ? void 0 : _a.l;
|
|
12
|
+
return this.getRaw(code)?.l;
|
|
20
13
|
}
|
|
21
14
|
/** @inheritDoc */
|
|
22
15
|
getCountries(code) {
|
|
23
|
-
|
|
24
|
-
return (_b = (_a = this.getRaw(code)) === null || _a === void 0 ? void 0 : _a.c) !== null && _b !== void 0 ? _b : [];
|
|
16
|
+
return this.getRaw(code)?.c ?? [];
|
|
25
17
|
}
|
|
26
18
|
get(code) {
|
|
27
|
-
var _a;
|
|
28
19
|
const item = this.getRaw(code);
|
|
29
20
|
if (!item) {
|
|
30
21
|
return { code, name: code, language: undefined, countries: [] };
|
|
31
22
|
}
|
|
32
|
-
return { code, name: item.n, language: item.l, countries:
|
|
23
|
+
return { code, name: item.n, language: item.l, countries: item.c ?? [] };
|
|
33
24
|
}
|
|
34
25
|
}
|
|
35
|
-
exports.LocaleHandler = LocaleHandler;
|
|
36
26
|
// noinspection JSUnusedGlobalSymbols
|
|
37
|
-
|
|
27
|
+
export const localeHandler = new LocaleHandler();
|
|
38
28
|
/*
|
|
39
|
-
* @todo
|
|
40
|
-
* - https://learn.microsoft.com/en-us/graph/search-concept-acceptlanguage-header
|
|
41
|
-
* - https://www.w3schools.com/tags/ref_language_codes.asp
|
|
42
|
-
* - https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
|
|
43
|
-
* */
|
|
44
|
-
//# sourceMappingURL=locale.handler.js.map
|
|
29
|
+
* @todo
|
|
30
|
+
* - https://learn.microsoft.com/en-us/graph/search-concept-acceptlanguage-header
|
|
31
|
+
* - https://www.w3schools.com/tags/ref_language_codes.asp
|
|
32
|
+
* - https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
|
|
33
|
+
* */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { LocaleCode } from "../literal/index.js";
|
|
2
|
+
import { LocaleRaw } from "./index.types.js";
|
|
3
3
|
export declare const localeMap: Record<LocaleCode, LocaleRaw>;
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
as: { n: "Assamese", l: 'as' },
|
|
11
|
-
az: { n: "Azerbaijani", l: 'az' },
|
|
12
|
-
eu: { n: "Basque", l: 'eu' },
|
|
1
|
+
export const localeMap = {
|
|
2
|
+
af: { n: "Afrikaans", l: "af" },
|
|
3
|
+
sq: { n: "Albanian", l: "sq" },
|
|
4
|
+
an: { n: "Aragonese", l: "an" },
|
|
5
|
+
ar: { n: "Arabic (Standard)", l: "ar" },
|
|
6
|
+
hy: { n: "Armenian", l: "hy" },
|
|
7
|
+
as: { n: "Assamese", l: "as" },
|
|
8
|
+
az: { n: "Azerbaijani", l: "az" },
|
|
9
|
+
eu: { n: "Basque", l: "eu" },
|
|
13
10
|
be: { n: "Belarusian" },
|
|
14
11
|
bn: { n: "Bengali" },
|
|
15
12
|
bs: { n: "Bosnian" },
|
|
@@ -118,85 +115,84 @@ exports.localeMap = {
|
|
|
118
115
|
xh: { n: "Xhosa" },
|
|
119
116
|
ji: { n: "Yiddish" },
|
|
120
117
|
zu: { n: "Zulu" },
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
118
|
+
"ar-dz": { n: "Arabic (Algeria)", l: "ar" },
|
|
119
|
+
"ar-bh": { n: "Arabic (Bahrain)", l: "ar" },
|
|
120
|
+
"ar-eg": { n: "Arabic (Egypt)", l: "ar" },
|
|
121
|
+
"ar-iq": { n: "Arabic (Iraq)", l: "ar" },
|
|
122
|
+
"ar-jo": { n: "Arabic (Jordan)", l: "ar" },
|
|
123
|
+
"ar-kw": { n: "Arabic (Kuwait)", l: "ar" },
|
|
124
|
+
"ar-lb": { n: "Arabic (Lebanon)", l: "ar" },
|
|
125
|
+
"ar-ly": { n: "Arabic (Libya)", l: "ar" },
|
|
126
|
+
"ar-ma": { n: "Arabic (Morocco)", l: "ar" },
|
|
127
|
+
"ar-om": { n: "Arabic (Oman)", l: "ar" },
|
|
128
|
+
"ar-qa": { n: "Arabic (Qatar)", l: "ar" },
|
|
129
|
+
"ar-sa": { n: "Arabic (Saudi Arabia)", l: "ar" },
|
|
130
|
+
"ar-sy": { n: "Arabic (Syria)", l: "ar" },
|
|
131
|
+
"ar-tn": { n: "Arabic (Tunisia)", l: "ar" },
|
|
132
|
+
"ar-ae": { n: "Arabic (U.A.E.)", l: "ar" },
|
|
133
|
+
"ar-ye": { n: "Arabic (Yemen)", l: "ar" },
|
|
134
|
+
"zh-hk": { n: "Chinese (Hong Kong)", l: "zh" },
|
|
135
|
+
"zh-cn": { n: "Chinese (PRC)", l: "zh" },
|
|
136
|
+
"zh-sg": { n: "Chinese (Singapore)", l: "zh" },
|
|
137
|
+
"zh-tw": { n: "Chinese (Taiwan)", l: "zh" },
|
|
138
|
+
"nl-be": { n: "Dutch (Belgian)", l: "nl" },
|
|
139
|
+
"en-au": { n: "English (Australia)", l: "en" },
|
|
140
|
+
"en-bz": { n: "English (Belize)", l: "en" },
|
|
141
|
+
"en-ca": { n: "English (Canada)", l: "en" },
|
|
142
|
+
"en-ie": { n: "English (Ireland)", l: "en" },
|
|
143
|
+
"en-jm": { n: "English (Jamaica)", l: "en" },
|
|
144
|
+
"en-nz": { n: "English (New Zealand)", l: "en" },
|
|
145
|
+
"en-ph": { n: "English (Philippines)", l: "en" },
|
|
146
|
+
"en-za": { n: "English (South Africa)", l: "en" },
|
|
147
|
+
"en-tt": { n: "English (Trinidad & Tobago)", l: "en" },
|
|
148
|
+
"en-gb": { n: "English (United Kingdom)", l: "en" },
|
|
149
|
+
"en-us": { n: "English (United States)", l: "en" },
|
|
150
|
+
"en-zw": { n: "English (Zimbabwe)", l: "en" },
|
|
151
|
+
"fr-be": { n: "French (Belgium)", l: "fr" },
|
|
152
|
+
"fr-ca": { n: "French (Canada)", l: "fr" },
|
|
153
|
+
"fr-fr": { n: "French (France)", l: "fr" },
|
|
154
|
+
"fr-lu": { n: "French (Luxembourg)", l: "fr" },
|
|
155
|
+
"fr-mc": { n: "French (Monaco)", l: "fr" },
|
|
156
|
+
"fr-ch": { n: "French (Switzerland)", l: "fr" },
|
|
157
|
+
"gd-ie": { n: "Gaelic (Irish)", l: "gd" },
|
|
158
|
+
"de-at": { n: "German (Austria)", l: "de" },
|
|
159
|
+
"de-de": { n: "German (Germany)", l: "de" },
|
|
160
|
+
"de-li": { n: "German (Liechtenstein)", l: "de" },
|
|
161
|
+
"de-lu": { n: "German (Luxembourg)", l: "de" },
|
|
162
|
+
"de-ch": { n: "German (Switzerland)", l: "de" },
|
|
163
|
+
"it-ch": { n: "Italian (Switzerland)", l: "it" },
|
|
164
|
+
"ko-kp": { n: "Korean (North Korea)", l: "ko" },
|
|
165
|
+
"ko-kr": { n: "Korean (South Korea)", l: "ko" },
|
|
166
|
+
"fa-ir": { n: "Persian/Iran", l: "fa" },
|
|
167
|
+
"pt-br": { n: "Portuguese (Brazil)", l: "pt" },
|
|
168
|
+
"pa-in": { n: "Punjabi (India)", l: "pa" },
|
|
169
|
+
"pa-pk": { n: "Punjabi (Pakistan)", l: "pa" },
|
|
170
|
+
"ro-mo": { n: "Romanian (Moldavia)", l: "ro" },
|
|
171
|
+
"ru-mo": { n: "Russian (Moldavia)", l: "ru" },
|
|
172
|
+
"es-ar": { n: "Spanish (Argentina)", l: "es" },
|
|
173
|
+
"es-bo": { n: "Spanish (Bolivia)", l: "es" },
|
|
174
|
+
"es-cl": { n: "Spanish (Chile)", l: "es" },
|
|
175
|
+
"es-co": { n: "Spanish (Colombia)", l: "es" },
|
|
176
|
+
"es-cr": { n: "Spanish (Costa Rica)", l: "es" },
|
|
177
|
+
"es-do": { n: "Spanish (Dominican Republic)", l: "es" },
|
|
178
|
+
"es-ec": { n: "Spanish (Ecuador)", l: "es" },
|
|
179
|
+
"es-sv": { n: "Spanish (El Salvador)", l: "es" },
|
|
180
|
+
"es-gt": { n: "Spanish (Guatemala)", l: "es" },
|
|
181
|
+
"es-hn": { n: "Spanish (Honduras)", l: "es" },
|
|
182
|
+
"es-mx": { n: "Spanish (Mexico)", l: "es" },
|
|
183
|
+
"es-ni": { n: "Spanish (Nicaragua)", l: "es" },
|
|
184
|
+
"es-pa": { n: "Spanish (Panama)", l: "es" },
|
|
185
|
+
"es-py": { n: "Spanish (Paraguay)", l: "es" },
|
|
186
|
+
"es-pe": { n: "Spanish (Peru)", l: "es" },
|
|
187
|
+
"es-pr": { n: "Spanish (Puerto Rico)", l: "es" },
|
|
188
|
+
"es-es": { n: "Spanish (Spain)", l: "es" },
|
|
189
|
+
"es-uy": { n: "Spanish (Uruguay)", l: "es" },
|
|
190
|
+
"es-ve": { n: "Spanish (Venezuela)", l: "es" },
|
|
191
|
+
"sv-fi": { n: "Swedish (Finland)", l: "sv" },
|
|
192
|
+
"sv-sv": { n: "Swedish (Sweden)", l: "sv" },
|
|
196
193
|
fur: { n: "Friulian" },
|
|
197
194
|
ast: { n: "Asturian" },
|
|
198
195
|
tlh: { n: "Klingon" },
|
|
199
196
|
tig: { n: "Tigre" },
|
|
200
197
|
hsb: { n: "Upper Sorbian" },
|
|
201
198
|
};
|
|
202
|
-
//# sourceMappingURL=locale.map.js.map
|
package/dist/parser/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from "./index.types.js";
|
|
2
|
+
export * from "./localization.parser.js";
|
package/dist/parser/index.js
CHANGED
|
@@ -1,19 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./index.types"), exports);
|
|
18
|
-
__exportStar(require("./localization.parser"), exports);
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export * from "./index.types.js";
|
|
2
|
+
export * from "./localization.parser.js";
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import type { TimezoneCode } from "../timezone";
|
|
4
|
-
import type { CountryCode } from "../country";
|
|
5
|
-
import type { Request } from "express";
|
|
6
|
-
import type { ExchangeCode } from "../exchange";
|
|
1
|
+
import { BrowserType, CountryCode, CpuArchitecture, DeviceType, EngineType, ExchangeCode, LanguageCode, LocaleCode, TimezoneCode } from "../literal/index.js";
|
|
2
|
+
import { Request } from "express";
|
|
7
3
|
export interface LocalizationContext {
|
|
8
4
|
error?: Error;
|
|
9
|
-
token?:
|
|
5
|
+
token?: LocalizationContextMap;
|
|
10
6
|
correlation?: LocalizationContextKey;
|
|
11
7
|
language?: LocalizationContextLanguage;
|
|
12
8
|
application?: LocalizationContextApp;
|
|
@@ -24,6 +20,7 @@ export interface LocalizationContextKey {
|
|
|
24
20
|
key?: string;
|
|
25
21
|
header?: string;
|
|
26
22
|
}
|
|
23
|
+
export type LocalizationContextMap = Record<string, string>;
|
|
27
24
|
export interface LocalizationContextApp extends LocalizationContextKey {
|
|
28
25
|
name?: string;
|
|
29
26
|
version?: string;
|
|
@@ -157,23 +154,6 @@ export interface LocalizationContextOs {
|
|
|
157
154
|
* */
|
|
158
155
|
version?: string;
|
|
159
156
|
}
|
|
160
|
-
/**
|
|
161
|
-
* Browser Engine Types
|
|
162
|
-
* */
|
|
163
|
-
export type EngineType = 'Amaya' | 'ArkWeb' | 'Blink' | 'EdgeHTML' | 'Flow' | 'Gecko' | 'Goanna' | 'iCab' | 'KHTML' | 'LibWeb' | 'Links' | 'Lynx' | 'NetFront' | 'NetSurf' | 'Presto' | 'Servo' | 'Tasman' | 'Trident' | 'w3m' | 'WebKit';
|
|
164
|
-
/**
|
|
165
|
-
* Device Types
|
|
166
|
-
* */
|
|
167
|
-
export type DeviceType = 'mobile' | 'tablet' | 'console' | 'smarttv' | 'wearable' | 'xr' | 'embedded' | 'testing';
|
|
168
|
-
/**
|
|
169
|
-
* CPU Architectures
|
|
170
|
-
* */
|
|
171
|
-
export type CpuArchitecture = 'ia32' | 'ia64' | 'amd64' | 'arm' | 'arm64' | 'armhf' | 'avr' | 'avr32' | 'irix' | 'irix64' | 'mips' | 'mips64' | '68k' | 'pa-risc' | 'ppc' | 'sparc' | 'sparc64';
|
|
172
|
-
/**
|
|
173
|
-
* Browser types
|
|
174
|
-
* */
|
|
175
|
-
type BrowserType = 'crawler' | 'cli' | 'email' | 'fetcher' | 'inapp' | 'mediaplayer' | 'library';
|
|
176
157
|
export interface LocalizationParserLike {
|
|
177
158
|
parse(req: Request): LocalizationContext;
|
|
178
159
|
}
|
|
179
|
-
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { LocalizationParserLike } from "./index.types.js";
|
|
2
2
|
export declare const localizationParser: LocalizationParserLike;
|