@lokalise/polyglot-sdk 24.4.0 → 24.5.1
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/sdk/helpers/removeUnicodeNullCharacters.d.ts +9 -0
- package/dist/sdk/helpers/removeUnicodeNullCharacters.js +9 -0
- package/dist/sdk/helpers/removeUnicodeNullCharacters.js.map +1 -1
- package/dist/sdk/schemas/common/mtLocales/deepl.d.ts +2 -2
- package/dist/sdk/schemas/common/mtLocales/deepl.js +89 -2
- package/dist/sdk/schemas/common/mtLocales/deepl.js.map +1 -1
- package/dist/sdk/schemas/common/mtSupportedLocales.d.ts +10 -0
- package/dist/sdk/schemas/common/mtSupportedLocales.js +10 -1
- package/dist/sdk/schemas/common/mtSupportedLocales.js.map +1 -1
- package/package.json +3 -3
|
@@ -1 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Strips Unicode null characters from a string.
|
|
3
|
+
*
|
|
4
|
+
* Removes both actual null bytes and the unescaped `U+0000` JSON escape sequence,
|
|
5
|
+
* while preserving literal, backslash-escaped occurrences in user-provided text.
|
|
6
|
+
*
|
|
7
|
+
* @param text - The input string to sanitize.
|
|
8
|
+
* @returns The input with null characters removed.
|
|
9
|
+
*/
|
|
1
10
|
export declare function removeUnicodeNullCharacters(text: string): string;
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Strips Unicode null characters from a string.
|
|
3
|
+
*
|
|
4
|
+
* Removes both actual null bytes and the unescaped `U+0000` JSON escape sequence,
|
|
5
|
+
* while preserving literal, backslash-escaped occurrences in user-provided text.
|
|
6
|
+
*
|
|
7
|
+
* @param text - The input string to sanitize.
|
|
8
|
+
* @returns The input with null characters removed.
|
|
9
|
+
*/
|
|
1
10
|
export function removeUnicodeNullCharacters(text) {
|
|
2
11
|
// Remove:
|
|
3
12
|
// 1. Actual null bytes (\u0000)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"removeUnicodeNullCharacters.js","sourceRoot":"","sources":["../../../src/sdk/helpers/removeUnicodeNullCharacters.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,2BAA2B,CAAC,IAAY;IACtD,UAAU;IACV,gCAAgC;IAChC,qFAAqF;IACrF,EAAE;IACF,sFAAsF;IACtF,0EAA0E;IAC1E,EAAE;IACF,gGAAgG;IAChG,OAAO,IAAI,CAAC,OAAO,CAAC,wBAAwB,EAAE,EAAE,CAAC,CAAA;AACnD,CAAC"}
|
|
1
|
+
{"version":3,"file":"removeUnicodeNullCharacters.js","sourceRoot":"","sources":["../../../src/sdk/helpers/removeUnicodeNullCharacters.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,UAAU,2BAA2B,CAAC,IAAY;IACtD,UAAU;IACV,gCAAgC;IAChC,qFAAqF;IACrF,EAAE;IACF,sFAAsF;IACtF,0EAA0E;IAC1E,EAAE;IACF,gGAAgG;IAChG,OAAO,IAAI,CAAC,OAAO,CAAC,wBAAwB,EAAE,EAAE,CAAC,CAAA;AACnD,CAAC"}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* Locales DeepL accepts as a translation source.
|
|
3
3
|
* @see https://developers.deepl.com/docs/resources/supported-languages
|
|
4
4
|
*/
|
|
5
|
-
export declare const DEEPL_SUPPORTED_SOURCE_LOCALES: readonly ["ar", "bg", "cs", "da", "de", "el", "en", "es", "et", "fi", "fr", "hu", "id", "it", "ja", "ko", "lt", "lv", "nb", "nl", "pl", "pt", "ro", "ru", "sk", "sl", "sv", "tr", "uk", "zh"];
|
|
5
|
+
export declare const DEEPL_SUPPORTED_SOURCE_LOCALES: readonly ["ace", "af", "an", "ar", "as", "ay", "az", "ba", "be", "bg", "bho", "bn", "br", "bs", "ca", "ceb", "ckb", "cs", "cy", "da", "de", "el", "en", "eo", "es", "et", "eu", "fa", "fi", "fr", "ga", "gl", "gn", "gom", "gu", "ha", "he", "hi", "hr", "ht", "hu", "hy", "id", "ig", "is", "it", "ja", "jv", "ka", "kk", "kmr", "ko", "ky", "la", "lb", "lmo", "ln", "lt", "lv", "mai", "mg", "mi", "mk", "ml", "mn", "mr", "ms", "mt", "my", "nb", "ne", "nl", "oc", "om", "pa", "pag", "pam", "pl", "prs", "ps", "pt", "qu", "ro", "ru", "sa", "scn", "sk", "sl", "sq", "sr", "st", "su", "sv", "sw", "ta", "te", "tg", "th", "tk", "tl", "tn", "tr", "ts", "tt", "uk", "ur", "uz", "vi", "wo", "xh", "yi", "yue", "zh", "zu"];
|
|
6
6
|
/**
|
|
7
7
|
* Locales DeepL accepts as a translation target. Superset of the source locales,
|
|
8
8
|
* adding region/script variants DeepL only supports as targets.
|
|
9
9
|
*/
|
|
10
|
-
export declare const DEEPL_SUPPORTED_TARGET_LOCALES: readonly ["ar", "bg", "cs", "da", "de", "el", "en", "es", "et", "fi", "fr", "hu", "id", "it", "ja", "ko", "lt", "lv", "nb", "nl", "pl", "pt", "ro", "ru", "sk", "sl", "sv", "tr", "uk", "zh", "en-GB", "en-US", "pt-BR", "pt-PT", "zh-
|
|
10
|
+
export declare const DEEPL_SUPPORTED_TARGET_LOCALES: readonly ["ace", "af", "an", "ar", "as", "ay", "az", "ba", "be", "bg", "bho", "bn", "br", "bs", "ca", "ceb", "ckb", "cs", "cy", "da", "de", "el", "en", "eo", "es", "et", "eu", "fa", "fi", "fr", "ga", "gl", "gn", "gom", "gu", "ha", "he", "hi", "hr", "ht", "hu", "hy", "id", "ig", "is", "it", "ja", "jv", "ka", "kk", "kmr", "ko", "ky", "la", "lb", "lmo", "ln", "lt", "lv", "mai", "mg", "mi", "mk", "ml", "mn", "mr", "ms", "mt", "my", "nb", "ne", "nl", "oc", "om", "pa", "pag", "pam", "pl", "prs", "ps", "pt", "qu", "ro", "ru", "sa", "scn", "sk", "sl", "sq", "sr", "st", "su", "sv", "sw", "ta", "te", "tg", "th", "tk", "tl", "tn", "tr", "ts", "tt", "uk", "ur", "uz", "vi", "wo", "xh", "yi", "yue", "zh", "zu", "de-DE", "en-GB", "en-US", "es-419", "fr-FR", "pt-BR", "pt-PT", "zh-Hans", "zh-Hant"];
|
|
@@ -3,36 +3,120 @@
|
|
|
3
3
|
* @see https://developers.deepl.com/docs/resources/supported-languages
|
|
4
4
|
*/
|
|
5
5
|
export const DEEPL_SUPPORTED_SOURCE_LOCALES = [
|
|
6
|
+
'ace',
|
|
7
|
+
'af',
|
|
8
|
+
'an',
|
|
6
9
|
'ar',
|
|
10
|
+
'as',
|
|
11
|
+
'ay',
|
|
12
|
+
'az',
|
|
13
|
+
'ba',
|
|
14
|
+
'be',
|
|
7
15
|
'bg',
|
|
16
|
+
'bho',
|
|
17
|
+
'bn',
|
|
18
|
+
'br',
|
|
19
|
+
'bs',
|
|
20
|
+
'ca',
|
|
21
|
+
'ceb',
|
|
22
|
+
'ckb',
|
|
8
23
|
'cs',
|
|
24
|
+
'cy',
|
|
9
25
|
'da',
|
|
10
26
|
'de',
|
|
11
27
|
'el',
|
|
12
28
|
'en',
|
|
29
|
+
'eo',
|
|
13
30
|
'es',
|
|
14
31
|
'et',
|
|
32
|
+
'eu',
|
|
33
|
+
'fa',
|
|
15
34
|
'fi',
|
|
16
35
|
'fr',
|
|
36
|
+
'ga',
|
|
37
|
+
'gl',
|
|
38
|
+
'gn',
|
|
39
|
+
'gom',
|
|
40
|
+
'gu',
|
|
41
|
+
'ha',
|
|
42
|
+
'he',
|
|
43
|
+
'hi',
|
|
44
|
+
'hr',
|
|
45
|
+
'ht',
|
|
17
46
|
'hu',
|
|
47
|
+
'hy',
|
|
18
48
|
'id',
|
|
49
|
+
'ig',
|
|
50
|
+
'is',
|
|
19
51
|
'it',
|
|
20
52
|
'ja',
|
|
53
|
+
'jv',
|
|
54
|
+
'ka',
|
|
55
|
+
'kk',
|
|
56
|
+
'kmr',
|
|
21
57
|
'ko',
|
|
58
|
+
'ky',
|
|
59
|
+
'la',
|
|
60
|
+
'lb',
|
|
61
|
+
'lmo',
|
|
62
|
+
'ln',
|
|
22
63
|
'lt',
|
|
23
64
|
'lv',
|
|
65
|
+
'mai',
|
|
66
|
+
'mg',
|
|
67
|
+
'mi',
|
|
68
|
+
'mk',
|
|
69
|
+
'ml',
|
|
70
|
+
'mn',
|
|
71
|
+
'mr',
|
|
72
|
+
'ms',
|
|
73
|
+
'mt',
|
|
74
|
+
'my',
|
|
24
75
|
'nb',
|
|
76
|
+
'ne',
|
|
25
77
|
'nl',
|
|
78
|
+
'oc',
|
|
79
|
+
'om',
|
|
80
|
+
'pa',
|
|
81
|
+
'pag',
|
|
82
|
+
'pam',
|
|
26
83
|
'pl',
|
|
84
|
+
'prs',
|
|
85
|
+
'ps',
|
|
27
86
|
'pt',
|
|
87
|
+
'qu',
|
|
28
88
|
'ro',
|
|
29
89
|
'ru',
|
|
90
|
+
'sa',
|
|
91
|
+
'scn',
|
|
30
92
|
'sk',
|
|
31
93
|
'sl',
|
|
94
|
+
'sq',
|
|
95
|
+
'sr',
|
|
96
|
+
'st',
|
|
97
|
+
'su',
|
|
32
98
|
'sv',
|
|
99
|
+
'sw',
|
|
100
|
+
'ta',
|
|
101
|
+
'te',
|
|
102
|
+
'tg',
|
|
103
|
+
'th',
|
|
104
|
+
'tk',
|
|
105
|
+
'tl',
|
|
106
|
+
'tn',
|
|
33
107
|
'tr',
|
|
108
|
+
'ts',
|
|
109
|
+
'tt',
|
|
34
110
|
'uk',
|
|
111
|
+
'ur',
|
|
112
|
+
'uz',
|
|
113
|
+
'vi',
|
|
114
|
+
'wo',
|
|
115
|
+
'xh',
|
|
116
|
+
'yi',
|
|
117
|
+
'yue',
|
|
35
118
|
'zh',
|
|
119
|
+
'zu',
|
|
36
120
|
];
|
|
37
121
|
/**
|
|
38
122
|
* Locales DeepL accepts as a translation target. Superset of the source locales,
|
|
@@ -40,11 +124,14 @@ export const DEEPL_SUPPORTED_SOURCE_LOCALES = [
|
|
|
40
124
|
*/
|
|
41
125
|
export const DEEPL_SUPPORTED_TARGET_LOCALES = [
|
|
42
126
|
...DEEPL_SUPPORTED_SOURCE_LOCALES,
|
|
127
|
+
'de-DE',
|
|
43
128
|
'en-GB',
|
|
44
129
|
'en-US',
|
|
130
|
+
'es-419',
|
|
131
|
+
'fr-FR',
|
|
45
132
|
'pt-BR',
|
|
46
133
|
'pt-PT',
|
|
47
|
-
'zh-
|
|
48
|
-
'zh-
|
|
134
|
+
'zh-Hans',
|
|
135
|
+
'zh-Hant',
|
|
49
136
|
];
|
|
50
137
|
//# sourceMappingURL=deepl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deepl.js","sourceRoot":"","sources":["../../../../../src/sdk/schemas/common/mtLocales/deepl.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC5C,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;CACgC,CAAA;AAEtC;;;GAGG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC5C,GAAG,8BAA8B;IACjC,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,SAAS;IACT,SAAS;CAC2B,CAAA"}
|
|
1
|
+
{"version":3,"file":"deepl.js","sourceRoot":"","sources":["../../../../../src/sdk/schemas/common/mtLocales/deepl.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC5C,KAAK;IACL,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IAC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AI;IACJ,IAAI;IACJ,KAAK;IACL,IAAI;IACJ,IAAI;CACgC,CAAA;AAEtC;;;GAGG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC5C,GAAG,8BAA8B;IACjC,OAAO;IACP,OAAO;IACP,OAAO;IACP,QAAQ;IACR,OAAO;IACP,OAAO;IACP,OAAO;IACP,SAAS;IACT,SAAS;CAC2B,CAAA"}
|
|
@@ -26,6 +26,16 @@ export declare const MT_SUPPORTED_LOCALE_SETS: Readonly<Record<MtIntegrationEngi
|
|
|
26
26
|
* MT integration expects, for cases standard locale parsing cannot resolve.
|
|
27
27
|
*/
|
|
28
28
|
export declare const MT_LOCALE_ALIASES: Readonly<Record<MtIntegrationEngineEnum, ReadonlyMap<string, Locale>>>;
|
|
29
|
+
/**
|
|
30
|
+
* Resolves a Lokalise (BCP-47) locale to the engine locale it maps to for the given
|
|
31
|
+
* direction, applying engine aliases and language-subtag fallback (e.g. `de-AT` → `de`,
|
|
32
|
+
* `zh-HK` → `zh-TW`), or returns `undefined` when the engine does not support it.
|
|
33
|
+
*
|
|
34
|
+
* @param engine - MT integration to resolve against
|
|
35
|
+
* @param locale - Lokalise (BCP-47) locale code, e.g. `de-AT`
|
|
36
|
+
* @param direction - whether `locale` is used as a translation `source` or `target`
|
|
37
|
+
*/
|
|
38
|
+
export declare function resolveSupportedLocale(engine: MtIntegrationEngineEnum, locale: Locale, direction: 'source' | 'target'): Locale | undefined;
|
|
29
39
|
/**
|
|
30
40
|
* Checks whether an MT integration can translate the given source → target locale pair.
|
|
31
41
|
*
|
|
@@ -51,7 +51,16 @@ function matchSupportedLocale(candidate, supportedLocales, aliases) {
|
|
|
51
51
|
}
|
|
52
52
|
return undefined;
|
|
53
53
|
}
|
|
54
|
-
|
|
54
|
+
/**
|
|
55
|
+
* Resolves a Lokalise (BCP-47) locale to the engine locale it maps to for the given
|
|
56
|
+
* direction, applying engine aliases and language-subtag fallback (e.g. `de-AT` → `de`,
|
|
57
|
+
* `zh-HK` → `zh-TW`), or returns `undefined` when the engine does not support it.
|
|
58
|
+
*
|
|
59
|
+
* @param engine - MT integration to resolve against
|
|
60
|
+
* @param locale - Lokalise (BCP-47) locale code, e.g. `de-AT`
|
|
61
|
+
* @param direction - whether `locale` is used as a translation `source` or `target`
|
|
62
|
+
*/
|
|
63
|
+
export function resolveSupportedLocale(engine, locale, direction) {
|
|
55
64
|
const supportedLocales = MT_SUPPORTED_LOCALE_SETS[engine][direction];
|
|
56
65
|
const aliases = MT_LOCALE_ALIASES[engine];
|
|
57
66
|
// Exact match or full-locale alias
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mtSupportedLocales.js","sourceRoot":"","sources":["../../../../src/sdk/schemas/common/mtSupportedLocales.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAE5E,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAA;AAC5D,OAAO,EACL,8BAA8B,EAC9B,8BAA8B,GAC/B,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EACL,+BAA+B,EAC/B,kCAAkC,GACnC,MAAM,gCAAgC,CAAA;AASvC;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAkE;IACjG,CAAC,uBAAuB,CAAC,KAAK,CAAC,EAAE;QAC/B,MAAM,EAAE,8BAA8B;QACtC,MAAM,EAAE,8BAA8B;KACvC;IACD,CAAC,uBAAuB,CAAC,gBAAgB,CAAC,EAAE;QAC1C,MAAM,EAAE,kCAAkC;QAC1C,MAAM,EAAE,kCAAkC;KAC3C;CACF,CAAA;AASD;;;GAGG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAEjC;IACF,CAAC,uBAAuB,CAAC,KAAK,CAAC,EAAE;QAC/B,MAAM,EAAE,IAAI,GAAG,CAAC,8BAA8B,CAAC;QAC/C,MAAM,EAAE,IAAI,GAAG,CAAC,8BAA8B,CAAC;KAChD;IACD,CAAC,uBAAuB,CAAC,gBAAgB,CAAC,EAAE;QAC1C,MAAM,EAAE,IAAI,GAAG,CAAC,kCAAkC,CAAC;QACnD,MAAM,EAAE,IAAI,GAAG,CAAC,kCAAkC,CAAC;KACpD;CACF,CAAA;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAE1B;IACF,CAAC,uBAAuB,CAAC,KAAK,CAAC,EAAE,IAAI,GAAG,EAAE;IAC1C,CAAC,uBAAuB,CAAC,gBAAgB,CAAC,EAAE,+BAA+B;CAC5E,CAAA;AAED;;;GAGG;AACH,SAAS,oBAAoB,CAC3B,SAAiB,EACjB,gBAAqC,EACrC,OAAoC;IAEpC,IAAI,gBAAgB,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,CAAC;QACpC,OAAO,SAAS,CAAA;IAClB,CAAC;IAED,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAA;IACpC,IAAI,KAAK,IAAI,gBAAgB,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;QACzC,OAAO,KAAK,CAAA;IACd,CAAC;IAED,OAAO,SAAS,CAAA;AAClB,CAAC;AAED,
|
|
1
|
+
{"version":3,"file":"mtSupportedLocales.js","sourceRoot":"","sources":["../../../../src/sdk/schemas/common/mtSupportedLocales.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAE5E,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAA;AAC5D,OAAO,EACL,8BAA8B,EAC9B,8BAA8B,GAC/B,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EACL,+BAA+B,EAC/B,kCAAkC,GACnC,MAAM,gCAAgC,CAAA;AASvC;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAkE;IACjG,CAAC,uBAAuB,CAAC,KAAK,CAAC,EAAE;QAC/B,MAAM,EAAE,8BAA8B;QACtC,MAAM,EAAE,8BAA8B;KAC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
2
|
"name": "@lokalise/polyglot-sdk",
|
|
3
|
-
"version": "24.
|
|
3
|
+
"version": "24.5.1",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "Lokalise",
|
|
6
6
|
"url": "https://lokalise.com/"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"html-escaper": "^3.0.3",
|
|
40
40
|
"parse-sse": "^0.1.0",
|
|
41
41
|
"pino": "^10.3.1",
|
|
42
|
-
"undici": "^8.
|
|
42
|
+
"undici": "^8.4.1",
|
|
43
43
|
"undici-retry": "^7.0.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@lokalise/biome-config": "^3.1.1",
|
|
48
48
|
"@lokalise/tsconfig": "^4.0.0",
|
|
49
49
|
"@types/html-escaper": "^3.0.4",
|
|
50
|
-
"@types/node": "^25.9.
|
|
50
|
+
"@types/node": "^25.9.2",
|
|
51
51
|
"@vitest/coverage-v8": "^4.1.8",
|
|
52
52
|
"mockttp": "^4.4.2",
|
|
53
53
|
"rimraf": "^6.1.3",
|