297 lines
9.7 KiB
TypeScript
297 lines
9.7 KiB
TypeScript
export const ita = {
|
|
errors: {
|
|
invalid_type: "Atteso {{expected}}, ricevuto {{received}}",
|
|
invalid_type_received_undefined: "Obbligatorio",
|
|
invalid_literal: "Valore literal non valido, atteso {{expected}}",
|
|
unrecognized_keys: "Campo/i non riconosciuto nell'oggetto: {{- keys}}",
|
|
invalid_union: "Input non valido",
|
|
invalid_union_discriminator:
|
|
"Valore discriminante non valido. Atteso {{- options}}",
|
|
invalid_enum_value:
|
|
"Valore dell'enum non valido. Atteso {{- options}}, ricevuto '{{received}}'",
|
|
invalid_arguments: "Argomenti della funzione non validi",
|
|
invalid_return_type: "Tipo di ritorno della funzione non valido",
|
|
invalid_date: "Data non valida",
|
|
custom: "Input non valido",
|
|
invalid_intersection_types:
|
|
"Il risultato dell'intersezione non può essere unito",
|
|
not_multiple_of: "Il numero deve essere un multiplo di {{multipleOf}}",
|
|
not_finite: "Il numero deve essere finito",
|
|
invalid_string: {
|
|
email: "{{validation}} non valida",
|
|
url: "{{validation}} non valido",
|
|
uuid: "{{validation}} non valido",
|
|
cuid: "{{validation}} non valido",
|
|
regex: "Non valida",
|
|
datetime: "{{validation}} non valido",
|
|
startsWith: 'Input non valido: deve iniziare con "{{startsWith}}"',
|
|
endsWith: 'Input non valido: deve finire con "{{endsWith}}"',
|
|
},
|
|
too_small: {
|
|
array: {
|
|
exact: "L'array deve contenere esattamente {{minimum}} elementi",
|
|
inclusive: "L'array deve contenere almeno {{minimum}} elementi",
|
|
not_inclusive: "L'array deve contenere più di {{minimum}} elementi",
|
|
},
|
|
string: {
|
|
exact: "La stringa deve contenere esattamente {{minimum}} caratteri",
|
|
//inclusive: "La stringa deve contenere almeno {{minimum}} caratteri",
|
|
inclusive: "Il campo non può essere vuoto",
|
|
not_inclusive: "La stringa deve contenere più di {{minimum}} caratteri",
|
|
},
|
|
number: {
|
|
exact: "Il numero deve essere esattamente {{minimum}}",
|
|
inclusive: "Il numero deve essere maggiore o uguale a {{minimum}}",
|
|
not_inclusive: "Il numero deve essere maggiore di {{minimum}}",
|
|
},
|
|
set: {
|
|
exact: "Input non valido",
|
|
inclusive: "Input non valido",
|
|
not_inclusive: "Input non valido",
|
|
},
|
|
date: {
|
|
exact: "La data deve essere esattamente {{- minimum, datetime}}",
|
|
inclusive:
|
|
"La data deve essere maggiore di o uguale a {{- minimum, datetime}}",
|
|
not_inclusive: "La data deve essere maggiore {{- minimum, datetime}}",
|
|
},
|
|
},
|
|
too_big: {
|
|
array: {
|
|
exact: "L'array deve contenere esattamente {{maximum}} elementi",
|
|
inclusive: "L'array deve contenere al massimo {{maximum}} elementi",
|
|
not_inclusive: "L'array deve contenere meno di {{maximum}} elementi",
|
|
},
|
|
string: {
|
|
exact: "La stringa deve contenere esattamente {{maximum}} caratteri",
|
|
inclusive: "La stringa deve contenere al massimo {{maximum}} caratteri",
|
|
not_inclusive:
|
|
"La stringa deve contenere meno di {{maximum}} caratteri",
|
|
},
|
|
number: {
|
|
exact: "Il numero deve essere esattamente {{maximum}}",
|
|
inclusive: "Il numero deve essere minore di o uguale a {{maximum}}",
|
|
not_inclusive: "Il numero deve essere minore di {{maximum}}",
|
|
},
|
|
set: {
|
|
exact: "Input non valido",
|
|
inclusive: "Input non valido",
|
|
not_inclusive: "Input non valido",
|
|
},
|
|
date: {
|
|
exact: "La data deve essere esattamente {{- maximum, datetime}}",
|
|
inclusive:
|
|
"La data deve essere minore di o uguale a {{- maximum, datetime}}",
|
|
not_inclusive: "La data deve essere minore di {{- maximum, datetime}}",
|
|
},
|
|
},
|
|
},
|
|
validations: {
|
|
email: "email",
|
|
url: "url",
|
|
uuid: "uuid",
|
|
cuid: "cuid",
|
|
regex: "regex",
|
|
datetime: "datetime",
|
|
},
|
|
types: {
|
|
function: "function",
|
|
number: "number",
|
|
string: "string",
|
|
nan: "nan",
|
|
integer: "integer",
|
|
float: "float",
|
|
boolean: "boolean",
|
|
date: "date",
|
|
bigint: "bigint",
|
|
undefined: "undefined",
|
|
symbol: "symbol",
|
|
null: "null",
|
|
array: "array",
|
|
object: "object",
|
|
unknown: "unknown",
|
|
promise: "promise",
|
|
void: "void",
|
|
never: "never",
|
|
map: "map",
|
|
set: "set",
|
|
},
|
|
local_types: {
|
|
function: "funzione",
|
|
number: "numero",
|
|
string: "testo",
|
|
nan: "vuoto",
|
|
integer: "numero",
|
|
float: "numero",
|
|
boolean: "si/no",
|
|
date: "data",
|
|
bigint: "numero",
|
|
undefined: "indefinito",
|
|
symbol: "simbolo",
|
|
null: "vuoto",
|
|
array: "lista",
|
|
object: "oggetto",
|
|
unknown: "sconosciuto",
|
|
promise: "promessa",
|
|
void: "vuoto",
|
|
never: "mai",
|
|
map: "mappa",
|
|
set: "lista",
|
|
},
|
|
customErrors: {
|
|
codice_fiscale: "Codice fiscale non valido",
|
|
tipologia: "Seleziona una tipologia",
|
|
azienda_o_pf: "Seleziona un'opzione",
|
|
provincia: "Seleziona una provincia",
|
|
nazione: "Seleziona una nazione",
|
|
data_nascita: "Data di nascita non valida",
|
|
},
|
|
};
|
|
|
|
export const eng = {
|
|
errors: {
|
|
invalid_type: "Expected {{expected}}, received {{received}}",
|
|
invalid_type_received_undefined: "Required",
|
|
invalid_literal: "Invalid literal value, expected {{expected}}",
|
|
unrecognized_keys: "Unrecognized key(s) in object: {{- keys}}",
|
|
invalid_union: "Invalid input",
|
|
invalid_union_discriminator:
|
|
"Invalid discriminator value. Expected {{- options}}",
|
|
invalid_enum_value:
|
|
"Invalid enum value. Expected {{- options}}, received '{{received}}'",
|
|
invalid_arguments: "Invalid function arguments",
|
|
invalid_return_type: "Invalid function return type",
|
|
invalid_date: "Invalid date",
|
|
custom: "Invalid input",
|
|
invalid_intersection_types: "Intersection results could not be merged",
|
|
not_multiple_of: "Number must be a multiple of {{multipleOf}}",
|
|
not_finite: "Number must be finite",
|
|
invalid_string: {
|
|
email: "Invalid {{validation}}",
|
|
url: "Invalid {{validation}}",
|
|
uuid: "Invalid {{validation}}",
|
|
cuid: "Invalid {{validation}}",
|
|
regex: "Invalid",
|
|
datetime: "Invalid {{validation}}",
|
|
startsWith: 'Invalid input: must start with "{{startsWith}}"',
|
|
endsWith: 'Invalid input: must end with "{{endsWith}}"',
|
|
},
|
|
too_small: {
|
|
array: {
|
|
exact: "Array must contain exactly {{minimum}} element(s)",
|
|
inclusive: "Array must contain at least {{minimum}} element(s)",
|
|
not_inclusive: "Array must contain more than {{minimum}} element(s)",
|
|
},
|
|
string: {
|
|
exact: "String must contain exactly {{minimum}} character(s)",
|
|
inclusive: "String must contain at least {{minimum}} character(s)",
|
|
not_inclusive: "String must contain over {{minimum}} character(s)",
|
|
},
|
|
number: {
|
|
exact: "Number must be exactly {{minimum}}",
|
|
inclusive: "Number must be greater than or equal to {{minimum}}",
|
|
not_inclusive: "Number must be greater than {{minimum}}",
|
|
},
|
|
set: {
|
|
exact: "Invalid input",
|
|
inclusive: "Invalid input",
|
|
not_inclusive: "Invalid input",
|
|
},
|
|
date: {
|
|
exact: "Date must be exactly {{- minimum, datetime}}",
|
|
inclusive:
|
|
"Date must be greater than or equal to {{- minimum, datetime}}",
|
|
not_inclusive: "Date must be greater than {{- minimum, datetime}}",
|
|
},
|
|
},
|
|
too_big: {
|
|
array: {
|
|
exact: "Array must contain exactly {{maximum}} element(s)",
|
|
inclusive: "Array must contain at most {{maximum}} element(s)",
|
|
not_inclusive: "Array must contain less than {{maximum}} element(s)",
|
|
},
|
|
string: {
|
|
exact: "String must contain exactly {{maximum}} character(s)",
|
|
inclusive: "String must contain at most {{maximum}} character(s)",
|
|
not_inclusive: "String must contain under {{maximum}} character(s)",
|
|
},
|
|
number: {
|
|
exact: "Number must be exactly {{maximum}}",
|
|
inclusive: "Number must be less than or equal to {{maximum}}",
|
|
not_inclusive: "Number must be less than {{maximum}}",
|
|
},
|
|
set: {
|
|
exact: "Invalid input",
|
|
inclusive: "Invalid input",
|
|
not_inclusive: "Invalid input",
|
|
},
|
|
date: {
|
|
exact: "Date must be exactly {{- maximum, datetime}}",
|
|
inclusive:
|
|
"Date must be smaller than or equal to {{- maximum, datetime}}",
|
|
not_inclusive: "Date must be smaller than {{- maximum, datetime}}",
|
|
},
|
|
},
|
|
},
|
|
validations: {
|
|
email: "email",
|
|
url: "url",
|
|
uuid: "uuid",
|
|
cuid: "cuid",
|
|
regex: "regex",
|
|
datetime: "datetime",
|
|
},
|
|
types: {
|
|
function: "function",
|
|
number: "number",
|
|
string: "string",
|
|
nan: "nan",
|
|
integer: "integer",
|
|
float: "float",
|
|
boolean: "boolean",
|
|
date: "date",
|
|
bigint: "bigint",
|
|
undefined: "undefined",
|
|
symbol: "symbol",
|
|
null: "null",
|
|
array: "array",
|
|
object: "object",
|
|
unknown: "unknown",
|
|
promise: "promise",
|
|
void: "void",
|
|
never: "never",
|
|
map: "map",
|
|
set: "set",
|
|
},
|
|
local_types: {
|
|
function: "function",
|
|
number: "number",
|
|
string: "string",
|
|
nan: "nan",
|
|
integer: "integer",
|
|
float: "float",
|
|
boolean: "boolean",
|
|
date: "date",
|
|
bigint: "bigint",
|
|
undefined: "undefined",
|
|
symbol: "symbol",
|
|
null: "null",
|
|
array: "array",
|
|
object: "object",
|
|
unknown: "unknown",
|
|
promise: "promise",
|
|
void: "void",
|
|
never: "never",
|
|
map: "map",
|
|
set: "set",
|
|
},
|
|
|
|
customErrors: {
|
|
codice_fiscale: "Tax code not valid",
|
|
tipologia: "Select a type",
|
|
azienda_o_pf: "Select an option",
|
|
provincia: "Select a province",
|
|
nazione: "Select a nation",
|
|
data_nascita: "Select a date",
|
|
},
|
|
};
|