Skip to content

Commit ba3a614

Browse files
sbernardoBernardo Salvatore
andauthored
GH-597 - add italian translation (#598)
* GH-597 - add italian translation * GH-597 - escape character ' into resource bundle string Co-authored-by: Bernardo Salvatore <[email protected]>
1 parent 195d716 commit ba3a614

File tree

2 files changed

+52
-1
lines changed

2 files changed

+52
-1
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
$ref = {0}: c''è un problema con il tag ''refs''
2+
additionalProperties = {0}.{1}: non è definito nello schema e lo schema non permette properties aggiuntive
3+
allOf = {0}: dovrebbe essere valido per tutti gli schemas {1}
4+
anyOf = {0}: dovrebbe essere valido per uno degli schemas {1}
5+
const = {0}: dovrebbe essere un valore costante {1}
6+
contains = {0}: non contiene un elemento che supera queste validazioni: {1}
7+
crossEdits = {0}: ha un errore con il ''cross edits''
8+
dateTime = {0}: {1} è un invalido {2}
9+
dependencies = {0}: ha un errore con le dipendenze {1}
10+
dependentRequired = {0}: ha una property mancante da cui dipende {1}
11+
dependentSchemas = {0}: ha un errore con dependentSchemas {1}
12+
edits = {0}: ha un errore con ''edits''
13+
enum = {0}: non ha un valore nell''enumerazione {1}
14+
exclusiveMaximum = {0}: deve avere un valore massimo esclusivo di {1}
15+
exclusiveMinimum = {0}: deve avere un valore minimo esclusivo di {1}
16+
false = Boolean schema false non è valido
17+
format = {0}: non corrisponde il {1} pattern {2}
18+
id = {0}: {1} è un segmento invalido per l''URI {2}
19+
items = {0}[{1}]: nessun validatore trovato all''indice
20+
maxItems = {0}: deve esserci un numero massimo di {1} elementi nell''array
21+
maxLength = {0}: può avere lunghezza massima di {1}
22+
maxProperties = {0}: può avere un numero massimo di properties di {1}
23+
maximum = {0}: deve avere un valore massimo di {1}
24+
minItems = {0}: deve esserci un numero minimo di {1} elementi nell''array
25+
minLength = {0}: deve avere lunghezza minima di {1}
26+
minProperties={0}: dovrebbe avere un numero minimo di properties di {1}
27+
minimum={0}: deve avere un valore minimo di {1}
28+
multipleOf={0}: deve essere un multiplo di {1}
29+
not={0}: non dovrebbe essere valido per lo schema {1}
30+
notAllowed={0}.{1}: non è consentito ma è nel dato
31+
oneOf={0}: dovrebbe essere valido a uno e solo uno schema, ma più di uno sono validi: {1}
32+
pattern={0}: non corrisponde alla regex {1}
33+
patternProperties={0}: ha qualche errore con ''pattern properties''
34+
prefixItems={0}[{1}]: nessun validatore trovato a quest''indice
35+
properties={0}: ha un errore con ''properties''
36+
propertyNames=Il nome della Property {0} non è valido per la validazione: {1}
37+
readOnly={0}: il campo è in sola lettura, non può essere modificato
38+
required={0}.{1}: è obbligatorio ma è mancante
39+
type={0}: {1} trovato, {2} atteso
40+
unevaluatedProperties=Ci sono properties non valutate nei seguenti percorsi {0}
41+
unionType={0}: {1} trovato, ma {2} è obbligatorio
42+
uniqueItems={0}: l''elemento nell''array deve essere unico
43+
uuid={0}: {1} è un invalido {2}

src/test/java/com/networknt/schema/Issue471Test.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import org.junit.jupiter.api.Test;
88

99
import java.io.InputStream;
10-
import java.util.HashMap;
1110
import java.util.Locale;
1211
import java.util.Map;
1312
import java.util.Set;
@@ -55,6 +54,15 @@ void shouldFailV201909_with_frFR() throws Exception {
5554
Assertions.assertEquals("$.pictures: doit avoir un maximum de 2 éléments dans le tableau", errorsMap.get("$.pictures"));
5655
}
5756

57+
@Test
58+
@Disabled
59+
void shouldFailV201909_with_frIT() throws Exception {
60+
Locale.setDefault(Locale.ITALIAN);
61+
Map<String, String> errorsMap = validate();
62+
Assertions.assertEquals("$.title: può avere lunghezza massima di 10", errorsMap.get("$.title"));
63+
Assertions.assertEquals("$.pictures: deve esserci un numero massimo di 2 elementi nell'array", errorsMap.get("$.pictures"));
64+
}
65+
5866
private Map<String, String> validate() throws Exception {
5967
InputStream schemaInputStream = Issue471Test.class.getResourceAsStream(SCHEMA_PATH);
6068
JsonSchema schema = getJsonSchemaFromStreamContentV201909(schemaInputStream);

0 commit comments

Comments
 (0)