@oxog/vld 2.1.0 → 2.2.7
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/CHANGELOG.md +113 -0
- package/README.md +413 -1235
- package/dist/chunks/errors-core-CerMg2rq.js +1 -0
- package/dist/chunks/index-CkbfQQ4n.js +1 -0
- package/dist/chunks/index-yjpbvFgw.js +1 -0
- package/dist/chunks/ip-validation-g5LWgy9t.js +1 -0
- package/dist/chunks/security-Dy24T8N7.js +1 -0
- package/dist/cjs/chunks/errors-core-DrydF46s.cjs +1 -0
- package/dist/cjs/chunks/index-BEV9nG0N.cjs +1 -0
- package/dist/cjs/chunks/index-ZjHAxYdA.cjs +1 -0
- package/dist/cjs/chunks/ip-validation-BZqPamPC.cjs +1 -0
- package/dist/cjs/chunks/security-aXZVI7qW.cjs +1 -0
- package/dist/cjs/cli/bin.cjs +1 -505
- package/dist/cjs/cli/index.cjs +1 -209
- package/dist/cjs/codecs/index.cjs +1 -45
- package/dist/cjs/coercion/index.cjs +1 -588
- package/dist/cjs/compat/emitter.cjs +1 -184
- package/dist/cjs/compat/result.cjs +1 -189
- package/dist/cjs/errors.cjs +1 -180
- package/dist/cjs/index.cjs +1 -1894
- package/dist/cjs/kernel.cjs +1 -415
- package/dist/cjs/locales/af.cjs +1 -108
- package/dist/cjs/locales/ar.cjs +1 -108
- package/dist/cjs/locales/bn.cjs +1 -108
- package/dist/cjs/locales/da.cjs +1 -108
- package/dist/cjs/locales/de.cjs +1 -108
- package/dist/cjs/locales/en.cjs +1 -108
- package/dist/cjs/locales/es-MX.cjs +1 -107
- package/dist/cjs/locales/es.cjs +1 -96
- package/dist/cjs/locales/fi.cjs +1 -108
- package/dist/cjs/locales/fr.cjs +1 -96
- package/dist/cjs/locales/hi.cjs +1 -108
- package/dist/cjs/locales/id.cjs +1 -108
- package/dist/cjs/locales/index.cjs +1 -43
- package/dist/cjs/locales/it.cjs +1 -108
- package/dist/cjs/locales/ja.cjs +1 -108
- package/dist/cjs/locales/ko.cjs +1 -108
- package/dist/cjs/locales/lazy.cjs +1 -188
- package/dist/cjs/locales/nl.cjs +1 -108
- package/dist/cjs/locales/no.cjs +1 -108
- package/dist/cjs/locales/pl.cjs +1 -108
- package/dist/cjs/locales/pt-BR.cjs +1 -108
- package/dist/cjs/locales/pt.cjs +1 -108
- package/dist/cjs/locales/ru.cjs +1 -108
- package/dist/cjs/locales/runtime.cjs +1 -51
- package/dist/cjs/locales/sv.cjs +1 -108
- package/dist/cjs/locales/sw.cjs +1 -108
- package/dist/cjs/locales/th.cjs +1 -108
- package/dist/cjs/locales/tr.cjs +1 -108
- package/dist/cjs/locales/vi.cjs +1 -108
- package/dist/cjs/locales/zh.cjs +1 -108
- package/dist/cjs/mini.cjs +1 -242
- package/dist/cjs/pigment.cjs +1 -207
- package/dist/cjs/plugins/index.cjs +1 -12
- package/dist/cjs/registry.cjs +1 -37
- package/dist/cjs/v3/index.cjs +1 -425
- package/dist/cjs/v4/core/index.cjs +1 -894
- package/dist/cjs/v4/index.cjs +1 -425
- package/dist/cjs/v4/locales/index.cjs +1 -130
- package/dist/cjs/v4/mini/index.cjs +1 -509
- package/dist/cjs/v4-mini/index.cjs +1 -532
- package/dist/cjs/validators/any.cjs +1 -40
- package/dist/cjs/validators/array.cjs +1 -283
- package/dist/cjs/validators/base.cjs +1 -887
- package/dist/cjs/validators/base64.cjs +1 -73
- package/dist/cjs/validators/bigint.cjs +1 -232
- package/dist/cjs/validators/boolean.cjs +1 -146
- package/dist/cjs/validators/codec.cjs +1 -205
- package/dist/cjs/validators/custom.cjs +1 -71
- package/dist/cjs/validators/date.cjs +1 -278
- package/dist/cjs/validators/discriminated-union.cjs +1 -130
- package/dist/cjs/validators/enum.cjs +1 -154
- package/dist/cjs/validators/file.cjs +1 -130
- package/dist/cjs/validators/function.cjs +1 -63
- package/dist/cjs/validators/hex.cjs +1 -70
- package/dist/cjs/validators/index.cjs +1 -123
- package/dist/cjs/validators/intersection.cjs +1 -120
- package/dist/cjs/validators/json.cjs +1 -70
- package/dist/cjs/validators/lazy.cjs +1 -53
- package/dist/cjs/validators/literal.cjs +1 -64
- package/dist/cjs/validators/map.cjs +1 -218
- package/dist/cjs/validators/nan.cjs +1 -41
- package/dist/cjs/validators/never.cjs +1 -36
- package/dist/cjs/validators/null.cjs +1 -43
- package/dist/cjs/validators/number.cjs +1 -427
- package/dist/cjs/validators/object.cjs +1 -868
- package/dist/cjs/validators/promise.cjs +1 -115
- package/dist/cjs/validators/record.cjs +1 -262
- package/dist/cjs/validators/set.cjs +1 -203
- package/dist/cjs/validators/string-bool.cjs +1 -124
- package/dist/cjs/validators/string-formats.cjs +1 -168
- package/dist/cjs/validators/string.cjs +1 -12
- package/dist/cjs/validators/symbol.cjs +1 -62
- package/dist/cjs/validators/template-literal.cjs +1 -108
- package/dist/cjs/validators/tuple.cjs +1 -187
- package/dist/cjs/validators/uint8array.cjs +1 -106
- package/dist/cjs/validators/undefined.cjs +1 -43
- package/dist/cjs/validators/union.cjs +1 -191
- package/dist/cjs/validators/unknown.cjs +1 -40
- package/dist/cjs/validators/void.cjs +1 -48
- package/dist/cjs/validators/xor.cjs +1 -69
- package/dist/cli/bin.js +1 -406
- package/dist/cli/index.js +1 -205
- package/dist/codecs/index.js +1 -11
- package/dist/coercion/index.js +1 -579
- package/dist/compat/emitter.js +1 -180
- package/dist/compat/result.js +1 -170
- package/dist/errors-core.d.ts +32 -2
- package/dist/errors.js +1 -171
- package/dist/index.d.ts +315 -361
- package/dist/index.js +1 -1534
- package/dist/kernel.js +1 -409
- package/dist/locales/af.js +1 -106
- package/dist/locales/ar.js +1 -106
- package/dist/locales/bn.js +1 -106
- package/dist/locales/da.js +1 -106
- package/dist/locales/de.js +1 -106
- package/dist/locales/en.js +1 -106
- package/dist/locales/es-MX.js +1 -105
- package/dist/locales/es.js +1 -94
- package/dist/locales/fi.js +1 -106
- package/dist/locales/fr.js +1 -94
- package/dist/locales/hi.js +1 -106
- package/dist/locales/id.js +1 -106
- package/dist/locales/index.js +1 -29
- package/dist/locales/it.js +1 -106
- package/dist/locales/ja.js +1 -106
- package/dist/locales/ko.js +1 -106
- package/dist/locales/lazy.js +1 -177
- package/dist/locales/nl.js +1 -106
- package/dist/locales/no.js +1 -106
- package/dist/locales/pl.js +1 -106
- package/dist/locales/pt-BR.js +1 -106
- package/dist/locales/pt.js +1 -106
- package/dist/locales/ru.js +1 -106
- package/dist/locales/runtime.js +1 -41
- package/dist/locales/sv.js +1 -106
- package/dist/locales/sw.js +1 -106
- package/dist/locales/th.js +1 -106
- package/dist/locales/tr.js +1 -106
- package/dist/locales/vi.js +1 -106
- package/dist/locales/zh.js +1 -106
- package/dist/mini.d.ts +3 -3
- package/dist/mini.js +1 -156
- package/dist/pigment.js +1 -180
- package/dist/plugins/index.js +1 -1
- package/dist/registry.js +1 -34
- package/dist/utils/json-schema.d.ts +10 -1
- package/dist/v3/index.js +1 -46
- package/dist/v4/core/index.d.ts +28 -16
- package/dist/v4/core/index.js +1 -277
- package/dist/v4/index.js +1 -50
- package/dist/v4/locales/index.d.ts +4 -0
- package/dist/v4/locales/index.js +1 -77
- package/dist/v4/mini/index.js +1 -47
- package/dist/v4-mini/index.d.ts +1 -1
- package/dist/v4-mini/index.js +1 -75
- package/dist/validators/any.js +1 -37
- package/dist/validators/array.d.ts +7 -0
- package/dist/validators/array.js +1 -279
- package/dist/validators/base.d.ts +210 -17
- package/dist/validators/base.js +1 -868
- package/dist/validators/base64.js +1 -68
- package/dist/validators/bigint.d.ts +7 -0
- package/dist/validators/bigint.js +1 -228
- package/dist/validators/boolean.js +1 -142
- package/dist/validators/codec.js +1 -200
- package/dist/validators/custom.d.ts +20 -10
- package/dist/validators/custom.js +1 -67
- package/dist/validators/date.d.ts +2 -0
- package/dist/validators/date.js +1 -274
- package/dist/validators/discriminated-union.d.ts +4 -2
- package/dist/validators/discriminated-union.js +1 -123
- package/dist/validators/enum.d.ts +8 -2
- package/dist/validators/enum.js +1 -150
- package/dist/validators/file.js +1 -125
- package/dist/validators/function.js +1 -58
- package/dist/validators/hex.js +1 -65
- package/dist/validators/index.d.ts +1 -1
- package/dist/validators/index.js +1 -35
- package/dist/validators/intersection.js +1 -116
- package/dist/validators/json.js +1 -66
- package/dist/validators/lazy.js +1 -50
- package/dist/validators/literal.d.ts +8 -3
- package/dist/validators/literal.js +1 -60
- package/dist/validators/map.d.ts +7 -0
- package/dist/validators/map.js +1 -214
- package/dist/validators/nan.js +1 -38
- package/dist/validators/never.js +1 -32
- package/dist/validators/null.js +1 -40
- package/dist/validators/number.d.ts +25 -1
- package/dist/validators/number.js +1 -423
- package/dist/validators/object.d.ts +18 -2
- package/dist/validators/object.js +1 -864
- package/dist/validators/promise.d.ts +6 -7
- package/dist/validators/promise.js +1 -111
- package/dist/validators/record.d.ts +13 -8
- package/dist/validators/record.js +1 -258
- package/dist/validators/set.d.ts +5 -0
- package/dist/validators/set.js +1 -199
- package/dist/validators/string-bool.js +1 -120
- package/dist/validators/string-formats.d.ts +58 -62
- package/dist/validators/string-formats.js +1 -135
- package/dist/validators/string.d.ts +49 -10
- package/dist/validators/string.js +1 -4
- package/dist/validators/symbol.js +1 -58
- package/dist/validators/template-literal.js +1 -103
- package/dist/validators/tuple.d.ts +17 -13
- package/dist/validators/tuple.js +1 -183
- package/dist/validators/uint8array.js +1 -101
- package/dist/validators/undefined.js +1 -40
- package/dist/validators/union.d.ts +1 -0
- package/dist/validators/union.js +1 -187
- package/dist/validators/unknown.js +1 -37
- package/dist/validators/void.js +1 -44
- package/dist/validators/xor.d.ts +2 -2
- package/dist/validators/xor.js +1 -66
- package/package.json +240 -238
- package/dist/chunks/errors-core-BeiFUtZM.js +0 -81
- package/dist/chunks/index-0R2ntSud.js +0 -508
- package/dist/chunks/index-BvH403Yy.js +0 -88
- package/dist/chunks/security-B0Pd_vSY.js +0 -35
- package/dist/chunks/string-BJRQod3t.js +0 -530
- package/dist/cjs/chunks/errors-core-DWxLFs2f.cjs +0 -83
- package/dist/cjs/chunks/index-BkI37108.cjs +0 -538
- package/dist/cjs/chunks/index-Cc3bjUMX.cjs +0 -91
- package/dist/cjs/chunks/security-Dc3Jh13T.cjs +0 -37
- package/dist/cjs/chunks/string-BKZrc4hs.cjs +0 -533
package/dist/locales/it.js
CHANGED
|
@@ -1,106 +1 @@
|
|
|
1
|
-
const
|
|
2
|
-
// String validation messages
|
|
3
|
-
invalidString: 'Stringa non valida',
|
|
4
|
-
stringMin: (min) => `La stringa deve avere almeno ${min} caratteri`,
|
|
5
|
-
stringMax: (max) => `La stringa non può avere più di ${max} caratteri`,
|
|
6
|
-
stringLength: (length) => `La stringa deve avere esattamente ${length} caratteri`,
|
|
7
|
-
stringEmail: 'Indirizzo email non valido',
|
|
8
|
-
stringUrl: 'URL non valido',
|
|
9
|
-
stringUuid: 'UUID non valido',
|
|
10
|
-
stringRegex: 'Formato non valido',
|
|
11
|
-
stringStartsWith: (prefix) => `La stringa deve iniziare con "${prefix}"`,
|
|
12
|
-
stringEndsWith: (suffix) => `La stringa deve finire con "${suffix}"`,
|
|
13
|
-
stringIncludes: (substring) => `La stringa deve contenere "${substring}"`,
|
|
14
|
-
stringIp: 'Indirizzo IP non valido',
|
|
15
|
-
stringIpv4: 'Indirizzo IPv4 non valido',
|
|
16
|
-
stringIpv6: 'Indirizzo IPv6 non valido',
|
|
17
|
-
stringEmpty: 'La stringa non può essere vuota',
|
|
18
|
-
// Number validation messages
|
|
19
|
-
invalidNumber: 'Numero non valido',
|
|
20
|
-
numberMin: (min) => `Il numero deve essere almeno ${min}`,
|
|
21
|
-
numberMax: (max) => `Il numero non può essere maggiore di ${max}`,
|
|
22
|
-
numberInt: 'Il numero deve essere intero',
|
|
23
|
-
numberPositive: 'Il numero deve essere positivo',
|
|
24
|
-
numberNegative: 'Il numero deve essere negativo',
|
|
25
|
-
numberNonnegative: 'Il numero non può essere negativo',
|
|
26
|
-
numberNonpositive: 'Il numero non può essere positivo',
|
|
27
|
-
numberFinite: 'Il numero deve essere finito',
|
|
28
|
-
numberSafe: 'Il numero deve essere un intero sicuro',
|
|
29
|
-
numberMultipleOf: (value) => `Il numero deve essere multiplo di ${value}`,
|
|
30
|
-
// Boolean validation messages
|
|
31
|
-
invalidBoolean: 'Valore booleano non valido',
|
|
32
|
-
// Date validation messages
|
|
33
|
-
invalidDate: 'Data non valida',
|
|
34
|
-
dateMin: (date) => `La data deve essere dopo ${date.toISOString()}`,
|
|
35
|
-
dateMax: (date) => `La data deve essere prima di ${date.toISOString()}`,
|
|
36
|
-
// Object validation messages
|
|
37
|
-
invalidObject: 'Oggetto non valido',
|
|
38
|
-
unexpectedKeys: (keys) => `Chiavi impreviste: ${keys.join(', ')}`,
|
|
39
|
-
// Array validation messages
|
|
40
|
-
invalidArray: 'Array non valido',
|
|
41
|
-
arrayMin: (min) => `L'array deve avere almeno ${min} elementi`,
|
|
42
|
-
arrayMax: (max) => `L'array non può avere più di ${max} elementi`,
|
|
43
|
-
arrayLength: (length) => `L'array deve avere esattamente ${length} elementi`,
|
|
44
|
-
arrayEmpty: 'L\'array non può essere vuoto',
|
|
45
|
-
arrayItem: (index, error) => `Elemento non valido all'indice ${index}: ${error}`,
|
|
46
|
-
// Object field validation
|
|
47
|
-
objectField: (field, error) => `Campo non valido "${field}": ${error}`,
|
|
48
|
-
// Union validation messages
|
|
49
|
-
unionNoMatch: (errors) => `Nessun membro dell'unione corrisponde: ${errors.join(', ')}`,
|
|
50
|
-
// Intersection validation messages
|
|
51
|
-
intersectionError: (error) => `Validazione intersezione fallita: ${error}`,
|
|
52
|
-
// Literal validation messages
|
|
53
|
-
literalExpected: (expected, received) => `Previsto ${expected}, ricevuto ${received}`,
|
|
54
|
-
// Enum validation messages
|
|
55
|
-
enumExpected: (values, received) => `Previsto uno di [${values.join(', ')}], ricevuto ${received}`,
|
|
56
|
-
// Special type validation messages
|
|
57
|
-
expectedUndefined: 'Previsto undefined',
|
|
58
|
-
neverType: 'Il tipo never non può essere analizzato',
|
|
59
|
-
// New advanced type validation messages
|
|
60
|
-
invalidBigint: 'Bigint non valido',
|
|
61
|
-
invalidSymbol: 'Simbolo non valido',
|
|
62
|
-
invalidTuple: 'Tupla non valida',
|
|
63
|
-
tupleLength: (expected, received) => `La tupla deve avere esattamente ${expected} elementi, ricevuti ${received}`,
|
|
64
|
-
invalidRecord: 'Record non valido',
|
|
65
|
-
invalidSet: 'Set non valido',
|
|
66
|
-
invalidMap: 'Map non valida',
|
|
67
|
-
// Transformation and refinement messages
|
|
68
|
-
transformError: (error) => `Trasformazione fallita: ${error}`,
|
|
69
|
-
refinementError: (error) => `Raffinamento fallito: ${error}`,
|
|
70
|
-
customValidationError: (error) => `Validazione personalizzata fallita: ${error}`,
|
|
71
|
-
// Coercion messages
|
|
72
|
-
coercionFailed: (type, value) => `Impossibile convertire ${JSON.stringify(value)} in ${type}`,
|
|
73
|
-
// Codec messages
|
|
74
|
-
codecDecodeFailed: 'Failed to decode value',
|
|
75
|
-
codecEncodeFailed: 'Failed to encode value',
|
|
76
|
-
codecAsyncNotSupported: 'Async codec operations require using parseAsync/encodeAsync methods',
|
|
77
|
-
// Base64/Hex messages
|
|
78
|
-
invalidBase64: 'Invalid base64 string',
|
|
79
|
-
invalidHex: 'Invalid hexadecimal string',
|
|
80
|
-
// Uint8Array messages
|
|
81
|
-
expectedUint8Array: 'Expected Uint8Array',
|
|
82
|
-
uint8ArrayMinLength: (min) => `Uint8Array must have at least ${min} bytes`,
|
|
83
|
-
uint8ArrayMaxLength: (max) => `Uint8Array must have at most ${max} bytes`,
|
|
84
|
-
uint8ArrayExactLength: (length) => `Uint8Array must have exactly ${length} bytes`,
|
|
85
|
-
// Generic type error messages
|
|
86
|
-
expectedString: 'Expected string',
|
|
87
|
-
stringExpected: (received, expected) => `Previsto ${expected}, ricevuto ${received}`,
|
|
88
|
-
stringBoolExpected: (validValues, received) => `Stringa booleana non valida. Previsto uno di: ${validValues}, ricevuto: "${received}"`,
|
|
89
|
-
invalidJson: 'JSON non valido',
|
|
90
|
-
stringPatternInvalid: 'La stringa non corrisponde al pattern richiesto',
|
|
91
|
-
// File validation messages
|
|
92
|
-
invalidFile: 'Expected a File object',
|
|
93
|
-
fileNotSupported: 'File API not supported in this environment',
|
|
94
|
-
fileMinSize: (min) => `File size must be at least ${min} bytes`,
|
|
95
|
-
fileMaxSize: (max) => `File size must not exceed ${max} bytes`,
|
|
96
|
-
fileMimeType: (allowed) => `Invalid file type. Expected: ${allowed.join(", ")}`,
|
|
97
|
-
// Function validation messages
|
|
98
|
-
invalidFunction: 'È prevista una funzione',
|
|
99
|
-
// CIDR validation messages
|
|
100
|
-
stringCidrv4: 'Blocco CIDR IPv4 non valido',
|
|
101
|
-
stringCidrv6: 'Blocco CIDR IPv6 non valido',
|
|
102
|
-
// Safe extend validation messages
|
|
103
|
-
safeExtendOverlap: (keys) => `Impossibile sovrascrivere chiavi esistenti: ${keys.join(', ')}. Usa extend() per sovrascrivere.`
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
export { it };
|
|
1
|
+
const e={invalidString:"Stringa non valida",stringMin:e=>`La stringa deve avere almeno ${e} caratteri`,stringMax:e=>`La stringa non può avere più di ${e} caratteri`,stringLength:e=>`La stringa deve avere esattamente ${e} caratteri`,stringEmail:"Indirizzo email non valido",stringUrl:"URL non valido",stringUuid:"UUID non valido",stringRegex:"Formato non valido",stringStartsWith:e=>`La stringa deve iniziare con "${e}"`,stringEndsWith:e=>`La stringa deve finire con "${e}"`,stringIncludes:e=>`La stringa deve contenere "${e}"`,stringIp:"Indirizzo IP non valido",stringIpv4:"Indirizzo IPv4 non valido",stringIpv6:"Indirizzo IPv6 non valido",stringEmpty:"La stringa non può essere vuota",invalidNumber:"Numero non valido",numberMin:e=>`Il numero deve essere almeno ${e}`,numberMax:e=>`Il numero non può essere maggiore di ${e}`,numberInt:"Il numero deve essere intero",numberPositive:"Il numero deve essere positivo",numberNegative:"Il numero deve essere negativo",numberNonnegative:"Il numero non può essere negativo",numberNonpositive:"Il numero non può essere positivo",numberFinite:"Il numero deve essere finito",numberSafe:"Il numero deve essere un intero sicuro",numberMultipleOf:e=>`Il numero deve essere multiplo di ${e}`,invalidBoolean:"Valore booleano non valido",invalidDate:"Data non valida",dateMin:e=>`La data deve essere dopo ${e.toISOString()}`,dateMax:e=>`La data deve essere prima di ${e.toISOString()}`,invalidObject:"Oggetto non valido",unexpectedKeys:e=>`Chiavi impreviste: ${e.join(", ")}`,invalidArray:"Array non valido",arrayMin:e=>`L'array deve avere almeno ${e} elementi`,arrayMax:e=>`L'array non può avere più di ${e} elementi`,arrayLength:e=>`L'array deve avere esattamente ${e} elementi`,arrayEmpty:"L'array non può essere vuoto",arrayItem:(e,i)=>`Elemento non valido all'indice ${e}: ${i}`,objectField:(e,i)=>`Campo non valido "${e}": ${i}`,unionNoMatch:e=>`Nessun membro dell'unione corrisponde: ${e.join(", ")}`,intersectionError:e=>`Validazione intersezione fallita: ${e}`,literalExpected:(e,i)=>`Previsto ${e}, ricevuto ${i}`,enumExpected:(e,i)=>`Previsto uno di [${e.join(", ")}], ricevuto ${i}`,expectedUndefined:"Previsto undefined",neverType:"Il tipo never non può essere analizzato",invalidBigint:"Bigint non valido",invalidSymbol:"Simbolo non valido",invalidTuple:"Tupla non valida",tupleLength:(e,i)=>`La tupla deve avere esattamente ${e} elementi, ricevuti ${i}`,invalidRecord:"Record non valido",invalidSet:"Set non valido",invalidMap:"Map non valida",transformError:e=>`Trasformazione fallita: ${e}`,refinementError:e=>`Raffinamento fallito: ${e}`,customValidationError:e=>`Validazione personalizzata fallita: ${e}`,coercionFailed:(e,i)=>`Impossibile convertire ${JSON.stringify(i)} in ${e}`,codecDecodeFailed:"Failed to decode value",codecEncodeFailed:"Failed to encode value",codecAsyncNotSupported:"Async codec operations require using parseAsync/encodeAsync methods",invalidBase64:"Invalid base64 string",invalidHex:"Invalid hexadecimal string",expectedUint8Array:"Expected Uint8Array",uint8ArrayMinLength:e=>`Uint8Array must have at least ${e} bytes`,uint8ArrayMaxLength:e=>`Uint8Array must have at most ${e} bytes`,uint8ArrayExactLength:e=>`Uint8Array must have exactly ${e} bytes`,expectedString:"Expected string",stringExpected:(e,i)=>`Previsto ${i}, ricevuto ${e}`,stringBoolExpected:(e,i)=>`Stringa booleana non valida. Previsto uno di: ${e}, ricevuto: "${i}"`,invalidJson:"JSON non valido",stringPatternInvalid:"La stringa non corrisponde al pattern richiesto",invalidFile:"Expected a File object",fileNotSupported:"File API not supported in this environment",fileMinSize:e=>`File size must be at least ${e} bytes`,fileMaxSize:e=>`File size must not exceed ${e} bytes`,fileMimeType:e=>`Invalid file type. Expected: ${e.join(", ")}`,invalidFunction:"È prevista una funzione",stringCidrv4:"Blocco CIDR IPv4 non valido",stringCidrv6:"Blocco CIDR IPv6 non valido",safeExtendOverlap:e=>`Impossibile sovrascrivere chiavi esistenti: ${e.join(", ")}. Usa extend() per sovrascrivere.`};export{e as it};
|
package/dist/locales/ja.js
CHANGED
|
@@ -1,106 +1 @@
|
|
|
1
|
-
const
|
|
2
|
-
// String validation messages
|
|
3
|
-
invalidString: '無効な文字列',
|
|
4
|
-
stringMin: (min) => `文字列は${min}文字以上である必要があります`,
|
|
5
|
-
stringMax: (max) => `文字列は${max}文字以下である必要があります`,
|
|
6
|
-
stringLength: (length) => `文字列はちょうど${length}文字である必要があります`,
|
|
7
|
-
stringEmail: '無効なメールアドレス',
|
|
8
|
-
stringUrl: '無効なURL',
|
|
9
|
-
stringUuid: '無効なUUID',
|
|
10
|
-
stringRegex: '無効なフォーマット',
|
|
11
|
-
stringStartsWith: (prefix) => `文字列は「${prefix}」で始まる必要があります`,
|
|
12
|
-
stringEndsWith: (suffix) => `文字列は「${suffix}」で終わる必要があります`,
|
|
13
|
-
stringIncludes: (substring) => `文字列は「${substring}」を含む必要があります`,
|
|
14
|
-
stringIp: '無効なIPアドレス',
|
|
15
|
-
stringIpv4: '無効なIPv4アドレス',
|
|
16
|
-
stringIpv6: '無効なIPv6アドレス',
|
|
17
|
-
stringEmpty: '文字列は空にできません',
|
|
18
|
-
// Number validation messages
|
|
19
|
-
invalidNumber: '無効な数値',
|
|
20
|
-
numberMin: (min) => `数値は${min}以上である必要があります`,
|
|
21
|
-
numberMax: (max) => `数値は${max}以下である必要があります`,
|
|
22
|
-
numberInt: '数値は整数である必要があります',
|
|
23
|
-
numberPositive: '数値は正の値である必要があります',
|
|
24
|
-
numberNegative: '数値は負の値である必要があります',
|
|
25
|
-
numberNonnegative: '数値は負の値にできません',
|
|
26
|
-
numberNonpositive: '数値は正の値にできません',
|
|
27
|
-
numberFinite: '数値は有限である必要があります',
|
|
28
|
-
numberSafe: '数値は安全な整数である必要があります',
|
|
29
|
-
numberMultipleOf: (value) => `数値は${value}の倍数である必要があります`,
|
|
30
|
-
// Boolean validation messages
|
|
31
|
-
invalidBoolean: '無効なブール値',
|
|
32
|
-
// Date validation messages
|
|
33
|
-
invalidDate: '無効な日付',
|
|
34
|
-
dateMin: (date) => `日付は${date.toISOString()}より後である必要があります`,
|
|
35
|
-
dateMax: (date) => `日付は${date.toISOString()}より前である必要があります`,
|
|
36
|
-
// Object validation messages
|
|
37
|
-
invalidObject: '無効なオブジェクト',
|
|
38
|
-
unexpectedKeys: (keys) => `予期しないキー: ${keys.join(', ')}`,
|
|
39
|
-
// Array validation messages
|
|
40
|
-
invalidArray: '無効な配列',
|
|
41
|
-
arrayMin: (min) => `配列は${min}個以上の要素が必要です`,
|
|
42
|
-
arrayMax: (max) => `配列は${max}個以下の要素でなければなりません`,
|
|
43
|
-
arrayLength: (length) => `配列はちょうど${length}個の要素が必要です`,
|
|
44
|
-
arrayEmpty: '配列は空にできません',
|
|
45
|
-
arrayItem: (index, error) => `インデックス${index}の無効な要素: ${error}`,
|
|
46
|
-
// Object field validation
|
|
47
|
-
objectField: (field, error) => `無効なフィールド「${field}」: ${error}`,
|
|
48
|
-
// Union validation messages
|
|
49
|
-
unionNoMatch: (errors) => `どのユニオンメンバーもマッチしませんでした: ${errors.join(', ')}`,
|
|
50
|
-
// Intersection validation messages
|
|
51
|
-
intersectionError: (error) => `交差検証に失敗しました: ${error}`,
|
|
52
|
-
// Literal validation messages
|
|
53
|
-
literalExpected: (expected, received) => `${expected}が期待されましたが、${received}を受け取りました`,
|
|
54
|
-
// Enum validation messages
|
|
55
|
-
enumExpected: (values, received) => `[${values.join(', ')}]のいずれかが期待されましたが、${received}を受け取りました`,
|
|
56
|
-
// Special type validation messages
|
|
57
|
-
expectedUndefined: 'undefinedが期待されました',
|
|
58
|
-
neverType: 'neverタイプは解析できません',
|
|
59
|
-
// New advanced type validation messages
|
|
60
|
-
invalidBigint: '無効なbigint',
|
|
61
|
-
invalidSymbol: '無効なシンボル',
|
|
62
|
-
invalidTuple: '無効なタプル',
|
|
63
|
-
tupleLength: (expected, received) => `タプルはちょうど${expected}個の要素が必要ですが、${received}個を受け取りました`,
|
|
64
|
-
invalidRecord: '無効なレコード',
|
|
65
|
-
invalidSet: '無効なSet',
|
|
66
|
-
invalidMap: '無効なMap',
|
|
67
|
-
// Transformation and refinement messages
|
|
68
|
-
transformError: (error) => `変換に失敗しました: ${error}`,
|
|
69
|
-
refinementError: (error) => `リファインメントに失敗しました: ${error}`,
|
|
70
|
-
customValidationError: (error) => `カスタム検証が失敗しました: ${error}`,
|
|
71
|
-
// Coercion messages
|
|
72
|
-
coercionFailed: (type, value) => `${JSON.stringify(value)}を${type}に変換できません`,
|
|
73
|
-
// Codec messages
|
|
74
|
-
codecDecodeFailed: 'Failed to decode value',
|
|
75
|
-
codecEncodeFailed: 'Failed to encode value',
|
|
76
|
-
codecAsyncNotSupported: 'Async codec operations require using parseAsync/encodeAsync methods',
|
|
77
|
-
// Base64/Hex messages
|
|
78
|
-
invalidBase64: 'Invalid base64 string',
|
|
79
|
-
invalidHex: 'Invalid hexadecimal string',
|
|
80
|
-
// Uint8Array messages
|
|
81
|
-
expectedUint8Array: 'Expected Uint8Array',
|
|
82
|
-
uint8ArrayMinLength: (min) => `Uint8Array must have at least ${min} bytes`,
|
|
83
|
-
uint8ArrayMaxLength: (max) => `Uint8Array must have at most ${max} bytes`,
|
|
84
|
-
uint8ArrayExactLength: (length) => `Uint8Array must have exactly ${length} bytes`,
|
|
85
|
-
// Generic type error messages
|
|
86
|
-
expectedString: 'Expected string',
|
|
87
|
-
stringExpected: (received, expected) => `${expected}が期待されましたが、${received}を受け取りました`,
|
|
88
|
-
stringBoolExpected: (validValues, received) => `無効なブール文字列です。次のいずれかである必要があります: ${validValues}、受け取りました: "${received}"`,
|
|
89
|
-
invalidJson: '無効なJSON',
|
|
90
|
-
stringPatternInvalid: '文字列が必要なパターンと一致しません',
|
|
91
|
-
// File validation messages
|
|
92
|
-
invalidFile: 'Expected a File object',
|
|
93
|
-
fileNotSupported: 'File API not supported in this environment',
|
|
94
|
-
fileMinSize: (min) => `File size must be at least ${min} bytes`,
|
|
95
|
-
fileMaxSize: (max) => `File size must not exceed ${max} bytes`,
|
|
96
|
-
fileMimeType: (allowed) => `Invalid file type. Expected: ${allowed.join(", ")}`,
|
|
97
|
-
// Function validation messages
|
|
98
|
-
invalidFunction: '関数が期待されました',
|
|
99
|
-
// CIDR validation messages
|
|
100
|
-
stringCidrv4: '無効なIPv4 CIDRブロック',
|
|
101
|
-
stringCidrv6: '無効なIPv6 CIDRブロック',
|
|
102
|
-
// Safe extend validation messages
|
|
103
|
-
safeExtendOverlap: (keys) => `既存のキーを上書きできません: ${keys.join(', ')}。上書きしたい場合はextend()を使用してください。`
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
export { ja };
|
|
1
|
+
const e={invalidString:"無効な文字列",stringMin:e=>`文字列は${e}文字以上である必要があります`,stringMax:e=>`文字列は${e}文字以下である必要があります`,stringLength:e=>`文字列はちょうど${e}文字である必要があります`,stringEmail:"無効なメールアドレス",stringUrl:"無効なURL",stringUuid:"無効なUUID",stringRegex:"無効なフォーマット",stringStartsWith:e=>`文字列は「${e}」で始まる必要があります`,stringEndsWith:e=>`文字列は「${e}」で終わる必要があります`,stringIncludes:e=>`文字列は「${e}」を含む必要があります`,stringIp:"無効なIPアドレス",stringIpv4:"無効なIPv4アドレス",stringIpv6:"無効なIPv6アドレス",stringEmpty:"文字列は空にできません",invalidNumber:"無効な数値",numberMin:e=>`数値は${e}以上である必要があります`,numberMax:e=>`数値は${e}以下である必要があります`,numberInt:"数値は整数である必要があります",numberPositive:"数値は正の値である必要があります",numberNegative:"数値は負の値である必要があります",numberNonnegative:"数値は負の値にできません",numberNonpositive:"数値は正の値にできません",numberFinite:"数値は有限である必要があります",numberSafe:"数値は安全な整数である必要があります",numberMultipleOf:e=>`数値は${e}の倍数である必要があります`,invalidBoolean:"無効なブール値",invalidDate:"無効な日付",dateMin:e=>`日付は${e.toISOString()}より後である必要があります`,dateMax:e=>`日付は${e.toISOString()}より前である必要があります`,invalidObject:"無効なオブジェクト",unexpectedKeys:e=>`予期しないキー: ${e.join(", ")}`,invalidArray:"無効な配列",arrayMin:e=>`配列は${e}個以上の要素が必要です`,arrayMax:e=>`配列は${e}個以下の要素でなければなりません`,arrayLength:e=>`配列はちょうど${e}個の要素が必要です`,arrayEmpty:"配列は空にできません",arrayItem:(e,i)=>`インデックス${e}の無効な要素: ${i}`,objectField:(e,i)=>`無効なフィールド「${e}」: ${i}`,unionNoMatch:e=>`どのユニオンメンバーもマッチしませんでした: ${e.join(", ")}`,intersectionError:e=>`交差検証に失敗しました: ${e}`,literalExpected:(e,i)=>`${e}が期待されましたが、${i}を受け取りました`,enumExpected:(e,i)=>`[${e.join(", ")}]のいずれかが期待されましたが、${i}を受け取りました`,expectedUndefined:"undefinedが期待されました",neverType:"neverタイプは解析できません",invalidBigint:"無効なbigint",invalidSymbol:"無効なシンボル",invalidTuple:"無効なタプル",tupleLength:(e,i)=>`タプルはちょうど${e}個の要素が必要ですが、${i}個を受け取りました`,invalidRecord:"無効なレコード",invalidSet:"無効なSet",invalidMap:"無効なMap",transformError:e=>`変換に失敗しました: ${e}`,refinementError:e=>`リファインメントに失敗しました: ${e}`,customValidationError:e=>`カスタム検証が失敗しました: ${e}`,coercionFailed:(e,i)=>`${JSON.stringify(i)}を${e}に変換できません`,codecDecodeFailed:"Failed to decode value",codecEncodeFailed:"Failed to encode value",codecAsyncNotSupported:"Async codec operations require using parseAsync/encodeAsync methods",invalidBase64:"Invalid base64 string",invalidHex:"Invalid hexadecimal string",expectedUint8Array:"Expected Uint8Array",uint8ArrayMinLength:e=>`Uint8Array must have at least ${e} bytes`,uint8ArrayMaxLength:e=>`Uint8Array must have at most ${e} bytes`,uint8ArrayExactLength:e=>`Uint8Array must have exactly ${e} bytes`,expectedString:"Expected string",stringExpected:(e,i)=>`${i}が期待されましたが、${e}を受け取りました`,stringBoolExpected:(e,i)=>`無効なブール文字列です。次のいずれかである必要があります: ${e}、受け取りました: "${i}"`,invalidJson:"無効なJSON",stringPatternInvalid:"文字列が必要なパターンと一致しません",invalidFile:"Expected a File object",fileNotSupported:"File API not supported in this environment",fileMinSize:e=>`File size must be at least ${e} bytes`,fileMaxSize:e=>`File size must not exceed ${e} bytes`,fileMimeType:e=>`Invalid file type. Expected: ${e.join(", ")}`,invalidFunction:"関数が期待されました",stringCidrv4:"無効なIPv4 CIDRブロック",stringCidrv6:"無効なIPv6 CIDRブロック",safeExtendOverlap:e=>`既存のキーを上書きできません: ${e.join(", ")}。上書きしたい場合はextend()を使用してください。`};export{e as ja};
|
package/dist/locales/ko.js
CHANGED
|
@@ -1,106 +1 @@
|
|
|
1
|
-
const
|
|
2
|
-
// String validation messages
|
|
3
|
-
invalidString: '유효하지 않은 문자열',
|
|
4
|
-
stringMin: (min) => `문자열은 최소 ${min}자여야 합니다`,
|
|
5
|
-
stringMax: (max) => `문자열은 최대 ${max}자여야 합니다`,
|
|
6
|
-
stringLength: (length) => `문자열은 정확히 ${length}자여야 합니다`,
|
|
7
|
-
stringEmail: '유효하지 않은 이메일 주소',
|
|
8
|
-
stringUrl: '유효하지 않은 URL',
|
|
9
|
-
stringUuid: '유효하지 않은 UUID',
|
|
10
|
-
stringRegex: '유효하지 않은 형식',
|
|
11
|
-
stringStartsWith: (prefix) => `문자열은 "${prefix}"로 시작해야 합니다`,
|
|
12
|
-
stringEndsWith: (suffix) => `문자열은 "${suffix}"로 끝나야 합니다`,
|
|
13
|
-
stringIncludes: (substring) => `문자열은 "${substring}"을 포함해야 합니다`,
|
|
14
|
-
stringIp: '유효하지 않은 IP 주소',
|
|
15
|
-
stringIpv4: '유효하지 않은 IPv4 주소',
|
|
16
|
-
stringIpv6: '유효하지 않은 IPv6 주소',
|
|
17
|
-
stringEmpty: '문자열은 비어있을 수 없습니다',
|
|
18
|
-
// Number validation messages
|
|
19
|
-
invalidNumber: '유효하지 않은 숫자',
|
|
20
|
-
numberMin: (min) => `숫자는 최소 ${min}이어야 합니다`,
|
|
21
|
-
numberMax: (max) => `숫자는 최대 ${max}이어야 합니다`,
|
|
22
|
-
numberInt: '숫자는 정수여야 합니다',
|
|
23
|
-
numberPositive: '숫자는 양수여야 합니다',
|
|
24
|
-
numberNegative: '숫자는 음수여야 합니다',
|
|
25
|
-
numberNonnegative: '숫자는 음수일 수 없습니다',
|
|
26
|
-
numberNonpositive: '숫자는 양수일 수 없습니다',
|
|
27
|
-
numberFinite: '숫자는 유한해야 합니다',
|
|
28
|
-
numberSafe: '숫자는 안전한 정수여야 합니다',
|
|
29
|
-
numberMultipleOf: (value) => `숫자는 ${value}의 배수여야 합니다`,
|
|
30
|
-
// Boolean validation messages
|
|
31
|
-
invalidBoolean: '유효하지 않은 불린 값',
|
|
32
|
-
// Date validation messages
|
|
33
|
-
invalidDate: '유효하지 않은 날짜',
|
|
34
|
-
dateMin: (date) => `날짜는 ${date.toISOString()} 이후여야 합니다`,
|
|
35
|
-
dateMax: (date) => `날짜는 ${date.toISOString()} 이전이어야 합니다`,
|
|
36
|
-
// Object validation messages
|
|
37
|
-
invalidObject: '유효하지 않은 객체',
|
|
38
|
-
unexpectedKeys: (keys) => `예상치 못한 키: ${keys.join(', ')}`,
|
|
39
|
-
// Array validation messages
|
|
40
|
-
invalidArray: '유효하지 않은 배열',
|
|
41
|
-
arrayMin: (min) => `배열은 최소 ${min}개의 요소가 있어야 합니다`,
|
|
42
|
-
arrayMax: (max) => `배열은 최대 ${max}개의 요소가 있어야 합니다`,
|
|
43
|
-
arrayLength: (length) => `배열은 정확히 ${length}개의 요소가 있어야 합니다`,
|
|
44
|
-
arrayEmpty: '배열은 비어있을 수 없습니다',
|
|
45
|
-
arrayItem: (index, error) => `인덱스 ${index}의 유효하지 않은 요소: ${error}`,
|
|
46
|
-
// Object field validation
|
|
47
|
-
objectField: (field, error) => `유효하지 않은 필드 "${field}": ${error}`,
|
|
48
|
-
// Union validation messages
|
|
49
|
-
unionNoMatch: (errors) => `어떤 유니온 멤버도 일치하지 않았습니다: ${errors.join(', ')}`,
|
|
50
|
-
// Intersection validation messages
|
|
51
|
-
intersectionError: (error) => `교집합 검증에 실패했습니다: ${error}`,
|
|
52
|
-
// Literal validation messages
|
|
53
|
-
literalExpected: (expected, received) => `${expected}가 예상되었지만 ${received}를 받았습니다`,
|
|
54
|
-
// Enum validation messages
|
|
55
|
-
enumExpected: (values, received) => `[${values.join(', ')}] 중 하나가 예상되었지만 ${received}를 받았습니다`,
|
|
56
|
-
// Special type validation messages
|
|
57
|
-
expectedUndefined: 'undefined가 예상되었습니다',
|
|
58
|
-
neverType: 'never 타입은 파싱할 수 없습니다',
|
|
59
|
-
// New advanced type validation messages
|
|
60
|
-
invalidBigint: '유효하지 않은 bigint',
|
|
61
|
-
invalidSymbol: '유효하지 않은 심볼',
|
|
62
|
-
invalidTuple: '유효하지 않은 튜플',
|
|
63
|
-
tupleLength: (expected, received) => `튜플은 정확히 ${expected}개의 요소가 있어야 하지만 ${received}개를 받았습니다`,
|
|
64
|
-
invalidRecord: '유효하지 않은 레코드',
|
|
65
|
-
invalidSet: '유효하지 않은 Set',
|
|
66
|
-
invalidMap: '유효하지 않은 Map',
|
|
67
|
-
// Transformation and refinement messages
|
|
68
|
-
transformError: (error) => `변환 실패: ${error}`,
|
|
69
|
-
refinementError: (error) => `정제 실패: ${error}`,
|
|
70
|
-
customValidationError: (error) => `사용자 정의 유효성 검사 실패: ${error}`,
|
|
71
|
-
// Coercion messages
|
|
72
|
-
coercionFailed: (type, value) => `${JSON.stringify(value)}를 ${type}로 강제 변환할 수 없습니다`,
|
|
73
|
-
// Codec messages
|
|
74
|
-
codecDecodeFailed: 'Failed to decode value',
|
|
75
|
-
codecEncodeFailed: 'Failed to encode value',
|
|
76
|
-
codecAsyncNotSupported: 'Async codec operations require using parseAsync/encodeAsync methods',
|
|
77
|
-
// Base64/Hex messages
|
|
78
|
-
invalidBase64: 'Invalid base64 string',
|
|
79
|
-
invalidHex: 'Invalid hexadecimal string',
|
|
80
|
-
// Uint8Array messages
|
|
81
|
-
expectedUint8Array: 'Expected Uint8Array',
|
|
82
|
-
uint8ArrayMinLength: (min) => `Uint8Array must have at least ${min} bytes`,
|
|
83
|
-
uint8ArrayMaxLength: (max) => `Uint8Array must have at most ${max} bytes`,
|
|
84
|
-
uint8ArrayExactLength: (length) => `Uint8Array must have exactly ${length} bytes`,
|
|
85
|
-
// Generic type error messages
|
|
86
|
-
expectedString: 'Expected string',
|
|
87
|
-
stringExpected: (received, expected) => `${expected}가 예상되었지만 ${received}를 받았습니다`,
|
|
88
|
-
stringBoolExpected: (validValues, received) => `잘못된 불린 문자열입니다. 다음 중 하나여야 합니다: ${validValues}, 받은 값: "${received}"`,
|
|
89
|
-
invalidJson: '잘못된 JSON',
|
|
90
|
-
stringPatternInvalid: '문자열이 필요한 패턴과 일치하지 않습니다',
|
|
91
|
-
// File validation messages
|
|
92
|
-
invalidFile: 'Expected a File object',
|
|
93
|
-
fileNotSupported: 'File API not supported in this environment',
|
|
94
|
-
fileMinSize: (min) => `File size must be at least ${min} bytes`,
|
|
95
|
-
fileMaxSize: (max) => `File size must not exceed ${max} bytes`,
|
|
96
|
-
fileMimeType: (allowed) => `Invalid file type. Expected: ${allowed.join(", ")}`,
|
|
97
|
-
// Function validation messages
|
|
98
|
-
invalidFunction: '함수가 예상되었습니다',
|
|
99
|
-
// CIDR validation messages
|
|
100
|
-
stringCidrv4: '유효하지 않은 IPv4 CIDR 블록',
|
|
101
|
-
stringCidrv6: '유효하지 않은 IPv6 CIDR 블록',
|
|
102
|
-
// Safe extend validation messages
|
|
103
|
-
safeExtendOverlap: (keys) => `기존 키를 덮어쓸 수 없습니다: ${keys.join(', ')}. 덮어쓰려면 extend()를 사용하세요.`
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
export { ko };
|
|
1
|
+
const e={invalidString:"유효하지 않은 문자열",stringMin:e=>`문자열은 최소 ${e}자여야 합니다`,stringMax:e=>`문자열은 최대 ${e}자여야 합니다`,stringLength:e=>`문자열은 정확히 ${e}자여야 합니다`,stringEmail:"유효하지 않은 이메일 주소",stringUrl:"유효하지 않은 URL",stringUuid:"유효하지 않은 UUID",stringRegex:"유효하지 않은 형식",stringStartsWith:e=>`문자열은 "${e}"로 시작해야 합니다`,stringEndsWith:e=>`문자열은 "${e}"로 끝나야 합니다`,stringIncludes:e=>`문자열은 "${e}"을 포함해야 합니다`,stringIp:"유효하지 않은 IP 주소",stringIpv4:"유효하지 않은 IPv4 주소",stringIpv6:"유효하지 않은 IPv6 주소",stringEmpty:"문자열은 비어있을 수 없습니다",invalidNumber:"유효하지 않은 숫자",numberMin:e=>`숫자는 최소 ${e}이어야 합니다`,numberMax:e=>`숫자는 최대 ${e}이어야 합니다`,numberInt:"숫자는 정수여야 합니다",numberPositive:"숫자는 양수여야 합니다",numberNegative:"숫자는 음수여야 합니다",numberNonnegative:"숫자는 음수일 수 없습니다",numberNonpositive:"숫자는 양수일 수 없습니다",numberFinite:"숫자는 유한해야 합니다",numberSafe:"숫자는 안전한 정수여야 합니다",numberMultipleOf:e=>`숫자는 ${e}의 배수여야 합니다`,invalidBoolean:"유효하지 않은 불린 값",invalidDate:"유효하지 않은 날짜",dateMin:e=>`날짜는 ${e.toISOString()} 이후여야 합니다`,dateMax:e=>`날짜는 ${e.toISOString()} 이전이어야 합니다`,invalidObject:"유효하지 않은 객체",unexpectedKeys:e=>`예상치 못한 키: ${e.join(", ")}`,invalidArray:"유효하지 않은 배열",arrayMin:e=>`배열은 최소 ${e}개의 요소가 있어야 합니다`,arrayMax:e=>`배열은 최대 ${e}개의 요소가 있어야 합니다`,arrayLength:e=>`배열은 정확히 ${e}개의 요소가 있어야 합니다`,arrayEmpty:"배열은 비어있을 수 없습니다",arrayItem:(e,i)=>`인덱스 ${e}의 유효하지 않은 요소: ${i}`,objectField:(e,i)=>`유효하지 않은 필드 "${e}": ${i}`,unionNoMatch:e=>`어떤 유니온 멤버도 일치하지 않았습니다: ${e.join(", ")}`,intersectionError:e=>`교집합 검증에 실패했습니다: ${e}`,literalExpected:(e,i)=>`${e}가 예상되었지만 ${i}를 받았습니다`,enumExpected:(e,i)=>`[${e.join(", ")}] 중 하나가 예상되었지만 ${i}를 받았습니다`,expectedUndefined:"undefined가 예상되었습니다",neverType:"never 타입은 파싱할 수 없습니다",invalidBigint:"유효하지 않은 bigint",invalidSymbol:"유효하지 않은 심볼",invalidTuple:"유효하지 않은 튜플",tupleLength:(e,i)=>`튜플은 정확히 ${e}개의 요소가 있어야 하지만 ${i}개를 받았습니다`,invalidRecord:"유효하지 않은 레코드",invalidSet:"유효하지 않은 Set",invalidMap:"유효하지 않은 Map",transformError:e=>`변환 실패: ${e}`,refinementError:e=>`정제 실패: ${e}`,customValidationError:e=>`사용자 정의 유효성 검사 실패: ${e}`,coercionFailed:(e,i)=>`${JSON.stringify(i)}를 ${e}로 강제 변환할 수 없습니다`,codecDecodeFailed:"Failed to decode value",codecEncodeFailed:"Failed to encode value",codecAsyncNotSupported:"Async codec operations require using parseAsync/encodeAsync methods",invalidBase64:"Invalid base64 string",invalidHex:"Invalid hexadecimal string",expectedUint8Array:"Expected Uint8Array",uint8ArrayMinLength:e=>`Uint8Array must have at least ${e} bytes`,uint8ArrayMaxLength:e=>`Uint8Array must have at most ${e} bytes`,uint8ArrayExactLength:e=>`Uint8Array must have exactly ${e} bytes`,expectedString:"Expected string",stringExpected:(e,i)=>`${i}가 예상되었지만 ${e}를 받았습니다`,stringBoolExpected:(e,i)=>`잘못된 불린 문자열입니다. 다음 중 하나여야 합니다: ${e}, 받은 값: "${i}"`,invalidJson:"잘못된 JSON",stringPatternInvalid:"문자열이 필요한 패턴과 일치하지 않습니다",invalidFile:"Expected a File object",fileNotSupported:"File API not supported in this environment",fileMinSize:e=>`File size must be at least ${e} bytes`,fileMaxSize:e=>`File size must not exceed ${e} bytes`,fileMimeType:e=>`Invalid file type. Expected: ${e.join(", ")}`,invalidFunction:"함수가 예상되었습니다",stringCidrv4:"유효하지 않은 IPv4 CIDR 블록",stringCidrv6:"유효하지 않은 IPv6 CIDR 블록",safeExtendOverlap:e=>`기존 키를 덮어쓸 수 없습니다: ${e.join(", ")}. 덮어쓰려면 extend()를 사용하세요.`};export{e as ko};
|
package/dist/locales/lazy.js
CHANGED
|
@@ -1,177 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export { getLocale, getMessages, getMessagesForLocale } from './runtime.js';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* VLD Lazy Locale System
|
|
6
|
-
*
|
|
7
|
-
* This module provides lazy loading for locale files to reduce bundle size.
|
|
8
|
-
* English is always bundled as a fallback; other languages are loaded on demand.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```typescript
|
|
12
|
-
* // Async loading (recommended for web apps)
|
|
13
|
-
* import { setLocaleAsync, getMessages } from '@oxog/vld/locales';
|
|
14
|
-
* await setLocaleAsync('tr');
|
|
15
|
-
*
|
|
16
|
-
* // Static import (for SSR or known locales)
|
|
17
|
-
* import { tr } from '@oxog/vld/locales/tr';
|
|
18
|
-
* import { registerLocale } from '@oxog/vld/locales';
|
|
19
|
-
* registerLocale('tr', tr);
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
const localeLoaders = {
|
|
23
|
-
// Base languages
|
|
24
|
-
tr: () => import('./tr.js').then(m => m.tr),
|
|
25
|
-
es: () => import('./es.js').then(m => m.es),
|
|
26
|
-
fr: () => import('./fr.js').then(m => m.fr),
|
|
27
|
-
de: () => import('./de.js').then(m => m.de),
|
|
28
|
-
it: () => import('./it.js').then(m => m.it),
|
|
29
|
-
pt: () => import('./pt.js').then(m => m.pt),
|
|
30
|
-
ru: () => import('./ru.js').then(m => m.ru),
|
|
31
|
-
ja: () => import('./ja.js').then(m => m.ja),
|
|
32
|
-
ko: () => import('./ko.js').then(m => m.ko),
|
|
33
|
-
zh: () => import('./zh.js').then(m => m.zh),
|
|
34
|
-
ar: () => import('./ar.js').then(m => m.ar),
|
|
35
|
-
hi: () => import('./hi.js').then(m => m.hi),
|
|
36
|
-
nl: () => import('./nl.js').then(m => m.nl),
|
|
37
|
-
pl: () => import('./pl.js').then(m => m.pl),
|
|
38
|
-
// Major European Languages
|
|
39
|
-
da: () => import('./da.js').then(m => m.da),
|
|
40
|
-
sv: () => import('./sv.js').then(m => m.sv),
|
|
41
|
-
no: () => import('./no.js').then(m => m.no),
|
|
42
|
-
fi: () => import('./fi.js').then(m => m.fi),
|
|
43
|
-
// Major Asian Languages
|
|
44
|
-
th: () => import('./th.js').then(m => m.th),
|
|
45
|
-
vi: () => import('./vi.js').then(m => m.vi),
|
|
46
|
-
id: () => import('./id.js').then(m => m.id),
|
|
47
|
-
bn: () => import('./bn.js').then(m => m.bn),
|
|
48
|
-
// African Languages
|
|
49
|
-
sw: () => import('./sw.js').then(m => m.sw),
|
|
50
|
-
af: () => import('./af.js').then(m => m.af),
|
|
51
|
-
// American Languages
|
|
52
|
-
'pt-BR': () => import('./pt-BR.js').then(m => m.ptBR),
|
|
53
|
-
'es-MX': () => import('./es-MX.js').then(m => m.esMX),
|
|
54
|
-
};
|
|
55
|
-
// ============================================
|
|
56
|
-
// Public API
|
|
57
|
-
// ============================================
|
|
58
|
-
/**
|
|
59
|
-
* Set the current locale asynchronously (lazy loading)
|
|
60
|
-
* This is the recommended way to load locales in web applications.
|
|
61
|
-
*
|
|
62
|
-
* @param locale - The locale to set
|
|
63
|
-
* @throws Error if the locale is not supported
|
|
64
|
-
*
|
|
65
|
-
* @example
|
|
66
|
-
* ```typescript
|
|
67
|
-
* await setLocaleAsync('tr');
|
|
68
|
-
* // Now all validation errors will be in Turkish
|
|
69
|
-
* ```
|
|
70
|
-
*/
|
|
71
|
-
async function setLocaleAsync(locale) {
|
|
72
|
-
// If already loaded, just switch
|
|
73
|
-
if (isLocaleLoaded(locale)) {
|
|
74
|
-
setLocale$1(locale);
|
|
75
|
-
return;
|
|
76
|
-
}
|
|
77
|
-
// If English, it's already bundled
|
|
78
|
-
if (locale === 'en') {
|
|
79
|
-
setLocale$1('en');
|
|
80
|
-
return;
|
|
81
|
-
}
|
|
82
|
-
// Try to load dynamically
|
|
83
|
-
const loader = localeLoaders[locale];
|
|
84
|
-
if (!loader) {
|
|
85
|
-
console.warn(`Locale "${locale}" not available. Falling back to English.`);
|
|
86
|
-
return;
|
|
87
|
-
}
|
|
88
|
-
try {
|
|
89
|
-
const messages = await loader();
|
|
90
|
-
registerLocale(locale, messages);
|
|
91
|
-
setLocale$1(locale);
|
|
92
|
-
}
|
|
93
|
-
catch (error) {
|
|
94
|
-
console.warn(`Failed to load locale "${locale}". Falling back to English.`, error);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* Set the current locale synchronously
|
|
99
|
-
* Only works if the locale has been pre-loaded or registered.
|
|
100
|
-
*
|
|
101
|
-
* @param locale - The locale to set
|
|
102
|
-
* @throws Error if the locale is not preloaded
|
|
103
|
-
*
|
|
104
|
-
* @example
|
|
105
|
-
* ```typescript
|
|
106
|
-
* import { tr } from '@oxog/vld/locales/tr';
|
|
107
|
-
* import { registerLocale, setLocale } from '@oxog/vld/locales';
|
|
108
|
-
* registerLocale('tr', tr);
|
|
109
|
-
* setLocale('tr'); // Now works synchronously
|
|
110
|
-
* ```
|
|
111
|
-
*/
|
|
112
|
-
function setLocale(locale) {
|
|
113
|
-
if (isLocaleLoaded(locale)) {
|
|
114
|
-
setLocale$1(locale);
|
|
115
|
-
return;
|
|
116
|
-
}
|
|
117
|
-
throw new Error(`Locale "${locale}" not preloaded. Use setLocaleAsync() for lazy loading ` +
|
|
118
|
-
`or import the locale directly: import { ${locale} } from '@oxog/vld/locales/${locale}'`);
|
|
119
|
-
}
|
|
120
|
-
/**
|
|
121
|
-
* Register a locale for synchronous access
|
|
122
|
-
* Use this after importing a locale file directly.
|
|
123
|
-
*
|
|
124
|
-
* @param locale - The locale code
|
|
125
|
-
* @param messages - The locale messages object
|
|
126
|
-
*
|
|
127
|
-
* @example
|
|
128
|
-
* ```typescript
|
|
129
|
-
* import { tr } from '@oxog/vld/locales/tr';
|
|
130
|
-
* import { registerLocale } from '@oxog/vld/locales';
|
|
131
|
-
* registerLocale('tr', tr);
|
|
132
|
-
* ```
|
|
133
|
-
*/
|
|
134
|
-
/**
|
|
135
|
-
* Check if a locale is supported (can be lazy loaded)
|
|
136
|
-
*
|
|
137
|
-
* @param locale - The locale to check
|
|
138
|
-
*/
|
|
139
|
-
function isLocaleSupported(locale) {
|
|
140
|
-
return locale === 'en' || locale in localeLoaders;
|
|
141
|
-
}
|
|
142
|
-
/**
|
|
143
|
-
* Get list of all supported locales
|
|
144
|
-
*/
|
|
145
|
-
function getSupportedLocales() {
|
|
146
|
-
return ['en', ...Object.keys(localeLoaders)];
|
|
147
|
-
}
|
|
148
|
-
/**
|
|
149
|
-
* Preload multiple locales in parallel
|
|
150
|
-
* Useful for SSR or when you know which locales will be needed.
|
|
151
|
-
*
|
|
152
|
-
* @param locales - Array of locale codes to preload
|
|
153
|
-
*
|
|
154
|
-
* @example
|
|
155
|
-
* ```typescript
|
|
156
|
-
* // Preload Turkish, German, and French
|
|
157
|
-
* await preloadLocales(['tr', 'de', 'fr']);
|
|
158
|
-
* ```
|
|
159
|
-
*/
|
|
160
|
-
async function preloadLocales(locales) {
|
|
161
|
-
await Promise.all(locales.map(async (locale) => {
|
|
162
|
-
if (!isLocaleLoaded(locale) && locale !== 'en') {
|
|
163
|
-
const loader = localeLoaders[locale];
|
|
164
|
-
if (loader) {
|
|
165
|
-
try {
|
|
166
|
-
const messages = await loader();
|
|
167
|
-
registerLocale(locale, messages);
|
|
168
|
-
}
|
|
169
|
-
catch {
|
|
170
|
-
// Silently ignore preload failures
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
}));
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
export { getSupportedLocales, isLocaleLoaded, isLocaleSupported, preloadLocales, registerLocale, setLocale, setLocaleAsync };
|
|
1
|
+
import{isLocaleLoaded as t,registerLocale as e,setLocale as o}from"./runtime.js";export{getLocale,getMessages,getMessagesForLocale}from"./runtime.js";const n={tr:()=>import("./tr.js").then(t=>t.tr),es:()=>import("./es.js").then(t=>t.es),fr:()=>import("./fr.js").then(t=>t.fr),de:()=>import("./de.js").then(t=>t.de),it:()=>import("./it.js").then(t=>t.it),pt:()=>import("./pt.js").then(t=>t.pt),ru:()=>import("./ru.js").then(t=>t.ru),ja:()=>import("./ja.js").then(t=>t.ja),ko:()=>import("./ko.js").then(t=>t.ko),zh:()=>import("./zh.js").then(t=>t.zh),ar:()=>import("./ar.js").then(t=>t.ar),hi:()=>import("./hi.js").then(t=>t.hi),nl:()=>import("./nl.js").then(t=>t.nl),pl:()=>import("./pl.js").then(t=>t.pl),da:()=>import("./da.js").then(t=>t.da),sv:()=>import("./sv.js").then(t=>t.sv),no:()=>import("./no.js").then(t=>t.no),fi:()=>import("./fi.js").then(t=>t.fi),th:()=>import("./th.js").then(t=>t.th),vi:()=>import("./vi.js").then(t=>t.vi),id:()=>import("./id.js").then(t=>t.id),bn:()=>import("./bn.js").then(t=>t.bn),sw:()=>import("./sw.js").then(t=>t.sw),af:()=>import("./af.js").then(t=>t.af),"pt-BR":()=>import("./pt-BR.js").then(t=>t.ptBR),"es-MX":()=>import("./es-MX.js").then(t=>t.esMX)};async function i(i){if(t(i))return void o(i);if("en"===i)return void o("en");const r=n[i];if(r)try{const t=await r();e(i,t),o(i)}catch(t){console.warn(`Failed to load locale "${i}". Falling back to English.`,t)}else console.warn(`Locale "${i}" not available. Falling back to English.`)}function r(e){if(!t(e))throw new Error(`Locale "${e}" not preloaded. Use setLocaleAsync() for lazy loading or import the locale directly: import { ${e} } from '@oxog/vld/locales/${e}'`);o(e)}function s(t){return"en"===t||t in n}function a(){return["en",...Object.keys(n)]}async function p(o){await Promise.all(o.map(async o=>{if(!t(o)&&"en"!==o){const t=n[o];if(t)try{const n=await t();e(o,n)}catch{}}}))}export{a as getSupportedLocales,t as isLocaleLoaded,s as isLocaleSupported,p as preloadLocales,e as registerLocale,r as setLocale,i as setLocaleAsync};
|
package/dist/locales/nl.js
CHANGED
|
@@ -1,106 +1 @@
|
|
|
1
|
-
const
|
|
2
|
-
// String validation messages
|
|
3
|
-
invalidString: 'Ongeldige string',
|
|
4
|
-
stringMin: (min) => `String moet ten minste ${min} tekens lang zijn`,
|
|
5
|
-
stringMax: (max) => `String mag niet meer dan ${max} tekens lang zijn`,
|
|
6
|
-
stringLength: (length) => `String moet precies ${length} tekens lang zijn`,
|
|
7
|
-
stringEmail: 'Ongeldig e-mailadres',
|
|
8
|
-
stringUrl: 'Ongeldige URL',
|
|
9
|
-
stringUuid: 'Ongeldige UUID',
|
|
10
|
-
stringRegex: 'Ongeldig formaat',
|
|
11
|
-
stringStartsWith: (prefix) => `String moet beginnen met "${prefix}"`,
|
|
12
|
-
stringEndsWith: (suffix) => `String moet eindigen met "${suffix}"`,
|
|
13
|
-
stringIncludes: (substring) => `String moet "${substring}" bevatten`,
|
|
14
|
-
stringIp: 'Ongeldig IP-adres',
|
|
15
|
-
stringIpv4: 'Ongeldig IPv4-adres',
|
|
16
|
-
stringIpv6: 'Ongeldig IPv6-adres',
|
|
17
|
-
stringEmpty: 'String mag niet leeg zijn',
|
|
18
|
-
// Number validation messages
|
|
19
|
-
invalidNumber: 'Ongeldig getal',
|
|
20
|
-
numberMin: (min) => `Getal moet ten minste ${min} zijn`,
|
|
21
|
-
numberMax: (max) => `Getal mag niet meer dan ${max} zijn`,
|
|
22
|
-
numberInt: 'Getal moet een geheel getal zijn',
|
|
23
|
-
numberPositive: 'Getal moet positief zijn',
|
|
24
|
-
numberNegative: 'Getal moet negatief zijn',
|
|
25
|
-
numberNonnegative: 'Getal mag niet negatief zijn',
|
|
26
|
-
numberNonpositive: 'Getal mag niet positief zijn',
|
|
27
|
-
numberFinite: 'Getal moet eindig zijn',
|
|
28
|
-
numberSafe: 'Getal moet een veilig geheel getal zijn',
|
|
29
|
-
numberMultipleOf: (value) => `Getal moet een veelvoud van ${value} zijn`,
|
|
30
|
-
// Boolean validation messages
|
|
31
|
-
invalidBoolean: 'Ongeldige boolean waarde',
|
|
32
|
-
// Date validation messages
|
|
33
|
-
invalidDate: 'Ongeldige datum',
|
|
34
|
-
dateMin: (date) => `Datum moet na ${date.toISOString()} zijn`,
|
|
35
|
-
dateMax: (date) => `Datum moet voor ${date.toISOString()} zijn`,
|
|
36
|
-
// Object validation messages
|
|
37
|
-
invalidObject: 'Ongeldig object',
|
|
38
|
-
unexpectedKeys: (keys) => `Onverwachte sleutels: ${keys.join(', ')}`,
|
|
39
|
-
// Array validation messages
|
|
40
|
-
invalidArray: 'Ongeldige array',
|
|
41
|
-
arrayMin: (min) => `Array moet ten minste ${min} elementen hebben`,
|
|
42
|
-
arrayMax: (max) => `Array mag niet meer dan ${max} elementen hebben`,
|
|
43
|
-
arrayLength: (length) => `Array moet precies ${length} elementen hebben`,
|
|
44
|
-
arrayEmpty: 'Array mag niet leeg zijn',
|
|
45
|
-
arrayItem: (index, error) => `Ongeldig element op index ${index}: ${error}`,
|
|
46
|
-
// Object field validation
|
|
47
|
-
objectField: (field, error) => `Ongeldig veld "${field}": ${error}`,
|
|
48
|
-
// Union validation messages
|
|
49
|
-
unionNoMatch: (errors) => `Geen union lid kwam overeen: ${errors.join(', ')}`,
|
|
50
|
-
// Intersection validation messages
|
|
51
|
-
intersectionError: (error) => `Intersection validatie mislukt: ${error}`,
|
|
52
|
-
// Literal validation messages
|
|
53
|
-
literalExpected: (expected, received) => `Verwacht ${expected}, ontvangen ${received}`,
|
|
54
|
-
// Enum validation messages
|
|
55
|
-
enumExpected: (values, received) => `Verwacht een van [${values.join(', ')}], ontvangen ${received}`,
|
|
56
|
-
// Special type validation messages
|
|
57
|
-
expectedUndefined: 'Verwacht undefined',
|
|
58
|
-
neverType: 'Never type kan niet worden geparseerd',
|
|
59
|
-
// New advanced type validation messages
|
|
60
|
-
invalidBigint: 'Ongeldige bigint',
|
|
61
|
-
invalidSymbol: 'Ongeldig symbool',
|
|
62
|
-
invalidTuple: 'Ongeldige tuple',
|
|
63
|
-
tupleLength: (expected, received) => `Tuple moet precies ${expected} elementen hebben, ontvangen ${received}`,
|
|
64
|
-
invalidRecord: 'Ongeldig record',
|
|
65
|
-
invalidSet: 'Ongeldige set',
|
|
66
|
-
invalidMap: 'Ongeldige map',
|
|
67
|
-
// Transformation and refinement messages
|
|
68
|
-
transformError: (error) => `Transformatie mislukt: ${error}`,
|
|
69
|
-
refinementError: (error) => `Verfijning mislukt: ${error}`,
|
|
70
|
-
customValidationError: (error) => `Aangepaste validatie mislukt: ${error}`,
|
|
71
|
-
// Coercion messages
|
|
72
|
-
coercionFailed: (type, value) => `Kan ${JSON.stringify(value)} niet omzetten naar ${type}`,
|
|
73
|
-
// Codec messages
|
|
74
|
-
codecDecodeFailed: 'Failed to decode value',
|
|
75
|
-
codecEncodeFailed: 'Failed to encode value',
|
|
76
|
-
codecAsyncNotSupported: 'Async codec operations require using parseAsync/encodeAsync methods',
|
|
77
|
-
// Base64/Hex messages
|
|
78
|
-
invalidBase64: 'Invalid base64 string',
|
|
79
|
-
invalidHex: 'Invalid hexadecimal string',
|
|
80
|
-
// Uint8Array messages
|
|
81
|
-
expectedUint8Array: 'Expected Uint8Array',
|
|
82
|
-
uint8ArrayMinLength: (min) => `Uint8Array must have at least ${min} bytes`,
|
|
83
|
-
uint8ArrayMaxLength: (max) => `Uint8Array must have at most ${max} bytes`,
|
|
84
|
-
uint8ArrayExactLength: (length) => `Uint8Array must have exactly ${length} bytes`,
|
|
85
|
-
// Generic type error messages
|
|
86
|
-
expectedString: 'Expected string',
|
|
87
|
-
stringExpected: (received, expected) => `Verwacht ${expected}, ontvangen ${received}`,
|
|
88
|
-
stringBoolExpected: (validValues, received) => `Ongeldige boolean string. Een van de volgende verwacht: ${validValues}, ontvangen: "${received}"`,
|
|
89
|
-
invalidJson: 'Ongeldige JSON',
|
|
90
|
-
stringPatternInvalid: 'Tekenreeks komt niet overeen met het vereiste patroon',
|
|
91
|
-
// File validation messages
|
|
92
|
-
invalidFile: 'Expected a File object',
|
|
93
|
-
fileNotSupported: 'File API not supported in this environment',
|
|
94
|
-
fileMinSize: (min) => `File size must be at least ${min} bytes`,
|
|
95
|
-
fileMaxSize: (max) => `File size must not exceed ${max} bytes`,
|
|
96
|
-
fileMimeType: (allowed) => `Invalid file type. Expected: ${allowed.join(", ")}`,
|
|
97
|
-
// Function validation messages
|
|
98
|
-
invalidFunction: 'Een functie verwacht',
|
|
99
|
-
// CIDR validation messages
|
|
100
|
-
stringCidrv4: 'Ongeldig IPv4 CIDR-blok',
|
|
101
|
-
stringCidrv6: 'Ongeldig IPv6 CIDR-blok',
|
|
102
|
-
// Safe extend validation messages
|
|
103
|
-
safeExtendOverlap: (keys) => `Kan bestaande sleutels niet overschrijven: ${keys.join(', ')}. Gebruik extend() als je wilt overschrijven.`
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
export { nl };
|
|
1
|
+
const e={invalidString:"Ongeldige string",stringMin:e=>`String moet ten minste ${e} tekens lang zijn`,stringMax:e=>`String mag niet meer dan ${e} tekens lang zijn`,stringLength:e=>`String moet precies ${e} tekens lang zijn`,stringEmail:"Ongeldig e-mailadres",stringUrl:"Ongeldige URL",stringUuid:"Ongeldige UUID",stringRegex:"Ongeldig formaat",stringStartsWith:e=>`String moet beginnen met "${e}"`,stringEndsWith:e=>`String moet eindigen met "${e}"`,stringIncludes:e=>`String moet "${e}" bevatten`,stringIp:"Ongeldig IP-adres",stringIpv4:"Ongeldig IPv4-adres",stringIpv6:"Ongeldig IPv6-adres",stringEmpty:"String mag niet leeg zijn",invalidNumber:"Ongeldig getal",numberMin:e=>`Getal moet ten minste ${e} zijn`,numberMax:e=>`Getal mag niet meer dan ${e} zijn`,numberInt:"Getal moet een geheel getal zijn",numberPositive:"Getal moet positief zijn",numberNegative:"Getal moet negatief zijn",numberNonnegative:"Getal mag niet negatief zijn",numberNonpositive:"Getal mag niet positief zijn",numberFinite:"Getal moet eindig zijn",numberSafe:"Getal moet een veilig geheel getal zijn",numberMultipleOf:e=>`Getal moet een veelvoud van ${e} zijn`,invalidBoolean:"Ongeldige boolean waarde",invalidDate:"Ongeldige datum",dateMin:e=>`Datum moet na ${e.toISOString()} zijn`,dateMax:e=>`Datum moet voor ${e.toISOString()} zijn`,invalidObject:"Ongeldig object",unexpectedKeys:e=>`Onverwachte sleutels: ${e.join(", ")}`,invalidArray:"Ongeldige array",arrayMin:e=>`Array moet ten minste ${e} elementen hebben`,arrayMax:e=>`Array mag niet meer dan ${e} elementen hebben`,arrayLength:e=>`Array moet precies ${e} elementen hebben`,arrayEmpty:"Array mag niet leeg zijn",arrayItem:(e,n)=>`Ongeldig element op index ${e}: ${n}`,objectField:(e,n)=>`Ongeldig veld "${e}": ${n}`,unionNoMatch:e=>`Geen union lid kwam overeen: ${e.join(", ")}`,intersectionError:e=>`Intersection validatie mislukt: ${e}`,literalExpected:(e,n)=>`Verwacht ${e}, ontvangen ${n}`,enumExpected:(e,n)=>`Verwacht een van [${e.join(", ")}], ontvangen ${n}`,expectedUndefined:"Verwacht undefined",neverType:"Never type kan niet worden geparseerd",invalidBigint:"Ongeldige bigint",invalidSymbol:"Ongeldig symbool",invalidTuple:"Ongeldige tuple",tupleLength:(e,n)=>`Tuple moet precies ${e} elementen hebben, ontvangen ${n}`,invalidRecord:"Ongeldig record",invalidSet:"Ongeldige set",invalidMap:"Ongeldige map",transformError:e=>`Transformatie mislukt: ${e}`,refinementError:e=>`Verfijning mislukt: ${e}`,customValidationError:e=>`Aangepaste validatie mislukt: ${e}`,coercionFailed:(e,n)=>`Kan ${JSON.stringify(n)} niet omzetten naar ${e}`,codecDecodeFailed:"Failed to decode value",codecEncodeFailed:"Failed to encode value",codecAsyncNotSupported:"Async codec operations require using parseAsync/encodeAsync methods",invalidBase64:"Invalid base64 string",invalidHex:"Invalid hexadecimal string",expectedUint8Array:"Expected Uint8Array",uint8ArrayMinLength:e=>`Uint8Array must have at least ${e} bytes`,uint8ArrayMaxLength:e=>`Uint8Array must have at most ${e} bytes`,uint8ArrayExactLength:e=>`Uint8Array must have exactly ${e} bytes`,expectedString:"Expected string",stringExpected:(e,n)=>`Verwacht ${n}, ontvangen ${e}`,stringBoolExpected:(e,n)=>`Ongeldige boolean string. Een van de volgende verwacht: ${e}, ontvangen: "${n}"`,invalidJson:"Ongeldige JSON",stringPatternInvalid:"Tekenreeks komt niet overeen met het vereiste patroon",invalidFile:"Expected a File object",fileNotSupported:"File API not supported in this environment",fileMinSize:e=>`File size must be at least ${e} bytes`,fileMaxSize:e=>`File size must not exceed ${e} bytes`,fileMimeType:e=>`Invalid file type. Expected: ${e.join(", ")}`,invalidFunction:"Een functie verwacht",stringCidrv4:"Ongeldig IPv4 CIDR-blok",stringCidrv6:"Ongeldig IPv6 CIDR-blok",safeExtendOverlap:e=>`Kan bestaande sleutels niet overschrijven: ${e.join(", ")}. Gebruik extend() als je wilt overschrijven.`};export{e as nl};
|