@lokascript/i18n 3.3.0 → 4.0.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/browser.cjs.map +1 -1
- package/dist/browser.d.cts +4 -5
- package/dist/browser.d.ts +4 -5
- package/dist/browser.js.map +1 -1
- package/dist/{index-DuIef8O7.d.ts → index-BvvoluMH.d.ts} +31 -47
- package/dist/{index-BykxjYST.d.cts → index-C4L2RKNl.d.cts} +31 -47
- package/dist/index.cjs +19367 -3750
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +34 -258
- package/dist/index.d.ts +34 -258
- package/dist/index.js +19367 -3750
- package/dist/index.js.map +1 -1
- package/dist/lokascript-i18n.min.js.map +1 -1
- package/dist/lokascript-i18n.mjs +27 -45
- package/dist/lokascript-i18n.mjs.map +1 -1
- package/package.json +4 -4
- package/src/browser.ts +4 -7
- package/src/compatibility/browser-tests/grammar-demo.spec.ts +1 -1
- package/src/grammar/index.ts +5 -4
- package/src/grammar/profiles.test.ts +3 -2
- package/src/parser/ar.ts +2 -3
- package/src/parser/de.ts +2 -3
- package/src/parser/es.ts +2 -3
- package/src/parser/fr.ts +2 -3
- package/src/parser/he.ts +2 -3
- package/src/parser/id.ts +2 -3
- package/src/parser/index.ts +4 -6
- package/src/parser/ja.ts +2 -3
- package/src/parser/ko.ts +2 -3
- package/src/parser/locale-manager.ts +2 -6
- package/src/parser/pt.ts +2 -3
- package/src/parser/qu.ts +2 -3
- package/src/parser/sw.ts +2 -3
- package/src/parser/tr.ts +2 -3
- package/src/parser/types.ts +6 -5
- package/src/parser/zh.ts +1 -3
package/dist/browser.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { K as KeywordProvider } from './index-
|
|
2
|
-
export { A as AdpositionType, E as ENGLISH_COMMANDS, a as ENGLISH_KEYWORDS, G as GrammarRule, b as GrammaticalMarker, c as KeywordProviderOptions, L as LANGUAGE_FAMILY_DEFAULTS, d as LanguageProfile, e as LocaleManager, M as MorphologyType, P as ParsedElement, f as ParsedStatement, g as PatternMatcher, h as PatternTransform, S as SemanticRole, U as UNIVERSAL_ENGLISH_KEYWORDS, i as UNIVERSAL_PATTERNS, W as WordOrder, j as ar, j as arDictionary, k as arKeywords, l as arabicProfile, m as bn, m as bnDictionary, n as bnKeywords, o as chineseProfile, p as createEnglishProvider, q as createKeywordProvider, r as de, r as deDictionary, s as deKeywords, t as detectBrowserLocale, u as englishProfile, v as es, v as esDictionary, w as esKeywords, x as fr, x as frDictionary, y as frKeywords, z as frenchProfile, B as germanProfile, C as getProfile, D as getSupportedLocales, F as hebrewProfile, H as hiDictionary, I as hiKeywords, H as hindiDictionary, J as id, J as idDictionary, N as idKeywords, O as indonesianProfile, Q as insertMarkers, R as it, R as itDictionary, T as itKeywords, V as ja, V as jaDictionary, X as jaKeywords, Y as japaneseProfile, Z as joinTokens, _ as ko, _ as koDictionary, $ as koKeywords, a0 as koreanProfile, a1 as malayProfile, a2 as ms, a2 as msDictionary, a3 as msKeywords, a4 as pl, a4 as plDictionary, a5 as plKeywords, a6 as portugueseProfile, a7 as profiles, a8 as pt, a8 as ptDictionary, a9 as ptKeywords, aa as qu, aa as quDictionary, ab as quKeywords, ac as quechuaProfile, ad as reorderRoles, ae as ruDictionary, af as ruKeywords, ae as russianDictionary, ag as spanishProfile, ah as sw, ah as swDictionary, ai as swKeywords, aj as swahiliProfile, ak as th, ak as thDictionary, al as thKeywords, am as tl, am as tlDictionary, an as tlKeywords, ao as tr, ao as trDictionary, ap as trKeywords, aq as transformStatement, ar as turkishProfile, as as ukDictionary, at as ukKeywords, as as ukrainianDictionary, au as vi, au as viDictionary, av as viKeywords, aw as zh, aw as zhDictionary, ax as zhKeywords } from './index-
|
|
1
|
+
import { K as KeywordProvider } from './index-C4L2RKNl.cjs';
|
|
2
|
+
export { A as AdpositionType, E as ENGLISH_COMMANDS, a as ENGLISH_KEYWORDS, G as GrammarRule, b as GrammaticalMarker, c as KeywordProviderOptions, L as LANGUAGE_FAMILY_DEFAULTS, d as LanguageProfile, e as LocaleManager, M as MorphologyType, P as ParsedElement, f as ParsedStatement, g as PatternMatcher, h as PatternTransform, S as SemanticRole, U as UNIVERSAL_ENGLISH_KEYWORDS, i as UNIVERSAL_PATTERNS, W as WordOrder, j as ar, j as arDictionary, k as arKeywords, l as arabicProfile, m as bn, m as bnDictionary, n as bnKeywords, o as chineseProfile, p as createEnglishProvider, q as createKeywordProvider, r as de, r as deDictionary, s as deKeywords, t as detectBrowserLocale, u as englishProfile, v as es, v as esDictionary, w as esKeywords, x as fr, x as frDictionary, y as frKeywords, z as frenchProfile, B as germanProfile, C as getProfile, D as getSupportedLocales, F as hebrewProfile, H as hiDictionary, I as hiKeywords, H as hindiDictionary, J as id, J as idDictionary, N as idKeywords, O as indonesianProfile, Q as insertMarkers, R as it, R as itDictionary, T as itKeywords, V as ja, V as jaDictionary, X as jaKeywords, Y as japaneseProfile, Z as joinTokens, _ as ko, _ as koDictionary, $ as koKeywords, a0 as koreanProfile, a1 as malayProfile, a2 as ms, a2 as msDictionary, a3 as msKeywords, a4 as pl, a4 as plDictionary, a5 as plKeywords, a6 as portugueseProfile, a7 as profiles, a8 as pt, a8 as ptDictionary, a9 as ptKeywords, aa as qu, aa as quDictionary, ab as quKeywords, ac as quechuaProfile, ad as reorderRoles, ae as ruDictionary, af as ruKeywords, ae as russianDictionary, ag as spanishProfile, ah as sw, ah as swDictionary, ai as swKeywords, aj as swahiliProfile, ak as th, ak as thDictionary, al as thKeywords, am as tl, am as tlDictionary, an as tlKeywords, ao as tr, ao as trDictionary, ap as trKeywords, aq as transformStatement, ar as turkishProfile, as as ukDictionary, at as ukKeywords, as as ukrainianDictionary, au as vi, au as viDictionary, av as viKeywords, aw as zh, aw as zhDictionary, ax as zhKeywords } from './index-C4L2RKNl.cjs';
|
|
3
3
|
import { D as Dictionary } from './types-BYtpqGq3.cjs';
|
|
4
4
|
|
|
5
5
|
declare const he: Dictionary;
|
|
@@ -15,10 +15,9 @@ declare const he: Dictionary;
|
|
|
15
15
|
* @example
|
|
16
16
|
* ```typescript
|
|
17
17
|
* import { heKeywords } from '@lokascript/i18n/parser/he';
|
|
18
|
-
* import { Parser } from '@hyperfixi/core';
|
|
19
18
|
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
19
|
+
* heKeywords.resolve('מתג'); // 'toggle'
|
|
20
|
+
* heKeywords.toLocale('on'); // 'ב'
|
|
22
21
|
* ```
|
|
23
22
|
*/
|
|
24
23
|
declare const heKeywords: KeywordProvider;
|
package/dist/browser.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { K as KeywordProvider } from './index-
|
|
2
|
-
export { A as AdpositionType, E as ENGLISH_COMMANDS, a as ENGLISH_KEYWORDS, G as GrammarRule, b as GrammaticalMarker, c as KeywordProviderOptions, L as LANGUAGE_FAMILY_DEFAULTS, d as LanguageProfile, e as LocaleManager, M as MorphologyType, P as ParsedElement, f as ParsedStatement, g as PatternMatcher, h as PatternTransform, S as SemanticRole, U as UNIVERSAL_ENGLISH_KEYWORDS, i as UNIVERSAL_PATTERNS, W as WordOrder, j as ar, j as arDictionary, k as arKeywords, l as arabicProfile, m as bn, m as bnDictionary, n as bnKeywords, o as chineseProfile, p as createEnglishProvider, q as createKeywordProvider, r as de, r as deDictionary, s as deKeywords, t as detectBrowserLocale, u as englishProfile, v as es, v as esDictionary, w as esKeywords, x as fr, x as frDictionary, y as frKeywords, z as frenchProfile, B as germanProfile, C as getProfile, D as getSupportedLocales, F as hebrewProfile, H as hiDictionary, I as hiKeywords, H as hindiDictionary, J as id, J as idDictionary, N as idKeywords, O as indonesianProfile, Q as insertMarkers, R as it, R as itDictionary, T as itKeywords, V as ja, V as jaDictionary, X as jaKeywords, Y as japaneseProfile, Z as joinTokens, _ as ko, _ as koDictionary, $ as koKeywords, a0 as koreanProfile, a1 as malayProfile, a2 as ms, a2 as msDictionary, a3 as msKeywords, a4 as pl, a4 as plDictionary, a5 as plKeywords, a6 as portugueseProfile, a7 as profiles, a8 as pt, a8 as ptDictionary, a9 as ptKeywords, aa as qu, aa as quDictionary, ab as quKeywords, ac as quechuaProfile, ad as reorderRoles, ae as ruDictionary, af as ruKeywords, ae as russianDictionary, ag as spanishProfile, ah as sw, ah as swDictionary, ai as swKeywords, aj as swahiliProfile, ak as th, ak as thDictionary, al as thKeywords, am as tl, am as tlDictionary, an as tlKeywords, ao as tr, ao as trDictionary, ap as trKeywords, aq as transformStatement, ar as turkishProfile, as as ukDictionary, at as ukKeywords, as as ukrainianDictionary, au as vi, au as viDictionary, av as viKeywords, aw as zh, aw as zhDictionary, ax as zhKeywords } from './index-
|
|
1
|
+
import { K as KeywordProvider } from './index-BvvoluMH.js';
|
|
2
|
+
export { A as AdpositionType, E as ENGLISH_COMMANDS, a as ENGLISH_KEYWORDS, G as GrammarRule, b as GrammaticalMarker, c as KeywordProviderOptions, L as LANGUAGE_FAMILY_DEFAULTS, d as LanguageProfile, e as LocaleManager, M as MorphologyType, P as ParsedElement, f as ParsedStatement, g as PatternMatcher, h as PatternTransform, S as SemanticRole, U as UNIVERSAL_ENGLISH_KEYWORDS, i as UNIVERSAL_PATTERNS, W as WordOrder, j as ar, j as arDictionary, k as arKeywords, l as arabicProfile, m as bn, m as bnDictionary, n as bnKeywords, o as chineseProfile, p as createEnglishProvider, q as createKeywordProvider, r as de, r as deDictionary, s as deKeywords, t as detectBrowserLocale, u as englishProfile, v as es, v as esDictionary, w as esKeywords, x as fr, x as frDictionary, y as frKeywords, z as frenchProfile, B as germanProfile, C as getProfile, D as getSupportedLocales, F as hebrewProfile, H as hiDictionary, I as hiKeywords, H as hindiDictionary, J as id, J as idDictionary, N as idKeywords, O as indonesianProfile, Q as insertMarkers, R as it, R as itDictionary, T as itKeywords, V as ja, V as jaDictionary, X as jaKeywords, Y as japaneseProfile, Z as joinTokens, _ as ko, _ as koDictionary, $ as koKeywords, a0 as koreanProfile, a1 as malayProfile, a2 as ms, a2 as msDictionary, a3 as msKeywords, a4 as pl, a4 as plDictionary, a5 as plKeywords, a6 as portugueseProfile, a7 as profiles, a8 as pt, a8 as ptDictionary, a9 as ptKeywords, aa as qu, aa as quDictionary, ab as quKeywords, ac as quechuaProfile, ad as reorderRoles, ae as ruDictionary, af as ruKeywords, ae as russianDictionary, ag as spanishProfile, ah as sw, ah as swDictionary, ai as swKeywords, aj as swahiliProfile, ak as th, ak as thDictionary, al as thKeywords, am as tl, am as tlDictionary, an as tlKeywords, ao as tr, ao as trDictionary, ap as trKeywords, aq as transformStatement, ar as turkishProfile, as as ukDictionary, at as ukKeywords, as as ukrainianDictionary, au as vi, au as viDictionary, av as viKeywords, aw as zh, aw as zhDictionary, ax as zhKeywords } from './index-BvvoluMH.js';
|
|
3
3
|
import { D as Dictionary } from './types-BYtpqGq3.js';
|
|
4
4
|
|
|
5
5
|
declare const he: Dictionary;
|
|
@@ -15,10 +15,9 @@ declare const he: Dictionary;
|
|
|
15
15
|
* @example
|
|
16
16
|
* ```typescript
|
|
17
17
|
* import { heKeywords } from '@lokascript/i18n/parser/he';
|
|
18
|
-
* import { Parser } from '@hyperfixi/core';
|
|
19
18
|
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
19
|
+
* heKeywords.resolve('מתג'); // 'toggle'
|
|
20
|
+
* heKeywords.toLocale('on'); // 'ב'
|
|
22
21
|
* ```
|
|
23
22
|
*/
|
|
24
23
|
declare const heKeywords: KeywordProvider;
|