Internationalization topic

Error codes, and the messages they resolve to.

Every failure emits a code before it emits a sentence: VCode and its per-type siblings — VStringCode, VNumberCode, VDateCode, VMapCode, VObjectCode, and the rest — are the stable identifiers a client can branch on. They do not change when the wording does.

VLocale maps those codes to text. Set one globally with V.setLocale(...) and every schema in the process follows; override a single message with the message: parameter on the validator itself. Lookup accepts both the flat form ('string.required') and the nested one, falling back to the trailing segment when a prefixed key has no match — so a partial translation degrades to the generic message instead of showing a raw code.

Country-specific messages live in extension packages, such as validart_br.

Classes

VArrayCode Internationalization
Error codes emitted by VArray and its validators.
VBoolCode Internationalization
Error codes emitted by VBool and its validators.
VCode Internationalization
Machine-readable error code constants used by validators.
VDateCode Internationalization
Error codes emitted by VDate and its validators.
VDoubleCode Internationalization
Error codes emitted by VDouble and its validators.
VEnumCode Internationalization
Error codes emitted by VEnum and its validators.
VIntCode Internationalization
Error codes emitted by VInt and its validators.
VLiteralCode Internationalization
Error codes emitted by VLiteral and its validators.
VLocale Internationalization
Provides locale-aware error message translations.
VMapCode Internationalization
Error codes emitted by VMap and its validators.
VNumberCode Internationalization
Error codes shared by VInt and VDouble — range and sign checks that apply to any numeric value.
VObjectCode Internationalization
Error codes emitted by VObject and its validators.
VStringCode Internationalization
Error codes emitted by VString and its validators.
VUnionCode Internationalization
Error codes emitted by VUnion and its validators.