Major package upgrades: - Riverpod 2.x → 3.0.3 (breaking changes) - flutter_appauth 7.0.0 → 11.0.0 - go_router 14.0.0 → 17.0.0 - permission_handler 11.3.0 → 12.0.1 - flutter_lints 5.0.0 → 6.0.0 - animate_do 3.1.2 → 4.2.0 - Plus 41 transitive dependency updates Breaking changes fixed: Riverpod 3.0 migration: - Replace StateProvider with NotifierProvider pattern - Update .valueOrNull to proper async value handling with .future - Create LanguageNotifier and ThemeModeNotifier classes - Fix all provider async value access patterns Google Maps Navigation API updates: - Rename GoogleMapsNavigationViewController to GoogleNavigationViewController - Update Waypoint to NavigationWaypoint.withLatLngTarget - Migrate controller methods to static GoogleMapsNavigator methods - Update event listener types and callbacks Localization system fixes: - Update l10n.yaml synthetic-package configuration - Fix import paths from flutter_gen to package imports - Add errorTitle translation key for both en/fr - Remove unnecessary null-aware operators (AppLocalizations is non-nullable) - Regenerate localization files iOS/macOS configuration: - Update CocoaPods dependencies (AppAuth 1.7.5 → 2.0.0) - Create missing Profile.xcconfig files for both platforms - Sync Podfile.lock files with updated dependencies Code quality: - Fix all analyzer errors (0 errors remaining) - Resolve deprecated API usage warnings - Update async/await patterns for better error handling 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
201 lines
4.2 KiB
Dart
201 lines
4.2 KiB
Dart
// ignore: unused_import
|
|
import 'package:intl/intl.dart' as intl;
|
|
import 'app_localizations.dart';
|
|
|
|
// ignore_for_file: type=lint
|
|
|
|
/// The translations for English (`en`).
|
|
class AppLocalizationsEn extends AppLocalizations {
|
|
AppLocalizationsEn([String locale = 'en']) : super(locale);
|
|
|
|
@override
|
|
String get appTitle => 'Plan B Logistics';
|
|
|
|
@override
|
|
String get appDescription => 'Delivery Management System';
|
|
|
|
@override
|
|
String get loginWithKeycloak => 'Login with Keycloak';
|
|
|
|
@override
|
|
String get deliveryRoutes => 'Delivery Routes';
|
|
|
|
@override
|
|
String get routes => 'Routes';
|
|
|
|
@override
|
|
String get deliveries => 'Deliveries';
|
|
|
|
@override
|
|
String get settings => 'Settings';
|
|
|
|
@override
|
|
String get profile => 'Profile';
|
|
|
|
@override
|
|
String get logout => 'Logout';
|
|
|
|
@override
|
|
String get completed => 'Completed';
|
|
|
|
@override
|
|
String get pending => 'Pending';
|
|
|
|
@override
|
|
String get todo => 'To Do';
|
|
|
|
@override
|
|
String get delivered => 'Delivered';
|
|
|
|
@override
|
|
String get newCustomer => 'New Customer';
|
|
|
|
@override
|
|
String items(int count) {
|
|
return '$count items';
|
|
}
|
|
|
|
@override
|
|
String moneyCurrency(double amount) {
|
|
return '$amount MAD';
|
|
}
|
|
|
|
@override
|
|
String get call => 'Call';
|
|
|
|
@override
|
|
String get map => 'Map';
|
|
|
|
@override
|
|
String get more => 'More';
|
|
|
|
@override
|
|
String get markAsCompleted => 'Mark as Completed';
|
|
|
|
@override
|
|
String get markAsUncompleted => 'Mark as Uncompleted';
|
|
|
|
@override
|
|
String get uploadPhoto => 'Upload Photo';
|
|
|
|
@override
|
|
String get viewDetails => 'View Details';
|
|
|
|
@override
|
|
String get deliverySuccessful => 'Delivery marked as completed';
|
|
|
|
@override
|
|
String get deliveryFailed => 'Failed to mark delivery';
|
|
|
|
@override
|
|
String get noDeliveries => 'No deliveries';
|
|
|
|
@override
|
|
String get noRoutes => 'No routes available';
|
|
|
|
@override
|
|
String error(String message) {
|
|
return 'Error: $message';
|
|
}
|
|
|
|
@override
|
|
String get retry => 'Retry';
|
|
|
|
@override
|
|
String get authenticationRequired => 'Authentication required';
|
|
|
|
@override
|
|
String get phoneCall => 'Call customer';
|
|
|
|
@override
|
|
String get navigateToAddress => 'Show on map';
|
|
|
|
@override
|
|
String get language => 'Language';
|
|
|
|
@override
|
|
String get english => 'English';
|
|
|
|
@override
|
|
String get french => 'French';
|
|
|
|
@override
|
|
String get appVersion => 'App Version';
|
|
|
|
@override
|
|
String get about => 'About';
|
|
|
|
@override
|
|
String fullName(String firstName, String lastName) {
|
|
return '$firstName $lastName';
|
|
}
|
|
|
|
@override
|
|
String completedDeliveries(int completed, int total) {
|
|
return '$completed/$total completed';
|
|
}
|
|
|
|
@override
|
|
String get navigationTcTitle => 'Navigation Service';
|
|
|
|
@override
|
|
String get navigationTcDescription =>
|
|
'This app uses Google Navigation to provide turn-by-turn navigation for deliveries.';
|
|
|
|
@override
|
|
String get navigationTcAttribution =>
|
|
'Attribution: Maps and navigation services provided by Google Maps.';
|
|
|
|
@override
|
|
String get navigationTcTerms =>
|
|
'By accepting, you agree to Google\'s Terms of Service and Privacy Policy for Navigation services.';
|
|
|
|
@override
|
|
String get accept => 'Accept';
|
|
|
|
@override
|
|
String get decline => 'Decline';
|
|
|
|
@override
|
|
String get locationPermissionRequired => 'Location Permission';
|
|
|
|
@override
|
|
String get locationPermissionMessage =>
|
|
'This app requires location permission to navigate to deliveries.';
|
|
|
|
@override
|
|
String get locationPermissionDenied =>
|
|
'Location permission denied. Navigation cannot proceed.';
|
|
|
|
@override
|
|
String get permissionPermanentlyDenied => 'Permission Required';
|
|
|
|
@override
|
|
String get openSettingsMessage =>
|
|
'Location permission is permanently denied. Please enable it in app settings.';
|
|
|
|
@override
|
|
String get openSettings => 'Open Settings';
|
|
|
|
@override
|
|
String get cancel => 'Cancel';
|
|
|
|
@override
|
|
String get ok => 'OK';
|
|
|
|
@override
|
|
String get errorTitle => 'Error';
|
|
|
|
@override
|
|
String get requestPermission => 'Request Permission';
|
|
|
|
@override
|
|
String get navigationArrived => 'You have arrived at the destination';
|
|
|
|
@override
|
|
String get navigatingTo => 'Navigating to';
|
|
|
|
@override
|
|
String get initializingNavigation => 'Initializing navigation...';
|
|
}
|