BFLOWS ac1c18c737 feat(ar1-admin): messaggi errore Pydantic tradotti in italiano umano
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.
2026-04-23 15:27:30 +02:00
2024-10-31 10:08:59 +01:00
2024-08-09 10:41:54 +02:00
2026-01-21 11:01:11 +01:00
2026-03-27 12:14:28 +01:00
2026-03-27 12:14:28 +01:00
2024-08-09 08:51:20 +02:00
2026-03-27 12:48:05 +01:00
:
2024-12-23 11:37:10 +01:00

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
BFLOWS — bflows-bandi-fe
Readme 3.7 MiB
Languages
JavaScript 85.9%
SCSS 14.1%