@lokascript/i18n 2.1.0 → 2.2.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/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { I as I18nConfig, T as TranslationOptions, a as TranslationResult, D as Dictionary, V as ValidationResult$1, b as Token } from './types-BYtpqGq3.cjs';
2
2
  export { c as DICTIONARY_CATEGORIES, d as DictionaryCategory, L as LocaleMetadata, e as TokenType, f as TranslationContext, g as ValidationError, h as ValidationWarning, i as findInDictionary, j as forEachCategory, k as getDictionaryCategory, l as isDictionaryCategory, t as translateFromEnglish } from './types-BYtpqGq3.cjs';
3
3
  export { ar, bn, de, dictionaries, en, es, fr, getDictionary, hi, id, isLocaleSupported, it, ja, ko, ms, pl, pt, qu, ru, supportedLocales, sw, th, tl, tr, uk, vi, zh } from './dictionaries/index.cjs';
4
- export { A as AdpositionType, E as ENGLISH_COMMANDS, a as ENGLISH_KEYWORDS, G as GrammarRule, b as GrammarTransformer, c as GrammaticalMarker, K as KeywordProvider, d as KeywordProviderOptions, L as LANGUAGE_FAMILY_DEFAULTS, e as LanguageProfile, f as LocaleManager, M as MorphologyType, P as ParsedElement, g as ParsedStatement, h as PatternMatcher, i as PatternTransform, S as SemanticRole, U as UNIVERSAL_ENGLISH_KEYWORDS, j as UNIVERSAL_PATTERNS, W as WordOrder, k as arDictionary, l as arKeywords, m as arabicProfile, n as bnDictionary, o as bnKeywords, p as chineseProfile, q as createEnglishProvider, r as createKeywordProvider, s as deDictionary, t as deKeywords, u as detectBrowserLocale, v as englishProfile, w as esDictionary, x as esKeywords, y as frDictionary, z as frKeywords, D as getProfile, F as getSupportedLocales, H as grammarExamples, I as hiDictionary, J as hiKeywords, N as idDictionary, O as idKeywords, Q as indonesianProfile, R as insertMarkers, T as itDictionary, V as itKeywords, X as jaDictionary, Y as jaKeywords, Z as japaneseProfile, $ as koDictionary, a0 as koKeywords, a1 as koreanProfile, a2 as msDictionary, a3 as msKeywords, a4 as parseStatement, a5 as plDictionary, a6 as plKeywords, a8 as profiles, a9 as ptDictionary, aa as ptKeywords, ab as quDictionary, ac as quKeywords, ad as quechuaProfile, ae as reorderRoles, af as ruDictionary, ag as ruKeywords, ah as spanishProfile, ai as swDictionary, aj as swKeywords, ak as swahiliProfile, al as thDictionary, am as thKeywords, an as tlDictionary, ao as tlKeywords, ap as toEnglish, aq as toLocale, ar as trDictionary, as as trKeywords, at as transformStatement, au as translate, av as turkishProfile, aw as ukDictionary, ax as ukKeywords, ay as viDictionary, az as viKeywords, aA as zhDictionary, aB as zhKeywords } from './transformer-DQqxl6hb.cjs';
4
+ export { A as AdpositionType, E as ENGLISH_COMMANDS, a as ENGLISH_KEYWORDS, G as GrammarRule, b as GrammarTransformer, c as GrammaticalMarker, K as KeywordProvider, d as KeywordProviderOptions, L as LANGUAGE_FAMILY_DEFAULTS, e as LanguageProfile, f as LocaleManager, M as MorphologyType, P as ParsedElement, g as ParsedStatement, h as PatternMatcher, i as PatternTransform, S as SemanticRole, U as UNIVERSAL_ENGLISH_KEYWORDS, j as UNIVERSAL_PATTERNS, W as WordOrder, k as arDictionary, l as arKeywords, m as arabicProfile, n as bnDictionary, o as bnKeywords, p as chineseProfile, q as createEnglishProvider, r as createKeywordProvider, s as deDictionary, t as deKeywords, u as detectBrowserLocale, v as englishProfile, w as esDictionary, x as esKeywords, y as frDictionary, z as frKeywords, D as getProfile, F as getSupportedLocales, H as grammarExamples, I as hiDictionary, J as hiKeywords, N as idDictionary, O as idKeywords, Q as indonesianProfile, R as insertMarkers, T as itDictionary, V as itKeywords, X as jaDictionary, Y as jaKeywords, Z as japaneseProfile, $ as koDictionary, a0 as koKeywords, a1 as koreanProfile, a2 as msDictionary, a3 as msKeywords, a4 as parseStatement, a5 as plDictionary, a6 as plKeywords, a8 as profiles, a9 as ptDictionary, aa as ptKeywords, ab as quDictionary, ac as quKeywords, ad as quechuaProfile, ae as reorderRoles, af as ruDictionary, ag as ruKeywords, ah as spanishProfile, ai as swDictionary, aj as swKeywords, ak as swahiliProfile, al as thDictionary, am as thKeywords, an as tlDictionary, ao as tlKeywords, ap as toEnglish, aq as toLocale, ar as trDictionary, as as trKeywords, at as transformStatement, au as translate, av as turkishProfile, aw as ukDictionary, ax as ukKeywords, ay as viDictionary, az as viKeywords, aA as zhDictionary, aB as zhKeywords } from './transformer-CzY_vHU0.cjs';
5
5
  export { hyperscriptI18nVitePlugin } from './plugins/vite.cjs';
6
6
  export { HyperscriptI18nWebpackPlugin } from './plugins/webpack.cjs';
7
7
  import { z } from 'zod';
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { I as I18nConfig, T as TranslationOptions, a as TranslationResult, D as Dictionary, V as ValidationResult$1, b as Token } from './types-BYtpqGq3.js';
2
2
  export { c as DICTIONARY_CATEGORIES, d as DictionaryCategory, L as LocaleMetadata, e as TokenType, f as TranslationContext, g as ValidationError, h as ValidationWarning, i as findInDictionary, j as forEachCategory, k as getDictionaryCategory, l as isDictionaryCategory, t as translateFromEnglish } from './types-BYtpqGq3.js';
3
3
  export { ar, bn, de, dictionaries, en, es, fr, getDictionary, hi, id, isLocaleSupported, it, ja, ko, ms, pl, pt, qu, ru, supportedLocales, sw, th, tl, tr, uk, vi, zh } from './dictionaries/index.js';
4
- export { A as AdpositionType, E as ENGLISH_COMMANDS, a as ENGLISH_KEYWORDS, G as GrammarRule, b as GrammarTransformer, c as GrammaticalMarker, K as KeywordProvider, d as KeywordProviderOptions, L as LANGUAGE_FAMILY_DEFAULTS, e as LanguageProfile, f as LocaleManager, M as MorphologyType, P as ParsedElement, g as ParsedStatement, h as PatternMatcher, i as PatternTransform, S as SemanticRole, U as UNIVERSAL_ENGLISH_KEYWORDS, j as UNIVERSAL_PATTERNS, W as WordOrder, k as arDictionary, l as arKeywords, m as arabicProfile, n as bnDictionary, o as bnKeywords, p as chineseProfile, q as createEnglishProvider, r as createKeywordProvider, s as deDictionary, t as deKeywords, u as detectBrowserLocale, v as englishProfile, w as esDictionary, x as esKeywords, y as frDictionary, z as frKeywords, D as getProfile, F as getSupportedLocales, H as grammarExamples, I as hiDictionary, J as hiKeywords, N as idDictionary, O as idKeywords, Q as indonesianProfile, R as insertMarkers, T as itDictionary, V as itKeywords, X as jaDictionary, Y as jaKeywords, Z as japaneseProfile, $ as koDictionary, a0 as koKeywords, a1 as koreanProfile, a2 as msDictionary, a3 as msKeywords, a4 as parseStatement, a5 as plDictionary, a6 as plKeywords, a8 as profiles, a9 as ptDictionary, aa as ptKeywords, ab as quDictionary, ac as quKeywords, ad as quechuaProfile, ae as reorderRoles, af as ruDictionary, ag as ruKeywords, ah as spanishProfile, ai as swDictionary, aj as swKeywords, ak as swahiliProfile, al as thDictionary, am as thKeywords, an as tlDictionary, ao as tlKeywords, ap as toEnglish, aq as toLocale, ar as trDictionary, as as trKeywords, at as transformStatement, au as translate, av as turkishProfile, aw as ukDictionary, ax as ukKeywords, ay as viDictionary, az as viKeywords, aA as zhDictionary, aB as zhKeywords } from './transformer-B6NgN3JQ.js';
4
+ export { A as AdpositionType, E as ENGLISH_COMMANDS, a as ENGLISH_KEYWORDS, G as GrammarRule, b as GrammarTransformer, c as GrammaticalMarker, K as KeywordProvider, d as KeywordProviderOptions, L as LANGUAGE_FAMILY_DEFAULTS, e as LanguageProfile, f as LocaleManager, M as MorphologyType, P as ParsedElement, g as ParsedStatement, h as PatternMatcher, i as PatternTransform, S as SemanticRole, U as UNIVERSAL_ENGLISH_KEYWORDS, j as UNIVERSAL_PATTERNS, W as WordOrder, k as arDictionary, l as arKeywords, m as arabicProfile, n as bnDictionary, o as bnKeywords, p as chineseProfile, q as createEnglishProvider, r as createKeywordProvider, s as deDictionary, t as deKeywords, u as detectBrowserLocale, v as englishProfile, w as esDictionary, x as esKeywords, y as frDictionary, z as frKeywords, D as getProfile, F as getSupportedLocales, H as grammarExamples, I as hiDictionary, J as hiKeywords, N as idDictionary, O as idKeywords, Q as indonesianProfile, R as insertMarkers, T as itDictionary, V as itKeywords, X as jaDictionary, Y as jaKeywords, Z as japaneseProfile, $ as koDictionary, a0 as koKeywords, a1 as koreanProfile, a2 as msDictionary, a3 as msKeywords, a4 as parseStatement, a5 as plDictionary, a6 as plKeywords, a8 as profiles, a9 as ptDictionary, aa as ptKeywords, ab as quDictionary, ac as quKeywords, ad as quechuaProfile, ae as reorderRoles, af as ruDictionary, ag as ruKeywords, ah as spanishProfile, ai as swDictionary, aj as swKeywords, ak as swahiliProfile, al as thDictionary, am as thKeywords, an as tlDictionary, ao as tlKeywords, ap as toEnglish, aq as toLocale, ar as trDictionary, as as trKeywords, at as transformStatement, au as translate, av as turkishProfile, aw as ukDictionary, ax as ukKeywords, ay as viDictionary, az as viKeywords, aA as zhDictionary, aB as zhKeywords } from './transformer-B0zy-kti.js';
5
5
  export { hyperscriptI18nVitePlugin } from './plugins/vite.js';
6
6
  export { HyperscriptI18nWebpackPlugin } from './plugins/webpack.js';
7
7
  import { z } from 'zod';
package/dist/index.js CHANGED
@@ -2970,12 +2970,10 @@ var it = {
2970
2970
  // src/dictionaries/vi.ts
2971
2971
  var vi = {
2972
2972
  commands: {
2973
- // Event handling
2974
2973
  on: "khi",
2975
2974
  tell: "n\xF3i v\u1EDBi",
2976
2975
  trigger: "k\xEDch ho\u1EA1t",
2977
2976
  send: "g\u1EEDi",
2978
- // DOM manipulation
2979
2977
  take: "l\u1EA5y",
2980
2978
  put: "\u0111\u1EB7t",
2981
2979
  set: "g\xE1n",
@@ -2985,7 +2983,6 @@ var vi = {
2985
2983
  toggle: "chuy\u1EC3n \u0111\u1ED5i",
2986
2984
  hide: "\u1EA9n",
2987
2985
  show: "hi\u1EC3n th\u1ECB",
2988
- // Control flow
2989
2986
  if: "n\u1EBFu",
2990
2987
  unless: "tr\u1EEB khi",
2991
2988
  repeat: "l\u1EB7p l\u1EA1i",
@@ -2995,46 +2992,35 @@ var vi = {
2995
2992
  continue: "ti\u1EBFp t\u1EE5c",
2996
2993
  break: "d\u1EEBng",
2997
2994
  halt: "d\u1EEBng l\u1EA1i",
2998
- // Async
2999
2995
  wait: "ch\u1EDD",
3000
2996
  fetch: "t\u1EA3i",
3001
2997
  call: "g\u1ECDi",
3002
2998
  return: "tr\u1EA3 v\u1EC1",
3003
- // Other commands
3004
2999
  make: "t\u1EA1o",
3005
3000
  log: "in ra",
3006
3001
  throw: "n\xE9m",
3007
3002
  catch: "b\u1EAFt",
3008
3003
  measure: "\u0111o l\u01B0\u1EDDng",
3009
3004
  transition: "chuy\u1EC3n ti\u1EBFp",
3010
- // Data Commands
3011
3005
  increment: "t\u0103ng",
3012
3006
  decrement: "gi\u1EA3m",
3013
3007
  default: "m\u1EB7c \u0111\u1ECBnh",
3014
- // Navigation Commands
3015
3008
  go: "\u0111i \u0111\u1EBFn",
3016
3009
  pushUrl: "pushUrl",
3017
3010
  replaceUrl: "thayTh\u1EBFUrl",
3018
- // Utility Commands
3019
3011
  copy: "sao ch\xE9p",
3020
3012
  pick: "ch\u1ECDn",
3021
3013
  beep: "beep",
3022
- // Advanced Commands
3023
3014
  js: "js",
3024
3015
  async: "b\u1EA5t \u0111\u1ED3ng b\u1ED9",
3025
3016
  render: "hi\u1EC3n th\u1ECB",
3026
- // Animation Commands
3027
3017
  swap: "ho\xE1n \u0111\u1ED5i",
3028
3018
  morph: "bi\u1EBFn \u0111\u1ED5i",
3029
3019
  settle: "\u1ED5n \u0111\u1ECBnh",
3030
- // Content Commands
3031
3020
  append: "n\u1ED1i",
3032
- // Control Flow
3033
3021
  exit: "tho\xE1t",
3034
- // Focus
3035
3022
  focus: "t\u1EADp trung",
3036
3023
  blur: "m\u1EA5t t\u1EADp trung",
3037
- // Additional
3038
3024
  init: "kh\u1EDFi t\u1EA1o",
3039
3025
  behavior: "h\xE0nh vi",
3040
3026
  install: "c\xE0i \u0111\u1EB7t",
@@ -3091,13 +3077,14 @@ var vi = {
3091
3077
  matches: "kh\u1EDBp",
3092
3078
  exists: "t\u1ED3n t\u1EA1i",
3093
3079
  has: "c\xF3",
3094
- // possession verb (context-based)
3095
3080
  have: "c\xF3",
3096
- // same for first/third person
3097
3081
  empty: "tr\u1ED1ng",
3098
3082
  true: "\u0111\xFAng",
3099
3083
  false: "sai",
3100
- null: "r\u1ED7ng"
3084
+ null: "r\u1ED7ng",
3085
+ else: "kh\xF4ng th\xEC",
3086
+ end: "k\u1EBFt th\xFAc",
3087
+ then: "r\u1ED3i"
3101
3088
  },
3102
3089
  temporal: {
3103
3090
  now: "b\xE2y gi\u1EDD",
@@ -3121,7 +3108,17 @@ var vi = {
3121
3108
  any: "b\u1EA5t k\u1EF3",
3122
3109
  some: "m\u1ED9t s\u1ED1",
3123
3110
  each: "m\u1ED7i",
3124
- every: "t\u1EA5t c\u1EA3"
3111
+ every: "t\u1EA5t c\u1EA3",
3112
+ body: "body",
3113
+ event: "s\u1EF1 ki\u1EC7n",
3114
+ it: "n\xF3",
3115
+ its: "c\u1EE7a n\xF3",
3116
+ me: "t\xF4i",
3117
+ my: "c\u1EE7a t\xF4i",
3118
+ result: "k\u1EBFt qu\u1EA3",
3119
+ target: "m\u1EE5c ti\xEAu",
3120
+ you: "b\u1EA1n",
3121
+ your: "c\u1EE7a b\u1EA1n"
3125
3122
  },
3126
3123
  attributes: {
3127
3124
  id: "id",
@@ -4112,7 +4109,15 @@ var bengaliDictionary = {
4112
4109
  install: "\u0987\u09A8\u09B8\u09CD\u099F\u09B2",
4113
4110
  clone: "\u0995\u09AA\u09BF",
4114
4111
  swap: "\u09AC\u09A6\u09B2",
4115
- morph: "\u09B0\u09C2\u09AA\u09BE\u09A8\u09CD\u09A4\u09B0"
4112
+ morph: "\u09B0\u09C2\u09AA\u09BE\u09A8\u09CD\u09A4\u09B0",
4113
+ beep: "\u09AC\u09C0\u09AA",
4114
+ break: "\u09AD\u09BE\u0999\u09C1\u09A8",
4115
+ copy: "\u0995\u09AA\u09BF",
4116
+ exit: "\u09AC\u09C7\u09B0",
4117
+ js: "\u099C\u09C7\u098F\u09B8",
4118
+ pick: "\u09AC\u09BE\u099B\u09C1\u09A8",
4119
+ render: "\u09B0\u09C7\u09A8\u09CD\u09A1\u09BE\u09B0",
4120
+ until: "\u09AA\u09B0\u09CD\u09AF\u09A8\u09CD\u09A4"
4116
4121
  },
4117
4122
  modifiers: {
4118
4123
  to: "\u0995\u09C7",
@@ -4160,14 +4165,14 @@ var bengaliDictionary = {
4160
4165
  is: "\u09B9\u09AF\u09BC",
4161
4166
  exists: "\u0986\u099B\u09C7",
4162
4167
  has: "\u0986\u099B\u09C7",
4163
- // possession verb (context-based)
4164
4168
  have: "\u0986\u099B\u09BF",
4165
- // first-person: আমার আছি
4166
4169
  empty: "\u0996\u09BE\u09B2\u09BF",
4167
4170
  true: "\u09B8\u09A4\u09CD\u09AF",
4168
4171
  false: "\u09AE\u09BF\u09A5\u09CD\u09AF\u09BE",
4169
4172
  null: "\u09B6\u09C2\u09A8\u09CD\u09AF",
4170
- undefined: "\u0985\u09A8\u09BF\u09B0\u09CD\u09A7\u09BE\u09B0\u09BF\u09A4"
4173
+ undefined: "\u0985\u09A8\u09BF\u09B0\u09CD\u09A7\u09BE\u09B0\u09BF\u09A4",
4174
+ end: "\u09B6\u09C7\u09B7",
4175
+ then: "\u09A4\u09BE\u09B0\u09AA\u09B0"
4171
4176
  },
4172
4177
  temporal: {
4173
4178
  now: "\u098F\u0996\u09A8",
@@ -4188,7 +4193,9 @@ var bengaliDictionary = {
4188
4193
  result: "\u09AB\u09B2\u09BE\u09AB\u09B2",
4189
4194
  event: "\u0998\u099F\u09A8\u09BE",
4190
4195
  target: "\u09B2\u0995\u09CD\u09B7\u09CD\u09AF",
4191
- body: "\u09AC\u09A1\u09BF"
4196
+ body: "\u09AC\u09A1\u09BF",
4197
+ you: "\u0986\u09AA\u09A8\u09BF",
4198
+ your: "\u09A4\u09CB\u09AE\u09BE\u09B0"
4192
4199
  },
4193
4200
  attributes: {
4194
4201
  class: "\u09B6\u09CD\u09B0\u09C7\u09A3\u09BF",
@@ -4262,7 +4269,15 @@ var thaiDictionary = {
4262
4269
  install: "\u0E15\u0E34\u0E14\u0E15\u0E31\u0E49\u0E07",
4263
4270
  clone: "\u0E04\u0E31\u0E14\u0E25\u0E2D\u0E01",
4264
4271
  swap: "\u0E2A\u0E25\u0E31\u0E1A\u0E17\u0E35\u0E48",
4265
- morph: "\u0E41\u0E1B\u0E25\u0E07\u0E23\u0E48\u0E32\u0E07"
4272
+ morph: "\u0E41\u0E1B\u0E25\u0E07\u0E23\u0E48\u0E32\u0E07",
4273
+ beep: "\u0E1A\u0E35\u0E4A\u0E1A",
4274
+ break: "\u0E02\u0E31\u0E14\u0E08\u0E31\u0E07\u0E2B\u0E27\u0E30",
4275
+ copy: "\u0E04\u0E31\u0E14\u0E25\u0E2D\u0E01",
4276
+ exit: "\u0E2D\u0E2D\u0E01",
4277
+ js: "\u0E40\u0E08\u0E40\u0E2D\u0E2A",
4278
+ pick: "\u0E40\u0E25\u0E37\u0E2D\u0E01",
4279
+ render: "\u0E41\u0E2A\u0E14\u0E07\u0E1C\u0E25",
4280
+ until: "\u0E08\u0E19\u0E16\u0E36\u0E07"
4266
4281
  },
4267
4282
  modifiers: {
4268
4283
  to: "\u0E44\u0E1B\u0E22\u0E31\u0E07",
@@ -4310,14 +4325,14 @@ var thaiDictionary = {
4310
4325
  is: "\u0E40\u0E1B\u0E47\u0E19",
4311
4326
  exists: "\u0E21\u0E35\u0E2D\u0E22\u0E39\u0E48",
4312
4327
  has: "\u0E21\u0E35",
4313
- // possession verb (context-based)
4314
4328
  have: "\u0E21\u0E35",
4315
- // same for first/third person
4316
4329
  empty: "\u0E27\u0E48\u0E32\u0E07",
4317
4330
  true: "\u0E08\u0E23\u0E34\u0E07",
4318
4331
  false: "\u0E40\u0E17\u0E47\u0E08",
4319
4332
  null: "\u0E27\u0E48\u0E32\u0E07",
4320
- undefined: "\u0E44\u0E21\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14"
4333
+ undefined: "\u0E44\u0E21\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14",
4334
+ end: "\u0E08\u0E1A",
4335
+ then: "\u0E41\u0E25\u0E49\u0E27"
4321
4336
  },
4322
4337
  temporal: {
4323
4338
  now: "\u0E15\u0E2D\u0E19\u0E19\u0E35\u0E49",
@@ -4338,7 +4353,9 @@ var thaiDictionary = {
4338
4353
  result: "\u0E1C\u0E25\u0E25\u0E31\u0E1E\u0E18\u0E4C",
4339
4354
  event: "\u0E40\u0E2B\u0E15\u0E38\u0E01\u0E32\u0E23\u0E13\u0E4C",
4340
4355
  target: "\u0E40\u0E1B\u0E49\u0E32\u0E2B\u0E21\u0E32\u0E22",
4341
- body: "\u0E1A\u0E2D\u0E14\u0E35\u0E49"
4356
+ body: "\u0E1A\u0E2D\u0E14\u0E35\u0E49",
4357
+ you: "\u0E04\u0E38\u0E13",
4358
+ your: "\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13"
4342
4359
  },
4343
4360
  attributes: {
4344
4361
  class: "\u0E04\u0E25\u0E32\u0E2A",