Skip to content

Commit

Permalink
feat(localization): provide parameters type info (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
albertms10 committed Dec 7, 2021
1 parent d21dfe1 commit 5d9e6a2
Show file tree
Hide file tree
Showing 4 changed files with 116 additions and 31 deletions.
1 change: 1 addition & 0 deletions l10n.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
arb-dir: lib/localization
template-arb-file: app_en.arb
output-localization-file: app_localizations.dart
# untranslated-messages-file: lib/localization/untranslated_messages.txt
50 changes: 39 additions & 11 deletions lib/localization/app_ca.arb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
"nBookings": "{n, plural, =0 {Sense reserves} =1 {{n} reserva} other {{n} reserves}}",
"@nBookings": {
"placeholders": {
"n": {}
"n": {
"type": "int",
"format": "compactLong"
}
}
},
"recurringBooking": "Reserva periòdica",
Expand Down Expand Up @@ -36,7 +39,7 @@
"enterEndTime": "Introdueix l’hora d’acabament",
"enterValidRange": "Introdueix un rang vàlid",
"enterDate": "Introdueix la data",
"enterOccurrences": "Introdueix les ocourrències",
"enterOccurrences": "Introdueix les ocurrències",
"occupied": "Espai ocupat",
"deleteBookingTitle": "Confirmes que vols suprimir la reserva?",
"emptyItemTitle": "Confirmes que vols buidar l’ítem?",
Expand All @@ -57,7 +60,10 @@
"nPercentOccupied": "{n} % d’ocupació",
"@nPercentOccupied": {
"placeholders": {
"n": {}
"n": {
"type": "int",
"format": "compactLong"
}
}
},
"mostOccupiedTimeRange": "Horari més ocupat",
Expand All @@ -66,19 +72,28 @@
"after": "{n, plural, =1 {Després d’} =11 {Després d’} other {Després de }}",
"@after": {
"placeholders": {
"n": {}
"n": {
"type": "int",
"format": "compactLong"
}
}
},
"nOccurrences": "{n, plural, =1 {ocurrència} other {ocurrències}}",
"@nOccurrences": {
"placeholders": {
"n": {}
"n": {
"type": "int",
"format": "compactLong"
}
}
},
"nSelected": "{n, plural, =1 {{n} seleccionada} other {{n} seleccionades}}",
"@nSelected": {
"placeholders": {
"n": {}
"n": {
"type": "int",
"format": "compactLong"
}
}
},
"cancelSelection": "Cancel·la la selecció",
Expand All @@ -98,21 +113,34 @@
"createdOn": "{day, plural, =1 {Creat l’{date}} =11 {Creat l’{date}} other {Creat el {date}}}",
"@createdOn": {
"placeholders": {
"day": {},
"date": {}
"day": {
"type": "int",
"format": "compactLong"
},
"date": {
"type": "String"
}
}
},
"modifiedOn": "{day, plural, =1 {Modificat l’{date}} =11 {Modificat l’{date}} other {Modificat el {date}}}",
"@modifiedOn": {
"placeholders": {
"day": {},
"date": {}
"day": {
"type": "int",
"format": "compactLong"
},
"date": {
"type": "String"
}
}
},
"nModifications": "{n, plural, =1 {{n} modificació} other {{n} modificacions}}",
"@nModifications": {
"placeholders": {
"n": {}
"n": {
"type": "int",
"format": "compactLong"
}
}
},
"total": "Total",
Expand Down
48 changes: 38 additions & 10 deletions lib/localization/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
"nBookings": "{n, plural, =0 {No bookings} =1 {{n} booking} other {{n} bookings}}",
"@nBookings": {
"placeholders": {
"n": {}
"n": {
"type": "int",
"format": "compactLong"
}
}
},
"recurringBooking": "Recurring booking",
Expand Down Expand Up @@ -57,7 +60,10 @@
"nPercentOccupied": "{n}% occupied",
"@nPercentOccupied": {
"placeholders": {
"n": {}
"n": {
"type": "int",
"format": "compactLong"
}
}
},
"mostOccupiedTimeRange": "Most occupied time range",
Expand All @@ -66,19 +72,28 @@
"after": "{n, plural, other {After }}",
"@after": {
"placeholders": {
"n": {}
"n": {
"type": "int",
"format": "compactLong"
}
}
},
"nOccurrences": "{n, plural, =1 {occurrence} other {occurrences}}",
"@nOccurrences": {
"placeholders": {
"n": {}
"n": {
"type": "int",
"format": "compactLong"
}
}
},
"nSelected": "{n, plural, other {{n} selected}}",
"@nSelected": {
"placeholders": {
"n": {}
"n": {
"type": "int",
"format": "compactLong"
}
}
},
"cancelSelection": "Cancel selection",
Expand All @@ -98,21 +113,34 @@
"createdOn": "{day, plural, other {Created on {date}}}",
"@createdOn": {
"placeholders": {
"day": {},
"date": {}
"day": {
"type": "int",
"format": "compactLong"
},
"date": {
"type": "String"
}
}
},
"modifiedOn": "{day, plural, other {Modified on {date}}}",
"@modifiedOn": {
"placeholders": {
"day": {},
"date": {}
"day": {
"type": "int",
"format": "compactLong"
},
"date": {
"type": "String"
}
}
},
"nModifications": "{n, plural, =1 {{n} modification} other {{n} modifications}}",
"@nModifications": {
"placeholders": {
"n": {}
"n": {
"type": "int",
"format": "compactLong"
}
}
},
"total": "Total",
Expand Down
48 changes: 38 additions & 10 deletions lib/localization/app_es.arb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
"nBookings": "{n, plural, =0 {Sin reservas} =1 {{n} reserva} other {{n} reservas}}",
"@nBookings": {
"placeholders": {
"n": {}
"n": {
"type": "int",
"format": "compactLong"
}
}
},
"recurringBooking": "Reserva periódica",
Expand Down Expand Up @@ -57,7 +60,10 @@
"nPercentOccupied": "{n} % de ocupación",
"@nPercentOccupied": {
"placeholders": {
"n": {}
"n": {
"type": "int",
"format": "compactLong"
}
}
},
"mostOccupiedTimeRange": "Horario más ocupado",
Expand All @@ -66,19 +72,28 @@
"after": "{n, plural, other {Después de }}",
"@after": {
"placeholders": {
"n": {}
"n": {
"type": "int",
"format": "compactLong"
}
}
},
"nOccurrences": "{n, plural, =1 {ocurrencia} other {ocurrencias}}",
"@nOccurrences": {
"placeholders": {
"n": {}
"n": {
"type": "int",
"format": "compactLong"
}
}
},
"nSelected": "{n, plural, =1 {{n} seleccionada} other {{n} seleccionadas}}",
"@nSelected": {
"placeholders": {
"n": {}
"n": {
"type": "int",
"format": "compactLong"
}
}
},
"cancelSelection": "Cancelar la selección",
Expand All @@ -98,21 +113,34 @@
"createdOn": "{day, plural, other {Creado el {date}}}",
"@createdOn": {
"placeholders": {
"day": {},
"date": {}
"day": {
"type": "int",
"format": "compactLong"
},
"date": {
"type": "String"
}
}
},
"modifiedOn": "{day, plural, other {Modificado el {date}}}",
"@modifiedOn": {
"placeholders": {
"day": {},
"date": {}
"day": {
"type": "int",
"format": "compactLong"
},
"date": {
"type": "String"
}
}
},
"nModifications": "{n, plural, =1 {{n} modificación} other {{n} modificaciones}}",
"@nModifications": {
"placeholders": {
"n": {}
"n": {
"type": "int",
"format": "compactLong"
}
}
},
"total": "Total",
Expand Down

0 comments on commit 5d9e6a2

Please sign in to comment.