ac1c18c737dcac936d4f4cd6a5e68fb8bd6d56af
Ora il toast error mostra es. 'Versione: deve essere nel formato X.Y.Z
(esempio: 1.1.0)' invece di 'version: String should match pattern
^\d+\.\d+\.\d+$'.
2 nuove utility:
- FIELD_LABELS_IT: mapping field name -> label IT (version -> 'Versione',
kind -> 'Tipo regola', subject -> 'Oggetto', body_html -> 'Corpo HTML',
validity_days -> 'Validita', ecc. — 20 campi mappati)
- translatePydanticMsg(msg, type, ctx): riconosce i type Pydantic comuni:
* string_pattern_mismatch + ctx.pattern semver -> 'deve essere nel
formato X.Y.Z (esempio: 1.1.0)'
* missing -> 'campo obbligatorio mancante'
* string_type / int_type / bool_type -> 'deve essere stringa/intero/bool'
* greater_than_equal / less_than_equal -> 'deve essere almeno N / al
massimo N' (usando ctx.ge / ctx.le)
* string_too_short / too_long -> 'troppo corto/lungo (min/max N caratteri)'
* value_error -> rimuove il prefisso 'Value error, '
* fallback: msg originale (non rompe nulla per casi non mappati)
formatErrorDetail ora usa entrambi: estrae l'ultimo loc (field name piu
preciso), lo traduce via FIELD_LABELS_IT, concatena col msg tradotto.
GEPAFIN-FE
Gepafin Front End
Commands
npm run start - start development server
npm run build:dev - make build based on 'dev' env variables
npm run build:prod - make build based on 'prod' env variables
HUB IDs
p4lk3bcx1RStqTaIVVbXs - gepafin
t7jh5wfg9QXylNaTZkPoE - sviluppumbria
Description
Languages
JavaScript
85.9%
SCSS
14.1%