@aidc-toolkit/gs1 0.9.6-beta → 0.9.8-beta
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.cjs +2398 -214
- package/dist/index.d.cts +659 -17
- package/dist/index.d.ts +659 -17
- package/dist/index.js +2370 -190
- package/package.json +7 -6
- package/src/check.ts +24 -9
- package/src/idkey.ts +72 -121
- package/src/index.ts +2 -1
- package/src/locale/en/{locale_strings.ts → locale-strings.ts} +2 -0
- package/src/locale/fr/{locale_strings.ts → locale-strings.ts} +2 -0
- package/src/locale/i18n.ts +39 -6
- package/src/locale/i18next.d.ts +5 -3
- package/test/check.test.ts +9 -8
- package/test/idkey.test.ts +30 -29
- /package/src/{character_set.ts → character-set.ts} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,647 @@
|
|
|
1
|
+
import { $NormalizeIntoArray, $Dictionary } from './typescript/helpers.js';
|
|
2
|
+
import { DefaultNamespace, FlatNamespace, InitOptions, Namespace, FormatFunction, Resource, TOptions, InterpolationOptions, ResourceLanguage, ResourceKey } from './typescript/options.js';
|
|
3
|
+
import { TFunction, KeyPrefix } from './typescript/t.js';
|
|
4
|
+
import { I18NEnvironment } from '@aidc-toolkit/core';
|
|
1
5
|
import { CharacterSetCreator, StringValidation, StringValidator, CharacterSetValidation, Exclusion, TransformerInput, TransformerOutput } from '@aidc-toolkit/utility';
|
|
2
6
|
import * as ts_mixer_dist_types_types_js from 'ts-mixer/dist/types/types.js';
|
|
3
7
|
|
|
8
|
+
// Internal Helpers
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
interface Interpolator {
|
|
12
|
+
init(options: InterpolationOptions, reset: boolean): undefined;
|
|
13
|
+
reset(): undefined;
|
|
14
|
+
resetRegExp(): undefined;
|
|
15
|
+
interpolate(str: string, data: object, lng: string, options: InterpolationOptions): string;
|
|
16
|
+
nest(str: string, fc: (...args: any[]) => any, options: InterpolationOptions): string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
declare class ResourceStore {
|
|
20
|
+
constructor(data: Resource, options: InitOptions);
|
|
21
|
+
|
|
22
|
+
public data: Resource;
|
|
23
|
+
|
|
24
|
+
public options: InitOptions;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Gets fired when resources got added or removed
|
|
28
|
+
*/
|
|
29
|
+
on(event: 'added' | 'removed', callback: (lng: string, ns: string) => void): void;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Remove event listener
|
|
33
|
+
* removes all callback when callback not specified
|
|
34
|
+
*/
|
|
35
|
+
off(event: 'added' | 'removed', callback?: (lng: string, ns: string) => void): void;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
interface Formatter {
|
|
39
|
+
init(services: Services, i18nextOptions: InitOptions): void;
|
|
40
|
+
add(name: string, fc: (value: any, lng: string | undefined, options: any) => string): void;
|
|
41
|
+
addCached(
|
|
42
|
+
name: string,
|
|
43
|
+
fc: (lng: string | undefined, options: any) => (value: any) => string,
|
|
44
|
+
): void;
|
|
45
|
+
format: FormatFunction;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
interface Services {
|
|
49
|
+
backendConnector: any;
|
|
50
|
+
i18nFormat: any;
|
|
51
|
+
interpolator: Interpolator;
|
|
52
|
+
languageDetector: any;
|
|
53
|
+
languageUtils: any;
|
|
54
|
+
logger: any;
|
|
55
|
+
pluralResolver: any;
|
|
56
|
+
resourceStore: ResourceStore;
|
|
57
|
+
formatter?: Formatter;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
type ModuleType =
|
|
61
|
+
| 'backend'
|
|
62
|
+
| 'logger'
|
|
63
|
+
| 'languageDetector'
|
|
64
|
+
| 'postProcessor'
|
|
65
|
+
| 'i18nFormat'
|
|
66
|
+
| 'formatter'
|
|
67
|
+
| '3rdParty';
|
|
68
|
+
|
|
69
|
+
interface Module {
|
|
70
|
+
type: ModuleType;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
type CallbackError = Error | string | null | undefined;
|
|
74
|
+
type ReadCallback = (
|
|
75
|
+
err: CallbackError,
|
|
76
|
+
data: ResourceKey | boolean | null | undefined,
|
|
77
|
+
) => void;
|
|
78
|
+
type MultiReadCallback = (err: CallbackError, data: Resource | null | undefined) => void;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Used to load data for i18next.
|
|
82
|
+
* Can be provided as a singleton or as a prototype constructor (preferred for supporting multiple instances of i18next).
|
|
83
|
+
* For singleton set property `type` to `'backend'` For a prototype constructor set static property.
|
|
84
|
+
*/
|
|
85
|
+
interface BackendModule<Options = object> extends Module {
|
|
86
|
+
type: 'backend';
|
|
87
|
+
init(services: Services, backendOptions: Options, i18nextOptions: InitOptions): void;
|
|
88
|
+
read(language: string, namespace: string, callback: ReadCallback): void;
|
|
89
|
+
/** Save the missing translation */
|
|
90
|
+
create?(
|
|
91
|
+
languages: readonly string[],
|
|
92
|
+
namespace: string,
|
|
93
|
+
key: string,
|
|
94
|
+
fallbackValue: string,
|
|
95
|
+
): void;
|
|
96
|
+
/** Load multiple languages and namespaces. For backends supporting multiple resources loading */
|
|
97
|
+
readMulti?(
|
|
98
|
+
languages: readonly string[],
|
|
99
|
+
namespaces: readonly string[],
|
|
100
|
+
callback: MultiReadCallback,
|
|
101
|
+
): void;
|
|
102
|
+
/** Store the translation. For backends acting as cache layer */
|
|
103
|
+
save?(language: string, namespace: string, data: ResourceLanguage): void;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Used to detect language in user land.
|
|
108
|
+
* Can be provided as a singleton or as a prototype constructor (preferred for supporting multiple instances of i18next).
|
|
109
|
+
* For singleton set property `type` to `'languageDetector'` For a prototype constructor set static property.
|
|
110
|
+
*/
|
|
111
|
+
interface LanguageDetectorModule extends Module {
|
|
112
|
+
type: 'languageDetector';
|
|
113
|
+
init?(services: Services, detectorOptions: object, i18nextOptions: InitOptions): void;
|
|
114
|
+
/** Must return detected language */
|
|
115
|
+
detect(): string | readonly string[] | undefined;
|
|
116
|
+
cacheUserLanguage?(lng: string): void;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Used to detect language in user land.
|
|
121
|
+
* Can be provided as a singleton or as a prototype constructor (preferred for supporting multiple instances of i18next).
|
|
122
|
+
* For singleton set property `type` to `'languageDetector'` For a prototype constructor set static property.
|
|
123
|
+
*/
|
|
124
|
+
interface LanguageDetectorAsyncModule extends Module {
|
|
125
|
+
type: 'languageDetector';
|
|
126
|
+
/** Set to true to enable async detection */
|
|
127
|
+
async: true;
|
|
128
|
+
init?(services: Services, detectorOptions: object, i18nextOptions: InitOptions): void;
|
|
129
|
+
/** Must call callback passing detected language or return a Promise */
|
|
130
|
+
detect(
|
|
131
|
+
callback: (lng: string | readonly string[] | undefined) => void | undefined,
|
|
132
|
+
): void | Promise<string | readonly string[] | undefined>;
|
|
133
|
+
cacheUserLanguage?(lng: string): void | Promise<void>;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Override the built-in console logger.
|
|
138
|
+
* Do not need to be a prototype function.
|
|
139
|
+
*/
|
|
140
|
+
interface LoggerModule extends Module {
|
|
141
|
+
type: 'logger';
|
|
142
|
+
log(...args: any[]): void;
|
|
143
|
+
warn(...args: any[]): void;
|
|
144
|
+
error(...args: any[]): void;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
interface I18nFormatModule extends Module {
|
|
148
|
+
type: 'i18nFormat';
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
interface FormatterModule extends Module, Formatter {
|
|
152
|
+
type: 'formatter';
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
interface ThirdPartyModule extends Module {
|
|
156
|
+
type: '3rdParty';
|
|
157
|
+
init(i18next: i18n): void;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
interface Modules {
|
|
161
|
+
backend?: BackendModule;
|
|
162
|
+
logger?: LoggerModule;
|
|
163
|
+
languageDetector?: LanguageDetectorModule | LanguageDetectorAsyncModule;
|
|
164
|
+
i18nFormat?: I18nFormatModule;
|
|
165
|
+
formatter?: FormatterModule;
|
|
166
|
+
external: ThirdPartyModule[];
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
// helper to identify class https://stackoverflow.com/a/45983481/2363935
|
|
170
|
+
interface Newable<T> {
|
|
171
|
+
new (...args: any[]): T;
|
|
172
|
+
}
|
|
173
|
+
interface NewableModule<T extends Module> extends Newable<T> {
|
|
174
|
+
type: T['type'];
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
type Callback = (error: any, t: TFunction) => void;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Uses similar args as the t function and returns true if a key exists.
|
|
181
|
+
*/
|
|
182
|
+
interface ExistsFunction<
|
|
183
|
+
TKeys extends string = string,
|
|
184
|
+
TInterpolationMap extends object = $Dictionary,
|
|
185
|
+
> {
|
|
186
|
+
(key: TKeys | TKeys[], options?: TOptions<TInterpolationMap>): boolean;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
interface CloneOptions extends InitOptions {
|
|
190
|
+
/**
|
|
191
|
+
* Will create a new instance of the resource store and import the existing translation resources.
|
|
192
|
+
* This way it will not shared the resource store instance.
|
|
193
|
+
* @default false
|
|
194
|
+
*/
|
|
195
|
+
forkResourceStore?: boolean;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
interface CustomInstanceExtensions {}
|
|
199
|
+
|
|
200
|
+
// Used just here to exclude `DefaultNamespace` which can be both string or array from `FlatNamespace`
|
|
201
|
+
// in TFunction declaration below.
|
|
202
|
+
// Due to this only very special usage I'm not moving this inside helpers.
|
|
203
|
+
type InferArrayValuesElseReturnType<T> = T extends (infer A)[] ? A : T;
|
|
204
|
+
|
|
205
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
206
|
+
interface i18n extends CustomInstanceExtensions {
|
|
207
|
+
// Expose parameterized t in the i18next interface hierarchy
|
|
208
|
+
t: TFunction<
|
|
209
|
+
[
|
|
210
|
+
...$NormalizeIntoArray<DefaultNamespace>,
|
|
211
|
+
...Exclude<FlatNamespace, InferArrayValuesElseReturnType<DefaultNamespace>>[],
|
|
212
|
+
]
|
|
213
|
+
>;
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* The default of the i18next module is an i18next instance ready to be initialized by calling init.
|
|
217
|
+
* You can create additional instances using the createInstance function.
|
|
218
|
+
*
|
|
219
|
+
* @param options - Initial options.
|
|
220
|
+
* @param callback - will be called after all translations were loaded or with an error when failed (in case of using a backend).
|
|
221
|
+
*/
|
|
222
|
+
init(callback?: Callback): Promise<TFunction>;
|
|
223
|
+
init<T>(options: InitOptions<T>, callback?: Callback): Promise<TFunction>;
|
|
224
|
+
|
|
225
|
+
loadResources(callback?: (err: any) => void): void;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* The use function is there to load additional plugins to i18next.
|
|
229
|
+
* For available module see the plugins page and don't forget to read the documentation of the plugin.
|
|
230
|
+
*
|
|
231
|
+
* @param module Accepts a class or object
|
|
232
|
+
*/
|
|
233
|
+
use<T extends Module>(module: T | NewableModule<T> | Newable<T>): this;
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* List of modules used
|
|
237
|
+
*/
|
|
238
|
+
modules: Modules;
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* Internal container for all used plugins and implementation details like languageUtils, pluralResolvers, etc.
|
|
242
|
+
*/
|
|
243
|
+
services: Services;
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* Internal container for translation resources
|
|
247
|
+
*/
|
|
248
|
+
store: ResourceStore;
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* Uses similar args as the t function and returns true if a key exists.
|
|
252
|
+
*/
|
|
253
|
+
exists: ExistsFunction;
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* Returns a resource data by language.
|
|
257
|
+
*/
|
|
258
|
+
getDataByLanguage(lng: string): { [key: string]: { [key: string]: string } } | undefined;
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* Returns a t function that defaults to given language or namespace.
|
|
262
|
+
* Both params could be arrays of languages or namespaces and will be treated as fallbacks in that case.
|
|
263
|
+
* On the returned function you can like in the t function override the languages or namespaces by passing them in options or by prepending namespace.
|
|
264
|
+
*
|
|
265
|
+
* Accepts optional keyPrefix that will be automatically applied to returned t function.
|
|
266
|
+
*/
|
|
267
|
+
getFixedT<
|
|
268
|
+
Ns extends Namespace | null = DefaultNamespace,
|
|
269
|
+
TKPrefix extends KeyPrefix<ActualNs> = undefined,
|
|
270
|
+
ActualNs extends Namespace = Ns extends null ? DefaultNamespace : Ns,
|
|
271
|
+
>(
|
|
272
|
+
...args:
|
|
273
|
+
| [lng: string | readonly string[], ns?: Ns, keyPrefix?: TKPrefix]
|
|
274
|
+
| [lng: null, ns: Ns, keyPrefix?: TKPrefix]
|
|
275
|
+
): TFunction<ActualNs, TKPrefix>;
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* Changes the language. The callback will be called as soon translations were loaded or an error occurs while loading.
|
|
279
|
+
* HINT: For easy testing - setting lng to 'cimode' will set t function to always return the key.
|
|
280
|
+
*/
|
|
281
|
+
changeLanguage(lng?: string, callback?: Callback): Promise<TFunction>;
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* Is set to the current detected or set language.
|
|
285
|
+
* If you need the primary used language depending on your configuration (supportedLngs, load) you will prefer using i18next.languages[0].
|
|
286
|
+
*/
|
|
287
|
+
language: string;
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* Is set to an array of language-codes that will be used it order to lookup the translation value.
|
|
291
|
+
*/
|
|
292
|
+
languages: readonly string[];
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* Is set to the current resolved language.
|
|
296
|
+
* It can be used as primary used language, for example in a language switcher.
|
|
297
|
+
*/
|
|
298
|
+
resolvedLanguage?: string;
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* Checks if namespace has loaded yet.
|
|
302
|
+
* i.e. used by react-i18next
|
|
303
|
+
*/
|
|
304
|
+
hasLoadedNamespace(
|
|
305
|
+
ns: string | readonly string[],
|
|
306
|
+
options?: {
|
|
307
|
+
lng?: string | readonly string[];
|
|
308
|
+
fallbackLng?: InitOptions['fallbackLng'];
|
|
309
|
+
/**
|
|
310
|
+
* if `undefined` is returned default checks are performed.
|
|
311
|
+
*/
|
|
312
|
+
precheck?: (
|
|
313
|
+
i18n: i18n,
|
|
314
|
+
/**
|
|
315
|
+
* Check if the language namespace provided are not in loading status:
|
|
316
|
+
* returns `true` if load is completed successfully or with an error.
|
|
317
|
+
*/
|
|
318
|
+
loadNotPending: (
|
|
319
|
+
lng: string | readonly string[],
|
|
320
|
+
ns: string | readonly string[],
|
|
321
|
+
) => boolean,
|
|
322
|
+
) => boolean | undefined;
|
|
323
|
+
},
|
|
324
|
+
): boolean;
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* Loads additional namespaces not defined in init options.
|
|
328
|
+
*/
|
|
329
|
+
loadNamespaces(ns: string | readonly string[], callback?: Callback): Promise<void>;
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* Loads additional languages not defined in init options (preload).
|
|
333
|
+
*/
|
|
334
|
+
loadLanguages(lngs: string | readonly string[], callback?: Callback): Promise<void>;
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* Reloads resources on given state. Optionally you can pass an array of languages and namespaces as params if you don't want to reload all.
|
|
338
|
+
*/
|
|
339
|
+
reloadResources(
|
|
340
|
+
lngs?: string | readonly string[],
|
|
341
|
+
ns?: string | readonly string[],
|
|
342
|
+
callback?: () => void,
|
|
343
|
+
): Promise<void>;
|
|
344
|
+
reloadResources(lngs: null, ns: string | readonly string[], callback?: () => void): Promise<void>;
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* Changes the default namespace.
|
|
348
|
+
*/
|
|
349
|
+
setDefaultNamespace(ns: string | readonly string[]): void;
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* Returns rtl or ltr depending on languages read direction.
|
|
353
|
+
*/
|
|
354
|
+
dir(lng?: string): 'ltr' | 'rtl';
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* Exposes interpolation.format function added on init.
|
|
358
|
+
*/
|
|
359
|
+
format: FormatFunction;
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* Will return a new i18next instance.
|
|
363
|
+
* Please read the options page for details on configuration options.
|
|
364
|
+
* Providing a callback will automatically call init.
|
|
365
|
+
* The callback will be called after all translations were loaded or with an error when failed (in case of using a backend).
|
|
366
|
+
*/
|
|
367
|
+
createInstance(options?: InitOptions, callback?: Callback): i18n;
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* Creates a clone of the current instance. Shares store, plugins and initial configuration.
|
|
371
|
+
* Can be used to create an instance sharing storage but being independent on set language or namespaces.
|
|
372
|
+
*/
|
|
373
|
+
cloneInstance(options?: CloneOptions, callback?: Callback): i18n;
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* Gets fired after initialization.
|
|
377
|
+
*/
|
|
378
|
+
on(event: 'initialized', callback: (options: InitOptions) => void): void;
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* Gets fired on loaded resources.
|
|
382
|
+
*/
|
|
383
|
+
on(
|
|
384
|
+
event: 'loaded',
|
|
385
|
+
callback: (loaded: { [language: string]: { [namespace: string]: boolean } }) => void,
|
|
386
|
+
): void;
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* Gets fired if loading resources failed.
|
|
390
|
+
*/
|
|
391
|
+
on(event: 'failedLoading', callback: (lng: string, ns: string, msg: string) => void): void;
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* Gets fired on accessing a key not existing.
|
|
395
|
+
*/
|
|
396
|
+
on(
|
|
397
|
+
event: 'missingKey',
|
|
398
|
+
callback: (lngs: readonly string[], namespace: string, key: string, res: string) => void,
|
|
399
|
+
): void;
|
|
400
|
+
|
|
401
|
+
/**
|
|
402
|
+
* Gets fired when resources got added or removed.
|
|
403
|
+
*/
|
|
404
|
+
on(event: 'added' | 'removed', callback: (lng: string, ns: string) => void): void;
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* Gets fired when changeLanguage got called.
|
|
408
|
+
*/
|
|
409
|
+
on(event: 'languageChanged', callback: (lng: string) => void): void;
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* Event listener
|
|
413
|
+
*/
|
|
414
|
+
on(event: string, listener: (...args: any[]) => void): void;
|
|
415
|
+
|
|
416
|
+
/**
|
|
417
|
+
* Remove event listener
|
|
418
|
+
* removes all callback when callback not specified
|
|
419
|
+
*/
|
|
420
|
+
off(event: string, listener?: (...args: any[]) => void): void;
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* Gets one value by given key.
|
|
424
|
+
*/
|
|
425
|
+
getResource(
|
|
426
|
+
lng: string,
|
|
427
|
+
ns: string,
|
|
428
|
+
key: string,
|
|
429
|
+
options?: Pick<InitOptions, 'keySeparator' | 'ignoreJSONStructure'>,
|
|
430
|
+
): any;
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* Adds one key/value.
|
|
434
|
+
*/
|
|
435
|
+
addResource(
|
|
436
|
+
lng: string,
|
|
437
|
+
ns: string,
|
|
438
|
+
key: string,
|
|
439
|
+
value: string,
|
|
440
|
+
options?: { keySeparator?: string; silent?: boolean },
|
|
441
|
+
): i18n;
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* Adds multiple key/values.
|
|
445
|
+
*/
|
|
446
|
+
addResources(lng: string, ns: string, resources: any): i18n;
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
* Adds a complete bundle.
|
|
450
|
+
* Setting deep param to true will extend existing translations in that file.
|
|
451
|
+
* Setting overwrite to true it will overwrite existing translations in that file.
|
|
452
|
+
*/
|
|
453
|
+
addResourceBundle(
|
|
454
|
+
lng: string,
|
|
455
|
+
ns: string,
|
|
456
|
+
resources: any,
|
|
457
|
+
deep?: boolean,
|
|
458
|
+
overwrite?: boolean,
|
|
459
|
+
): i18n;
|
|
460
|
+
|
|
461
|
+
/**
|
|
462
|
+
* Checks if a resource bundle exists.
|
|
463
|
+
*/
|
|
464
|
+
hasResourceBundle(lng: string, ns: string): boolean;
|
|
465
|
+
|
|
466
|
+
/**
|
|
467
|
+
* Returns a resource bundle.
|
|
468
|
+
*/
|
|
469
|
+
getResourceBundle(lng: string, ns: string): any;
|
|
470
|
+
|
|
471
|
+
/**
|
|
472
|
+
* Removes an existing bundle.
|
|
473
|
+
*/
|
|
474
|
+
removeResourceBundle(lng: string, ns: string): i18n;
|
|
475
|
+
|
|
476
|
+
/**
|
|
477
|
+
* Current options
|
|
478
|
+
*/
|
|
479
|
+
options: InitOptions;
|
|
480
|
+
|
|
481
|
+
/**
|
|
482
|
+
* Is initialized
|
|
483
|
+
*/
|
|
484
|
+
isInitialized: boolean;
|
|
485
|
+
|
|
486
|
+
/**
|
|
487
|
+
* Is initializing
|
|
488
|
+
*/
|
|
489
|
+
isInitializing: boolean;
|
|
490
|
+
|
|
491
|
+
/**
|
|
492
|
+
* Store was initialized
|
|
493
|
+
*/
|
|
494
|
+
initializedStoreOnce: boolean;
|
|
495
|
+
|
|
496
|
+
/**
|
|
497
|
+
* Language was initialized
|
|
498
|
+
*/
|
|
499
|
+
initializedLanguageOnce: boolean;
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* Emit event
|
|
503
|
+
*/
|
|
504
|
+
emit(eventName: string, ...args: any[]): void;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
declare const localeStrings: {
|
|
508
|
+
readonly Check: {
|
|
509
|
+
readonly lengthOfStringForPriceOrWeightMustBeExactly: "Length {{length}} of string for price or weight sum must be exactly {{exactLength}}";
|
|
510
|
+
readonly priceOrWeightComponent: "price or weight";
|
|
511
|
+
readonly lengthOfStringForCheckCharacterPairMustBeLessThanOrEqualTo: "Length {{length}} of string for check character pair must be less than or equal to {{maximumLength}}";
|
|
512
|
+
};
|
|
513
|
+
readonly IdentificationKey: {
|
|
514
|
+
readonly identificationKeyTypeLength: "{{identificationKeyType}} must be {{length}} digits long";
|
|
515
|
+
readonly invalidCheckDigit: "Invalid check digit";
|
|
516
|
+
readonly invalidGTINLength: "GTIN must be 13, 12, 8, or 14 digits long";
|
|
517
|
+
readonly invalidGTIN14Length: "GTIN must be 14 digits long";
|
|
518
|
+
readonly invalidZeroSuppressedGTIN12: "Invalid zero-suppressed GTIN-12";
|
|
519
|
+
readonly invalidZeroSuppressibleGTIN12: "GTIN-12 not zero-suppressible";
|
|
520
|
+
readonly invalidZeroSuppressedGTIN12AsGTIN13: "Invalid zero-suppressed GTIN-12 as GTIN-13";
|
|
521
|
+
readonly invalidZeroSuppressedGTIN12AsGTIN14: "Invalid zero-suppressed GTIN-12 as GTIN-14";
|
|
522
|
+
readonly invalidGTIN13AtRetail: "GTIN-13 at retail consumer trade item level can't start with zero";
|
|
523
|
+
readonly invalidGTINAtRetail: "GTIN not supported at retail consumer trade item level";
|
|
524
|
+
readonly invalidGTINAtOtherThanRetail: "GTIN not supported at other than retail consumer trade item level";
|
|
525
|
+
readonly indicatorDigit: "indicator digit";
|
|
526
|
+
readonly serialComponent: "serial component";
|
|
527
|
+
readonly reference: "reference";
|
|
528
|
+
readonly referenceCantBeAllNumeric: "Reference can't be all-numeric";
|
|
529
|
+
readonly invalidCheckCharacterPair: "Invalid check character pair";
|
|
530
|
+
};
|
|
531
|
+
readonly Prefix: {
|
|
532
|
+
readonly gs1CompanyPrefix: "GS1 Company Prefix";
|
|
533
|
+
readonly upcCompanyPrefix: "U.P.C. Company Prefix";
|
|
534
|
+
readonly gs18Prefix: "GS1-8 Prefix";
|
|
535
|
+
readonly gs1CompanyPrefixCantStartWith0: "GS1 Company Prefix can't start with \"0\"";
|
|
536
|
+
readonly gs1CompanyPrefixCantStartWith00000: "GS1 Company Prefix can't start with \"00000\"";
|
|
537
|
+
readonly gs1CompanyPrefixCantStartWith000000: "GS1 Company Prefix can't start with \"000000\"";
|
|
538
|
+
readonly upcCompanyPrefixCantStartWith0000: "U.P.C. Company Prefix can't start with \"0000\"";
|
|
539
|
+
readonly gs18PrefixCantStartWith0: "GS1-8 Prefix can't start with \"0\"";
|
|
540
|
+
readonly identificationKeyTypeNotSupportedByGS18Prefix: "{{identificationKeyType}} not supported by GS1-8 Prefix";
|
|
541
|
+
};
|
|
542
|
+
};
|
|
543
|
+
|
|
544
|
+
declare const gs1NS = "aidct_gs1";
|
|
545
|
+
/**
|
|
546
|
+
* Locale strings type is extracted from the English locale strings object.
|
|
547
|
+
*/
|
|
548
|
+
type GS1LocaleStrings = typeof localeStrings;
|
|
549
|
+
/**
|
|
550
|
+
* GS1 resources.
|
|
551
|
+
*/
|
|
552
|
+
declare const gs1Resources: {
|
|
553
|
+
en: {
|
|
554
|
+
aidct_gs1: {
|
|
555
|
+
readonly Check: {
|
|
556
|
+
readonly lengthOfStringForPriceOrWeightMustBeExactly: "Length {{length}} of string for price or weight sum must be exactly {{exactLength}}";
|
|
557
|
+
readonly priceOrWeightComponent: "price or weight";
|
|
558
|
+
readonly lengthOfStringForCheckCharacterPairMustBeLessThanOrEqualTo: "Length {{length}} of string for check character pair must be less than or equal to {{maximumLength}}";
|
|
559
|
+
};
|
|
560
|
+
readonly IdentificationKey: {
|
|
561
|
+
readonly identificationKeyTypeLength: "{{identificationKeyType}} must be {{length}} digits long";
|
|
562
|
+
readonly invalidCheckDigit: "Invalid check digit";
|
|
563
|
+
readonly invalidGTINLength: "GTIN must be 13, 12, 8, or 14 digits long";
|
|
564
|
+
readonly invalidGTIN14Length: "GTIN must be 14 digits long";
|
|
565
|
+
readonly invalidZeroSuppressedGTIN12: "Invalid zero-suppressed GTIN-12";
|
|
566
|
+
readonly invalidZeroSuppressibleGTIN12: "GTIN-12 not zero-suppressible";
|
|
567
|
+
readonly invalidZeroSuppressedGTIN12AsGTIN13: "Invalid zero-suppressed GTIN-12 as GTIN-13";
|
|
568
|
+
readonly invalidZeroSuppressedGTIN12AsGTIN14: "Invalid zero-suppressed GTIN-12 as GTIN-14";
|
|
569
|
+
readonly invalidGTIN13AtRetail: "GTIN-13 at retail consumer trade item level can't start with zero";
|
|
570
|
+
readonly invalidGTINAtRetail: "GTIN not supported at retail consumer trade item level";
|
|
571
|
+
readonly invalidGTINAtOtherThanRetail: "GTIN not supported at other than retail consumer trade item level";
|
|
572
|
+
readonly indicatorDigit: "indicator digit";
|
|
573
|
+
readonly serialComponent: "serial component";
|
|
574
|
+
readonly reference: "reference";
|
|
575
|
+
readonly referenceCantBeAllNumeric: "Reference can't be all-numeric";
|
|
576
|
+
readonly invalidCheckCharacterPair: "Invalid check character pair";
|
|
577
|
+
};
|
|
578
|
+
readonly Prefix: {
|
|
579
|
+
readonly gs1CompanyPrefix: "GS1 Company Prefix";
|
|
580
|
+
readonly upcCompanyPrefix: "U.P.C. Company Prefix";
|
|
581
|
+
readonly gs18Prefix: "GS1-8 Prefix";
|
|
582
|
+
readonly gs1CompanyPrefixCantStartWith0: "GS1 Company Prefix can't start with \"0\"";
|
|
583
|
+
readonly gs1CompanyPrefixCantStartWith00000: "GS1 Company Prefix can't start with \"00000\"";
|
|
584
|
+
readonly gs1CompanyPrefixCantStartWith000000: "GS1 Company Prefix can't start with \"000000\"";
|
|
585
|
+
readonly upcCompanyPrefixCantStartWith0000: "U.P.C. Company Prefix can't start with \"0000\"";
|
|
586
|
+
readonly gs18PrefixCantStartWith0: "GS1-8 Prefix can't start with \"0\"";
|
|
587
|
+
readonly identificationKeyTypeNotSupportedByGS18Prefix: "{{identificationKeyType}} not supported by GS1-8 Prefix";
|
|
588
|
+
};
|
|
589
|
+
};
|
|
590
|
+
};
|
|
591
|
+
fr: {
|
|
592
|
+
aidct_gs1: {
|
|
593
|
+
readonly Check: {
|
|
594
|
+
readonly lengthOfStringForPriceOrWeightMustBeExactly: "La longueur {{longueur}} de la chaîne pour le prix ou la somme du poids doit être exactement {{exactLength}}";
|
|
595
|
+
readonly priceOrWeightComponent: "prix ou poids";
|
|
596
|
+
readonly lengthOfStringForCheckCharacterPairMustBeLessThanOrEqualTo: "La longueur {{length}} de la chaîne pour la paire de caractères de vérification doit être inférieure ou égale à {{maximum Length}}";
|
|
597
|
+
};
|
|
598
|
+
readonly IdentificationKey: {
|
|
599
|
+
readonly identificationKeyTypeLength: "{{identificationKeyType}} doit comporter {{length}} chiffres";
|
|
600
|
+
readonly invalidCheckDigit: "Chiffre de contrôle non valide";
|
|
601
|
+
readonly invalidGTINLength: "Le GTIN doit comporter 13, 12, 8 ou 14 chiffres";
|
|
602
|
+
readonly invalidGTIN14Length: "Le GTIN doit comporter 14 chiffres";
|
|
603
|
+
readonly invalidZeroSuppressedGTIN12: "Code GTIN-12 non valide avec zéro supprimé";
|
|
604
|
+
readonly invalidZeroSuppressibleGTIN12: "Le GTIN-12 ne peut pas être supprimé par zéro";
|
|
605
|
+
readonly invalidZeroSuppressedGTIN12AsGTIN13: "GTIN-12 non valide avec zéro supprimé en tant que GTIN-13";
|
|
606
|
+
readonly invalidZeroSuppressedGTIN12AsGTIN14: "GTIN-12 non valide avec zéro supprimé en tant que GTIN-14";
|
|
607
|
+
readonly invalidGTIN13AtRetail: "Le GTIN-13 au niveau des articles de consommation au détail ne peut pas commencer par zéro";
|
|
608
|
+
readonly invalidGTINAtRetail: "Le GTIN n'est pas pris en charge au niveau des articles de consommation au détail";
|
|
609
|
+
readonly invalidGTINAtOtherThanRetail: "Le GTIN n'est pas pris en charge à d'autres niveaux que ceux des articles de consommation au détail";
|
|
610
|
+
readonly indicatorDigit: "chiffre indicateur";
|
|
611
|
+
readonly serialComponent: "composant série";
|
|
612
|
+
readonly reference: "référence";
|
|
613
|
+
readonly referenceCantBeAllNumeric: "La référence ne peut pas être entièrement numérique";
|
|
614
|
+
readonly invalidCheckCharacterPair: "Paire de caractères de contrôle non valide";
|
|
615
|
+
};
|
|
616
|
+
readonly Prefix: {
|
|
617
|
+
readonly gs1CompanyPrefix: "Préfixe de l'entreprise GS1";
|
|
618
|
+
readonly upcCompanyPrefix: "Préfixe de l'entreprise U.P.C.";
|
|
619
|
+
readonly gs18Prefix: "Préfixe GS1-8";
|
|
620
|
+
readonly gs1CompanyPrefixCantStartWith0: "Le préfixe de l'entreprise GS1 ne peut pas commencer par \"0\"";
|
|
621
|
+
readonly gs1CompanyPrefixCantStartWith00000: "Le préfixe de l'entreprise GS1 ne peut pas commencer par \"00000\"";
|
|
622
|
+
readonly gs1CompanyPrefixCantStartWith000000: "Le préfixe de l'entreprise GS1 ne peut pas commencer par \"000000\"";
|
|
623
|
+
readonly upcCompanyPrefixCantStartWith0000: "Le préfixe de l'entreprise U.P.C. ne peut pas commencer par \"0000\"";
|
|
624
|
+
readonly gs18PrefixCantStartWith0: "Le préfixe GS1-8 ne peut pas commencer par \"0\"";
|
|
625
|
+
readonly identificationKeyTypeNotSupportedByGS18Prefix: "{{identificationKeyType}} non pris en charge par le préfixe GS1-8";
|
|
626
|
+
};
|
|
627
|
+
};
|
|
628
|
+
};
|
|
629
|
+
};
|
|
630
|
+
declare const i18nextGS1: i18n;
|
|
631
|
+
/**
|
|
632
|
+
* Initialize internationalization.
|
|
633
|
+
*
|
|
634
|
+
* @param environment
|
|
635
|
+
* Environment in which the application is running.
|
|
636
|
+
*
|
|
637
|
+
* @param debug
|
|
638
|
+
* Debug setting.
|
|
639
|
+
*
|
|
640
|
+
* @returns
|
|
641
|
+
* Void promise.
|
|
642
|
+
*/
|
|
643
|
+
declare function i18nGS1Init(environment: I18NEnvironment, debug?: boolean): Promise<void>;
|
|
644
|
+
|
|
4
645
|
/**
|
|
5
646
|
* GS1 AI encodable character set 82 creator as defined in section 7.11 of the {@link https://www.gs1.org/genspecs | GS1
|
|
6
647
|
* General Specifications}. Supports {@linkcode Exclusion.AllNumeric}.
|
|
@@ -165,7 +806,7 @@ declare enum PrefixType {
|
|
|
165
806
|
* Character set supported by the reference portion of an identification key or the serial component of a numeric
|
|
166
807
|
* identification key.
|
|
167
808
|
*/
|
|
168
|
-
declare enum
|
|
809
|
+
declare enum ContentCharacterSet {
|
|
169
810
|
/**
|
|
170
811
|
* Numeric.
|
|
171
812
|
*/
|
|
@@ -212,7 +853,7 @@ interface IdentificationKeyValidator<V extends IdentificationKeyValidation = Ide
|
|
|
212
853
|
/**
|
|
213
854
|
* Get the reference character set.
|
|
214
855
|
*/
|
|
215
|
-
get referenceCharacterSet():
|
|
856
|
+
get referenceCharacterSet(): ContentCharacterSet;
|
|
216
857
|
/**
|
|
217
858
|
* Get the reference validator.
|
|
218
859
|
*/
|
|
@@ -262,7 +903,7 @@ declare abstract class AbstractIdentificationKeyValidator<V extends Identificati
|
|
|
262
903
|
* @returns
|
|
263
904
|
* Character set creator.
|
|
264
905
|
*/
|
|
265
|
-
protected static creatorFor(characterSet:
|
|
906
|
+
protected static creatorFor(characterSet: ContentCharacterSet): CharacterSetCreator;
|
|
266
907
|
/**
|
|
267
908
|
* Constructor.
|
|
268
909
|
*
|
|
@@ -278,7 +919,7 @@ declare abstract class AbstractIdentificationKeyValidator<V extends Identificati
|
|
|
278
919
|
* @param referenceCharacterSet
|
|
279
920
|
* Reference character set.
|
|
280
921
|
*/
|
|
281
|
-
protected constructor(identificationKeyType: IdentificationKeyType, prefixType: PrefixType, length: number, referenceCharacterSet:
|
|
922
|
+
protected constructor(identificationKeyType: IdentificationKeyType, prefixType: PrefixType, length: number, referenceCharacterSet: ContentCharacterSet);
|
|
282
923
|
/**
|
|
283
924
|
* @inheritDoc
|
|
284
925
|
*/
|
|
@@ -294,7 +935,7 @@ declare abstract class AbstractIdentificationKeyValidator<V extends Identificati
|
|
|
294
935
|
/**
|
|
295
936
|
* @inheritDoc
|
|
296
937
|
*/
|
|
297
|
-
get referenceCharacterSet():
|
|
938
|
+
get referenceCharacterSet(): ContentCharacterSet;
|
|
298
939
|
/**
|
|
299
940
|
* @inheritDoc
|
|
300
941
|
*/
|
|
@@ -532,7 +1173,7 @@ declare class SerializableNumericIdentificationKeyValidator extends NonGTINNumer
|
|
|
532
1173
|
* @param serialComponentCharacterSet
|
|
533
1174
|
* Serial component character set.
|
|
534
1175
|
*/
|
|
535
|
-
constructor(identificationKeyType: IdentificationKeyType, length: number, serialComponentLength: number, serialComponentCharacterSet:
|
|
1176
|
+
constructor(identificationKeyType: IdentificationKeyType, length: number, serialComponentLength: number, serialComponentCharacterSet: ContentCharacterSet);
|
|
536
1177
|
/**
|
|
537
1178
|
* Get the serial component length.
|
|
538
1179
|
*/
|
|
@@ -540,7 +1181,7 @@ declare class SerializableNumericIdentificationKeyValidator extends NonGTINNumer
|
|
|
540
1181
|
/**
|
|
541
1182
|
* Get the serial component character set.
|
|
542
1183
|
*/
|
|
543
|
-
get serialComponentCharacterSet():
|
|
1184
|
+
get serialComponentCharacterSet(): ContentCharacterSet;
|
|
544
1185
|
/**
|
|
545
1186
|
* Get the serial component validation parameters.
|
|
546
1187
|
*/
|
|
@@ -591,7 +1232,7 @@ declare class NonNumericIdentificationKeyValidator extends AbstractIdentificatio
|
|
|
591
1232
|
* @param requiresCheckCharacterPair
|
|
592
1233
|
* True if the identification key requires a check character pair.
|
|
593
1234
|
*/
|
|
594
|
-
constructor(identificationKeyType: IdentificationKeyType, length: number, referenceCharacterSet:
|
|
1235
|
+
constructor(identificationKeyType: IdentificationKeyType, length: number, referenceCharacterSet: ContentCharacterSet, requiresCheckCharacterPair?: boolean);
|
|
595
1236
|
/**
|
|
596
1237
|
* Determine if the identification key requires a check character pair.
|
|
597
1238
|
*/
|
|
@@ -718,7 +1359,7 @@ declare abstract class AbstractIdentificationKeyCreator implements Identificatio
|
|
|
718
1359
|
abstract get identificationKeyType(): IdentificationKeyType;
|
|
719
1360
|
abstract get prefixType(): PrefixType;
|
|
720
1361
|
abstract get length(): number;
|
|
721
|
-
abstract get referenceCharacterSet():
|
|
1362
|
+
abstract get referenceCharacterSet(): ContentCharacterSet;
|
|
722
1363
|
abstract get referenceCreator(): CharacterSetCreator;
|
|
723
1364
|
/**
|
|
724
1365
|
* @inheritDoc
|
|
@@ -759,13 +1400,14 @@ interface NumericIdentificationKeyCreator extends NumericIdentificationKeyValida
|
|
|
759
1400
|
/**
|
|
760
1401
|
* Create all identification keys for the prefix from `0` to `capacity - 1`.
|
|
761
1402
|
*
|
|
762
|
-
* The implementation creates the strings as needed using an internal generator function
|
|
763
|
-
*
|
|
1403
|
+
* The implementation creates the strings only as needed using an internal generator function. Although the result
|
|
1404
|
+
* is equivalent to calling `creator.create(new Sequencer(0, creator.capacity - 1))`, this method is significantly
|
|
1405
|
+
* faster.
|
|
764
1406
|
*
|
|
765
1407
|
* @returns
|
|
766
|
-
*
|
|
1408
|
+
* All identification keys for the prefix.
|
|
767
1409
|
*/
|
|
768
|
-
createAll: () =>
|
|
1410
|
+
createAll: () => Iterable<string>;
|
|
769
1411
|
}
|
|
770
1412
|
/**
|
|
771
1413
|
* Abstract numeric identification key creator. Implements common functionality for a numeric identification key creator.
|
|
@@ -843,7 +1485,7 @@ declare abstract class AbstractNumericIdentificationKeyCreator extends AbstractI
|
|
|
843
1485
|
/**
|
|
844
1486
|
* @inheritDoc
|
|
845
1487
|
*/
|
|
846
|
-
createAll():
|
|
1488
|
+
createAll(): Iterable<string>;
|
|
847
1489
|
}
|
|
848
1490
|
declare const GTINCreator_base: ts_mixer_dist_types_types_js.Class<any[], GTINValidator & AbstractNumericIdentificationKeyCreator, typeof GTINValidator & typeof AbstractNumericIdentificationKeyCreator>;
|
|
849
1491
|
/**
|
|
@@ -974,7 +1616,7 @@ declare class SerializableNumericIdentificationKeyCreator extends SerializableNu
|
|
|
974
1616
|
* @param serialComponentCharacterSet
|
|
975
1617
|
* Serial component character set.
|
|
976
1618
|
*/
|
|
977
|
-
constructor(prefixManager: PrefixManager, identificationKeyType: IdentificationKeyType, length: number, serialComponentLength: number, serialComponentCharacterSet:
|
|
1619
|
+
constructor(prefixManager: PrefixManager, identificationKeyType: IdentificationKeyType, length: number, serialComponentLength: number, serialComponentCharacterSet: ContentCharacterSet);
|
|
978
1620
|
/**
|
|
979
1621
|
* Concatenate a validated base identification key with serial component(s).
|
|
980
1622
|
*
|
|
@@ -1047,7 +1689,7 @@ declare class NonNumericIdentificationKeyCreator extends NonNumericIdentificatio
|
|
|
1047
1689
|
* @param requiresCheckCharacterPair
|
|
1048
1690
|
* True if the identification key requires a check character pair.
|
|
1049
1691
|
*/
|
|
1050
|
-
constructor(prefixManager: PrefixManager, identificationKeyType: IdentificationKeyType, length: number, referenceCharacterSet:
|
|
1692
|
+
constructor(prefixManager: PrefixManager, identificationKeyType: IdentificationKeyType, length: number, referenceCharacterSet: ContentCharacterSet, requiresCheckCharacterPair?: boolean);
|
|
1051
1693
|
/**
|
|
1052
1694
|
* Get the reference validation parameters.
|
|
1053
1695
|
*/
|
|
@@ -1346,4 +1988,4 @@ declare class PrefixManager {
|
|
|
1346
1988
|
get gmnCreator(): NonNumericIdentificationKeyCreator;
|
|
1347
1989
|
}
|
|
1348
1990
|
|
|
1349
|
-
export { AI39_CREATOR, AI82_CREATOR, CPID_VALIDATOR,
|
|
1991
|
+
export { AI39_CREATOR, AI82_CREATOR, CPID_VALIDATOR, ContentCharacterSet, GCN_VALIDATOR, GDTI_VALIDATOR, GIAI_VALIDATOR, GINC_VALIDATOR, GLN_VALIDATOR, GMN_VALIDATOR, GRAI_VALIDATOR, type GS1LocaleStrings, GSIN_VALIDATOR, GSRN_VALIDATOR, GTIN12_VALIDATOR, GTIN13_VALIDATOR, GTIN8_VALIDATOR, GTINCreator, GTINLevel, GTINType, GTINValidator, GTIN_VALIDATORS, type IdentificationKeyCreator, IdentificationKeyType, type IdentificationKeyValidation, type IdentificationKeyValidator, LeaderType, NonGTINNumericIdentificationKeyCreator, NonGTINNumericIdentificationKeyValidator, NonNumericIdentificationKeyCreator, type NonNumericIdentificationKeyValidation, NonNumericIdentificationKeyValidator, type NumericIdentificationKeyCreator, type NumericIdentificationKeyValidator, PrefixManager, PrefixType, SSCC_VALIDATOR, SerializableNumericIdentificationKeyCreator, SerializableNumericIdentificationKeyValidator, checkCharacterPair, checkDigit, checkDigitSum, fiveDigitPriceWeightCheckDigit, fourDigitPriceWeightCheckDigit, gs1NS, gs1Resources, hasValidCheckCharacterPair, hasValidCheckDigit, i18nGS1Init, i18nextGS1 };
|