Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/core/app_bootstrap.dart
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,9 @@ void _initializeTimeAgoLocalization() {
// Set Portuguese locale for timeago
timeago.setLocaleMessages('pt', timeago.PtBrMessages());

// Set Dutch locale for timeago
timeago.setLocaleMessages('nl', timeago.NlMessages());

// English is already the default, no need to set it
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import 'package:mostro_mobile/generated/l10n_en.dart';
import 'package:mostro_mobile/generated/l10n_es.dart';
import 'package:mostro_mobile/generated/l10n_fr.dart';
import 'package:mostro_mobile/generated/l10n_it.dart';
import 'package:mostro_mobile/generated/l10n_nl.dart';
import 'package:mostro_mobile/generated/l10n_pt.dart';
import 'package:mostro_mobile/background/background.dart' as bg;
import 'package:mostro_mobile/shared/providers/mostro_database_provider.dart';
Expand Down Expand Up @@ -636,6 +637,7 @@ Future<NotificationText> _getLocalizedNotificationText(mostro_action.Action acti
'de' => SDe(),
'fr' => SFr(),
'pt' => SPt(),
'nl' => SNl(),
_ => SEn(),
};

Expand Down Expand Up @@ -667,6 +669,7 @@ String? _getExpandedText(Map<String, dynamic> values) {
'de' => SDe(),
'fr' => SFr(),
'pt' => SPt(),
'nl' => SNl(),
_ => SEn(),
};

Expand Down
1 change: 1 addition & 0 deletions lib/l10n/intl_de.arb
Original file line number Diff line number Diff line change
Expand Up @@ -875,6 +875,7 @@
"french": "Französisch",
"german": "Deutsch",
"portuguese": "Portugiesisch",
"dutch": "Niederländisch",
"loadingOrder": "Order wird geladen...",
"chooseLanguageDescription": "Wähle deine bevorzugte Sprache oder verwende den Systemstandard",
"unsupportedLinkFormat": "Nicht unterstütztes Link-Format",
Expand Down
1 change: 1 addition & 0 deletions lib/l10n/intl_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -875,6 +875,7 @@
"french": "French",
"german": "German",
"portuguese": "Portuguese",
"dutch": "Dutch",
"loadingOrder": "Loading order...",
"chooseLanguageDescription": "Choose your preferred language or use system default",
"unsupportedLinkFormat": "Unsupported link format",
Expand Down
1 change: 1 addition & 0 deletions lib/l10n/intl_es.arb
Original file line number Diff line number Diff line change
Expand Up @@ -841,6 +841,7 @@
"french": "Francés",
"german": "Alemán",
"portuguese": "Portugués",
"dutch": "Neerlandés",
"chooseLanguageDescription": "Elige tu idioma preferido o usa el predeterminado del sistema",
"statusFilter": "Estado",
"allStatuses": "Todos",
Expand Down
1 change: 1 addition & 0 deletions lib/l10n/intl_fr.arb
Original file line number Diff line number Diff line change
Expand Up @@ -875,6 +875,7 @@
"french": "Français",
"german": "Allemand",
"portuguese": "Portugais",
"dutch": "Néerlandais",
"loadingOrder": "Chargement de la commande...",
"chooseLanguageDescription": "Choisissez votre langue préférée ou utilisez celle du système",
"unsupportedLinkFormat": "Format de lien non supporté",
Expand Down
1 change: 1 addition & 0 deletions lib/l10n/intl_it.arb
Original file line number Diff line number Diff line change
Expand Up @@ -914,6 +914,7 @@
"french": "Francese",
"german": "Tedesco",
"portuguese": "Portoghese",
"dutch": "Olandese",
"chooseLanguageDescription": "Scegli la tua lingua preferita o usa il predefinito di sistema",
"loadingOrder": "Caricamento ordine...",
"unsupportedLinkFormat": "Formato di link non supportato",
Expand Down
1,833 changes: 1,833 additions & 0 deletions lib/l10n/intl_nl.arb

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/l10n/intl_pt.arb
Original file line number Diff line number Diff line change
Expand Up @@ -875,6 +875,7 @@
"french": "Francês",
"german": "Alemão",
"portuguese": "Português",
"dutch": "Holandês",
"loadingOrder": "Carregando ordem...",
"chooseLanguageDescription": "Escolha seu idioma preferido ou use o padrão do sistema",
"unsupportedLinkFormat": "Formato de link não suportado",
Expand Down
3 changes: 3 additions & 0 deletions lib/shared/widgets/language_selector.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class LanguageSelector extends ConsumerWidget {
'fr': 'french',
'de': 'german',
'pt': 'portuguese',
'nl': 'dutch',
};

@override
Expand Down Expand Up @@ -92,6 +93,8 @@ class LanguageSelector extends ConsumerWidget {
return S.of(context)!.german;
case 'portuguese':
return S.of(context)!.portuguese;
case 'dutch':
return S.of(context)!.dutch;
default:
return key;
}
Expand Down
Loading