Skip to content

Commit

Permalink
fix(literals): Add missing translations
Browse files Browse the repository at this point in the history
  • Loading branch information
enrique-lozano committed Oct 27, 2023
1 parent d56eab0 commit 3569b52
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ class _FilterSheetModalState extends State<FilterSheetModal> {
/* -------- TRANSACTION TYPE -------- */
/* ---------------------------------- */

Text("Tipo de transacción:"),
Text(t.transaction.display(n: 10)),
const SizedBox(height: 4),
SingleChildScrollView(
scrollDirection: Axis.horizontal,
Expand Down
12 changes: 8 additions & 4 deletions lib/i18n/strings_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"cancel": "Cancel",
"or": "or",
"understood": "Understood",
"unspecified": "Sin especificar",
"unspecified": "Unspecified",
"attention": "Attention ⚠️",
"confirm": "Confirm",
"continue_text": "Continue",
Expand Down Expand Up @@ -279,11 +279,11 @@
},
"STATUS": {
"display": {
"one": "Estado",
"other": "Estados"
"one": "Status",
"other": "Statuses"
},
"tr_status": "{{ status }} transaction",
"none": "Sin estado",
"none": "Stateless",
"reconciled": "Reconciled",
"reconciled.descr": "This transaction has already been validated and corresponds to a real transaction from your bank",
"unreconciled": "Unreconciled",
Expand All @@ -294,6 +294,10 @@
"voided.descr": "Void/cancelled transaction due to payment error or any other reason. It will not be taken into account when calculating balances and statistics"
},
"TYPES": {
"display": {
"one": "Transaction type",
"other": "Transaction types"
},
"income": {
"one": "Income",
"other": "Incomes"
Expand Down
4 changes: 4 additions & 0 deletions lib/i18n/strings_es.json
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,10 @@
"voided.descr": "Transacción nula/cancelada debido a un error en el pago o cualquier otro motivo. No será tenida en cuenta a la hora de calcular balances y estadísticas"
},
"TYPES": {
"display": {
"one": "Tipo de transacción",
"other": "Tipos de transacción"
},
"income": {
"one": "Ingreso",
"other": "Ingresos"
Expand Down
36 changes: 26 additions & 10 deletions lib/i18n/translations.g.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
/// To regenerate, run: `dart run slang`
///
/// Locales: 2
/// Strings: 920 (460 per locale)
/// Strings: 924 (462 per locale)
///
/// Built on 2023-10-24 at 17:18 UTC
/// Built on 2023-10-27 at 14:28 UTC
// coverage:ignore-file
// ignore_for_file: type=lint
Expand Down Expand Up @@ -178,7 +178,7 @@ class _TranslationsGeneralEn {
String get cancel => 'Cancel';
String get or => 'or';
String get understood => 'Understood';
String get unspecified => 'Sin especificar';
String get unspecified => 'Unspecified';
String get attention => 'Attention ⚠️';
String get confirm => 'Confirm';
String get continue_text => 'Continue';
Expand Down Expand Up @@ -704,11 +704,11 @@ class _TranslationsTransactionStatusEn {

// Translations
String display({required num n}) => (_root.$meta.cardinalResolver ?? PluralResolvers.cardinal('en'))(n,
one: 'Estado',
other: 'Estados',
one: 'Status',
other: 'Statuses',
);
String tr_status({required Object status}) => '${status} transaction';
String get none => 'Sin estado';
String get none => 'Stateless';
String get reconciled => 'Reconciled';
String get reconciled_descr => 'This transaction has already been validated and corresponds to a real transaction from your bank';
String get unreconciled => 'Unreconciled';
Expand All @@ -726,6 +726,10 @@ class _TranslationsTransactionTypesEn {
final _TranslationsEn _root; // ignore: unused_field

// Translations
String display({required num n}) => (_root.$meta.cardinalResolver ?? PluralResolvers.cardinal('en'))(n,
one: 'Transaction type',
other: 'Transaction types',
);
String income({required num n}) => (_root.$meta.cardinalResolver ?? PluralResolvers.cardinal('en'))(n,
one: 'Income',
other: 'Incomes',
Expand Down Expand Up @@ -1814,6 +1818,10 @@ class _TranslationsTransactionTypesEs implements _TranslationsTransactionTypesEn
@override final _TranslationsEs _root; // ignore: unused_field

// Translations
@override String display({required num n}) => (_root.$meta.cardinalResolver ?? PluralResolvers.cardinal('es'))(n,
one: 'Tipo de transacción',
other: 'Tipos de transacción',
);
@override String income({required num n}) => (_root.$meta.cardinalResolver ?? PluralResolvers.cardinal('es'))(n,
one: 'Ingreso',
other: 'Ingresos',
Expand Down Expand Up @@ -2312,7 +2320,7 @@ extension on _TranslationsEn {
case 'general.cancel': return 'Cancel';
case 'general.or': return 'or';
case 'general.understood': return 'Understood';
case 'general.unspecified': return 'Sin especificar';
case 'general.unspecified': return 'Unspecified';
case 'general.attention': return 'Attention ⚠️';
case 'general.confirm': return 'Confirm';
case 'general.continue_text': return 'Continue';
Expand Down Expand Up @@ -2538,11 +2546,11 @@ extension on _TranslationsEn {
case 'transaction.form.exchange_to_preferred_today': return ({required Object currency}) => 'Equivalent to ${currency} today:';
case 'transaction.form.exchange_to_preferred_in_date': return ({required Object currency, required Object date}) => 'Equivalent to ${currency} on ${date}:';
case 'transaction.status.display': return ({required num n}) => (_root.$meta.cardinalResolver ?? PluralResolvers.cardinal('en'))(n,
one: 'Estado',
other: 'Estados',
one: 'Status',
other: 'Statuses',
);
case 'transaction.status.tr_status': return ({required Object status}) => '${status} transaction';
case 'transaction.status.none': return 'Sin estado';
case 'transaction.status.none': return 'Stateless';
case 'transaction.status.reconciled': return 'Reconciled';
case 'transaction.status.reconciled_descr': return 'This transaction has already been validated and corresponds to a real transaction from your bank';
case 'transaction.status.unreconciled': return 'Unreconciled';
Expand All @@ -2551,6 +2559,10 @@ extension on _TranslationsEn {
case 'transaction.status.pending_descr': return 'This transaction is pending and therefore it will not be taken into account when calculating balances and statistics';
case 'transaction.status.voided': return 'Voided';
case 'transaction.status.voided_descr': return 'Void/cancelled transaction due to payment error or any other reason. It will not be taken into account when calculating balances and statistics';
case 'transaction.types.display': return ({required num n}) => (_root.$meta.cardinalResolver ?? PluralResolvers.cardinal('en'))(n,
one: 'Transaction type',
other: 'Transaction types',
);
case 'transaction.types.income': return ({required num n}) => (_root.$meta.cardinalResolver ?? PluralResolvers.cardinal('en'))(n,
one: 'Income',
other: 'Incomes',
Expand Down Expand Up @@ -3047,6 +3059,10 @@ extension on _TranslationsEs {
case 'transaction.status.pending_descr': return 'Esta transacción esta pendiente y por tanto no será tenida en cuenta a la hora de calcular balances y estadísticas';
case 'transaction.status.voided': return 'Nula';
case 'transaction.status.voided_descr': return 'Transacción nula/cancelada debido a un error en el pago o cualquier otro motivo. No será tenida en cuenta a la hora de calcular balances y estadísticas';
case 'transaction.types.display': return ({required num n}) => (_root.$meta.cardinalResolver ?? PluralResolvers.cardinal('es'))(n,
one: 'Tipo de transacción',
other: 'Tipos de transacción',
);
case 'transaction.types.income': return ({required num n}) => (_root.$meta.cardinalResolver ?? PluralResolvers.cardinal('es'))(n,
one: 'Ingreso',
other: 'Ingresos',
Expand Down

0 comments on commit 3569b52

Please sign in to comment.