first app design
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
{
|
||||
"@@locale": "ar",
|
||||
"appName": "RentalDriveGo",
|
||||
"tagline": "أسهل طريقة للعثور\nوحجز سيارتك المثالية",
|
||||
"findYourCar": "ابحث عن سيارتك",
|
||||
"companySignIn": "تسجيل دخول لوحة تحكم الشركة",
|
||||
"sameDropoff": "إرجاع نفس المكان",
|
||||
"differentDropoff": "إرجاع مكان آخر",
|
||||
"findCarToRent": "ابحث عن سيارة للإيجار",
|
||||
"allCarTypes": "جميع أنواع السيارات",
|
||||
"search": "بحث",
|
||||
"searching": "جارٍ البحث…",
|
||||
"vehiclesFound": "{count, plural, =0{لا توجد سيارات} =1{سيارة واحدة متوفرة} =2{سيارتان متوفرتان} few{{count} سيارات متوفرة} other{{count} سيارة متوفرة}}",
|
||||
"@vehiclesFound": {
|
||||
"placeholders": {
|
||||
"count": { "type": "num" }
|
||||
}
|
||||
},
|
||||
"noVehiclesFound": "لا توجد سيارات",
|
||||
"tryDifferentSearch": "جرّب تواريخ أو مدينة أو نوع مختلف",
|
||||
"couldNotLoadVehicles": "تعذّر تحميل السيارات",
|
||||
"checkConnectionRetry": "تحقق من اتصالك وحاول مجدداً",
|
||||
"retry": "إعادة المحاولة",
|
||||
"myBookings": "حجوزاتي",
|
||||
"browse": "تصفح",
|
||||
"signInToViewBookings": "سجّل الدخول لعرض حجوزاتك",
|
||||
"carType": "نوع السيارة",
|
||||
"selectCity": "اختر المدينة",
|
||||
"allCities": "جميع المدن",
|
||||
"searchCities": "ابحث عن مدينة…",
|
||||
"chooseLanguage": "اللغة",
|
||||
"languageName": "العربية",
|
||||
"perDay": "/يوم",
|
||||
"nDays": "{count, plural, =1{يوم واحد} =2{يومان} few{{count} أيام} other{{count} يوم}}",
|
||||
"@nDays": {
|
||||
"placeholders": {
|
||||
"count": { "type": "num" }
|
||||
}
|
||||
},
|
||||
"total": "الإجمالي",
|
||||
"reserveThisCar": "احجز هذه السيارة",
|
||||
"lightTheme": "فاتح",
|
||||
"darkTheme": "داكن",
|
||||
"settings": "الإعدادات",
|
||||
"anyPrice": "أي سعر",
|
||||
"price": "السعر",
|
||||
"apply": "تطبيق",
|
||||
"selectAll": "تحديد الكل",
|
||||
"clearAll": "مسح الكل",
|
||||
"pickDates": "اختر التواريخ",
|
||||
"pickupLocation": "موقع الاستلام",
|
||||
"dropoffLocation": "موقع الإرجاع"
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
{
|
||||
"@@locale": "en",
|
||||
"appName": "RentalDriveGo",
|
||||
"tagline": "The easiest way to find\nand reserve your perfect car",
|
||||
"findYourCar": "Find your car",
|
||||
"companySignIn": "Company dashboard sign in",
|
||||
"sameDropoff": "Same drop-off",
|
||||
"differentDropoff": "Different drop-off",
|
||||
"findCarToRent": "Find a car to rent",
|
||||
"allCarTypes": "All car types",
|
||||
"search": "Search",
|
||||
"searching": "Searching…",
|
||||
"vehiclesFound": "{count, plural, =0{No vehicles found} =1{1 vehicle found} other{{count} vehicles found}}",
|
||||
"@vehiclesFound": {
|
||||
"placeholders": {
|
||||
"count": { "type": "num" }
|
||||
}
|
||||
},
|
||||
"noVehiclesFound": "No vehicles found",
|
||||
"tryDifferentSearch": "Try different dates, city, or car type",
|
||||
"couldNotLoadVehicles": "Could not load vehicles",
|
||||
"checkConnectionRetry": "Check your connection and try again",
|
||||
"retry": "Retry",
|
||||
"myBookings": "My Bookings",
|
||||
"browse": "Browse",
|
||||
"signInToViewBookings": "Sign in to view your bookings",
|
||||
"carType": "Car type",
|
||||
"selectCity": "Select city",
|
||||
"allCities": "All cities",
|
||||
"searchCities": "Search cities…",
|
||||
"chooseLanguage": "Language",
|
||||
"languageName": "English",
|
||||
"perDay": "/day",
|
||||
"nDays": "{count, plural, =1{1 day} other{{count} days}}",
|
||||
"@nDays": {
|
||||
"placeholders": {
|
||||
"count": { "type": "num" }
|
||||
}
|
||||
},
|
||||
"total": "total",
|
||||
"reserveThisCar": "Reserve This Car",
|
||||
"lightTheme": "Light",
|
||||
"darkTheme": "Dark",
|
||||
"settings": "Settings",
|
||||
"anyPrice": "Any price",
|
||||
"price": "Price",
|
||||
"apply": "Apply",
|
||||
"selectAll": "Select all",
|
||||
"clearAll": "Clear all",
|
||||
"pickDates": "Pick dates",
|
||||
"pickupLocation": "Pickup location",
|
||||
"dropoffLocation": "Drop-off location"
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
{
|
||||
"@@locale": "fr",
|
||||
"appName": "RentalDriveGo",
|
||||
"tagline": "La façon la plus simple de trouver\net réserver la voiture parfaite",
|
||||
"findYourCar": "Trouver ma voiture",
|
||||
"companySignIn": "Connexion tableau de bord entreprise",
|
||||
"sameDropoff": "Retour même lieu",
|
||||
"differentDropoff": "Retour autre lieu",
|
||||
"findCarToRent": "Trouver une voiture à louer",
|
||||
"allCarTypes": "Tous les types",
|
||||
"search": "Rechercher",
|
||||
"searching": "Recherche…",
|
||||
"vehiclesFound": "{count, plural, =0{Aucun véhicule trouvé} =1{1 véhicule trouvé} other{{count} véhicules trouvés}}",
|
||||
"@vehiclesFound": {
|
||||
"placeholders": {
|
||||
"count": { "type": "num" }
|
||||
}
|
||||
},
|
||||
"noVehiclesFound": "Aucun véhicule trouvé",
|
||||
"tryDifferentSearch": "Essayez d'autres dates, ville ou type",
|
||||
"couldNotLoadVehicles": "Impossible de charger les véhicules",
|
||||
"checkConnectionRetry": "Vérifiez votre connexion et réessayez",
|
||||
"retry": "Réessayer",
|
||||
"myBookings": "Mes réservations",
|
||||
"browse": "Parcourir",
|
||||
"signInToViewBookings": "Connectez-vous pour voir vos réservations",
|
||||
"carType": "Type de voiture",
|
||||
"selectCity": "Sélectionner une ville",
|
||||
"allCities": "Toutes les villes",
|
||||
"searchCities": "Rechercher des villes…",
|
||||
"chooseLanguage": "Langue",
|
||||
"languageName": "Français",
|
||||
"perDay": "/jour",
|
||||
"nDays": "{count, plural, =1{1 jour} other{{count} jours}}",
|
||||
"@nDays": {
|
||||
"placeholders": {
|
||||
"count": { "type": "num" }
|
||||
}
|
||||
},
|
||||
"total": "total",
|
||||
"reserveThisCar": "Réserver cette voiture",
|
||||
"lightTheme": "Clair",
|
||||
"darkTheme": "Sombre",
|
||||
"settings": "Paramètres",
|
||||
"anyPrice": "Tout prix",
|
||||
"price": "Prix",
|
||||
"apply": "Appliquer",
|
||||
"selectAll": "Tout sélectionner",
|
||||
"clearAll": "Tout effacer",
|
||||
"pickDates": "Choisir les dates",
|
||||
"pickupLocation": "Lieu de prise en charge",
|
||||
"dropoffLocation": "Lieu de retour"
|
||||
}
|
||||
@@ -0,0 +1,378 @@
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/widgets.dart';
|
||||
import 'package:flutter_localizations/flutter_localizations.dart';
|
||||
import 'package:intl/intl.dart' as intl;
|
||||
|
||||
import 'app_localizations_ar.dart';
|
||||
import 'app_localizations_en.dart';
|
||||
import 'app_localizations_fr.dart';
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
|
||||
/// Callers can lookup localized strings with an instance of AppLocalizations
|
||||
/// returned by `AppLocalizations.of(context)`.
|
||||
///
|
||||
/// Applications need to include `AppLocalizations.delegate()` in their app's
|
||||
/// `localizationDelegates` list, and the locales they support in the app's
|
||||
/// `supportedLocales` list. For example:
|
||||
///
|
||||
/// ```dart
|
||||
/// import 'l10n/app_localizations.dart';
|
||||
///
|
||||
/// return MaterialApp(
|
||||
/// localizationsDelegates: AppLocalizations.localizationsDelegates,
|
||||
/// supportedLocales: AppLocalizations.supportedLocales,
|
||||
/// home: MyApplicationHome(),
|
||||
/// );
|
||||
/// ```
|
||||
///
|
||||
/// ## Update pubspec.yaml
|
||||
///
|
||||
/// Please make sure to update your pubspec.yaml to include the following
|
||||
/// packages:
|
||||
///
|
||||
/// ```yaml
|
||||
/// dependencies:
|
||||
/// # Internationalization support.
|
||||
/// flutter_localizations:
|
||||
/// sdk: flutter
|
||||
/// intl: any # Use the pinned version from flutter_localizations
|
||||
///
|
||||
/// # Rest of dependencies
|
||||
/// ```
|
||||
///
|
||||
/// ## iOS Applications
|
||||
///
|
||||
/// iOS applications define key application metadata, including supported
|
||||
/// locales, in an Info.plist file that is built into the application bundle.
|
||||
/// To configure the locales supported by your app, you’ll need to edit this
|
||||
/// file.
|
||||
///
|
||||
/// First, open your project’s ios/Runner.xcworkspace Xcode workspace file.
|
||||
/// Then, in the Project Navigator, open the Info.plist file under the Runner
|
||||
/// project’s Runner folder.
|
||||
///
|
||||
/// Next, select the Information Property List item, select Add Item from the
|
||||
/// Editor menu, then select Localizations from the pop-up menu.
|
||||
///
|
||||
/// Select and expand the newly-created Localizations item then, for each
|
||||
/// locale your application supports, add a new item and select the locale
|
||||
/// you wish to add from the pop-up menu in the Value field. This list should
|
||||
/// be consistent with the languages listed in the AppLocalizations.supportedLocales
|
||||
/// property.
|
||||
abstract class AppLocalizations {
|
||||
AppLocalizations(String locale)
|
||||
: localeName = intl.Intl.canonicalizedLocale(locale.toString());
|
||||
|
||||
final String localeName;
|
||||
|
||||
static AppLocalizations of(BuildContext context) {
|
||||
return Localizations.of<AppLocalizations>(context, AppLocalizations)!;
|
||||
}
|
||||
|
||||
static const LocalizationsDelegate<AppLocalizations> delegate =
|
||||
_AppLocalizationsDelegate();
|
||||
|
||||
/// A list of this localizations delegate along with the default localizations
|
||||
/// delegates.
|
||||
///
|
||||
/// Returns a list of localizations delegates containing this delegate along with
|
||||
/// GlobalMaterialLocalizations.delegate, GlobalCupertinoLocalizations.delegate,
|
||||
/// and GlobalWidgetsLocalizations.delegate.
|
||||
///
|
||||
/// Additional delegates can be added by appending to this list in
|
||||
/// MaterialApp. This list does not have to be used at all if a custom list
|
||||
/// of delegates is preferred or required.
|
||||
static const List<LocalizationsDelegate<dynamic>> localizationsDelegates =
|
||||
<LocalizationsDelegate<dynamic>>[
|
||||
delegate,
|
||||
GlobalMaterialLocalizations.delegate,
|
||||
GlobalCupertinoLocalizations.delegate,
|
||||
GlobalWidgetsLocalizations.delegate,
|
||||
];
|
||||
|
||||
/// A list of this localizations delegate's supported locales.
|
||||
static const List<Locale> supportedLocales = <Locale>[
|
||||
Locale('ar'),
|
||||
Locale('en'),
|
||||
Locale('fr'),
|
||||
];
|
||||
|
||||
/// No description provided for @appName.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'RentalDriveGo'**
|
||||
String get appName;
|
||||
|
||||
/// No description provided for @tagline.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'The easiest way to find\nand reserve your perfect car'**
|
||||
String get tagline;
|
||||
|
||||
/// No description provided for @findYourCar.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Find your car'**
|
||||
String get findYourCar;
|
||||
|
||||
/// No description provided for @companySignIn.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Company dashboard sign in'**
|
||||
String get companySignIn;
|
||||
|
||||
/// No description provided for @sameDropoff.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Same drop-off'**
|
||||
String get sameDropoff;
|
||||
|
||||
/// No description provided for @differentDropoff.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Different drop-off'**
|
||||
String get differentDropoff;
|
||||
|
||||
/// No description provided for @findCarToRent.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Find a car to rent'**
|
||||
String get findCarToRent;
|
||||
|
||||
/// No description provided for @allCarTypes.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'All car types'**
|
||||
String get allCarTypes;
|
||||
|
||||
/// No description provided for @search.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Search'**
|
||||
String get search;
|
||||
|
||||
/// No description provided for @searching.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Searching…'**
|
||||
String get searching;
|
||||
|
||||
/// No description provided for @vehiclesFound.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'{count, plural, =0{No vehicles found} =1{1 vehicle found} other{{count} vehicles found}}'**
|
||||
String vehiclesFound(num count);
|
||||
|
||||
/// No description provided for @noVehiclesFound.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'No vehicles found'**
|
||||
String get noVehiclesFound;
|
||||
|
||||
/// No description provided for @tryDifferentSearch.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Try different dates, city, or car type'**
|
||||
String get tryDifferentSearch;
|
||||
|
||||
/// No description provided for @couldNotLoadVehicles.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Could not load vehicles'**
|
||||
String get couldNotLoadVehicles;
|
||||
|
||||
/// No description provided for @checkConnectionRetry.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Check your connection and try again'**
|
||||
String get checkConnectionRetry;
|
||||
|
||||
/// No description provided for @retry.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Retry'**
|
||||
String get retry;
|
||||
|
||||
/// No description provided for @myBookings.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'My Bookings'**
|
||||
String get myBookings;
|
||||
|
||||
/// No description provided for @browse.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Browse'**
|
||||
String get browse;
|
||||
|
||||
/// No description provided for @signInToViewBookings.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Sign in to view your bookings'**
|
||||
String get signInToViewBookings;
|
||||
|
||||
/// No description provided for @carType.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Car type'**
|
||||
String get carType;
|
||||
|
||||
/// No description provided for @selectCity.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Select city'**
|
||||
String get selectCity;
|
||||
|
||||
/// No description provided for @allCities.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'All cities'**
|
||||
String get allCities;
|
||||
|
||||
/// No description provided for @searchCities.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Search cities…'**
|
||||
String get searchCities;
|
||||
|
||||
/// No description provided for @chooseLanguage.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Language'**
|
||||
String get chooseLanguage;
|
||||
|
||||
/// No description provided for @languageName.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'English'**
|
||||
String get languageName;
|
||||
|
||||
/// No description provided for @perDay.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'/day'**
|
||||
String get perDay;
|
||||
|
||||
/// No description provided for @nDays.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'{count, plural, =1{1 day} other{{count} days}}'**
|
||||
String nDays(num count);
|
||||
|
||||
/// No description provided for @total.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'total'**
|
||||
String get total;
|
||||
|
||||
/// No description provided for @reserveThisCar.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Reserve This Car'**
|
||||
String get reserveThisCar;
|
||||
|
||||
/// No description provided for @lightTheme.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Light'**
|
||||
String get lightTheme;
|
||||
|
||||
/// No description provided for @darkTheme.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Dark'**
|
||||
String get darkTheme;
|
||||
|
||||
/// No description provided for @settings.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Settings'**
|
||||
String get settings;
|
||||
|
||||
/// No description provided for @anyPrice.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Any price'**
|
||||
String get anyPrice;
|
||||
|
||||
/// No description provided for @price.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Price'**
|
||||
String get price;
|
||||
|
||||
/// No description provided for @apply.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Apply'**
|
||||
String get apply;
|
||||
|
||||
/// No description provided for @selectAll.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Select all'**
|
||||
String get selectAll;
|
||||
|
||||
/// No description provided for @clearAll.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Clear all'**
|
||||
String get clearAll;
|
||||
|
||||
/// No description provided for @pickDates.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Pick dates'**
|
||||
String get pickDates;
|
||||
|
||||
/// No description provided for @pickupLocation.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Pickup location'**
|
||||
String get pickupLocation;
|
||||
|
||||
/// No description provided for @dropoffLocation.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Drop-off location'**
|
||||
String get dropoffLocation;
|
||||
}
|
||||
|
||||
class _AppLocalizationsDelegate
|
||||
extends LocalizationsDelegate<AppLocalizations> {
|
||||
const _AppLocalizationsDelegate();
|
||||
|
||||
@override
|
||||
Future<AppLocalizations> load(Locale locale) {
|
||||
return SynchronousFuture<AppLocalizations>(lookupAppLocalizations(locale));
|
||||
}
|
||||
|
||||
@override
|
||||
bool isSupported(Locale locale) =>
|
||||
<String>['ar', 'en', 'fr'].contains(locale.languageCode);
|
||||
|
||||
@override
|
||||
bool shouldReload(_AppLocalizationsDelegate old) => false;
|
||||
}
|
||||
|
||||
AppLocalizations lookupAppLocalizations(Locale locale) {
|
||||
// Lookup logic when only language code is specified.
|
||||
switch (locale.languageCode) {
|
||||
case 'ar':
|
||||
return AppLocalizationsAr();
|
||||
case 'en':
|
||||
return AppLocalizationsEn();
|
||||
case 'fr':
|
||||
return AppLocalizationsFr();
|
||||
}
|
||||
|
||||
throw FlutterError(
|
||||
'AppLocalizations.delegate failed to load unsupported locale "$locale". This is likely '
|
||||
'an issue with the localizations generation tool. Please file an issue '
|
||||
'on GitHub with a reproducible sample app and the gen-l10n configuration '
|
||||
'that was used.',
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,151 @@
|
||||
// ignore: unused_import
|
||||
import 'package:intl/intl.dart' as intl;
|
||||
import 'app_localizations.dart';
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
|
||||
/// The translations for Arabic (`ar`).
|
||||
class AppLocalizationsAr extends AppLocalizations {
|
||||
AppLocalizationsAr([String locale = 'ar']) : super(locale);
|
||||
|
||||
@override
|
||||
String get appName => 'RentalDriveGo';
|
||||
|
||||
@override
|
||||
String get tagline => 'أسهل طريقة للعثور\nوحجز سيارتك المثالية';
|
||||
|
||||
@override
|
||||
String get findYourCar => 'ابحث عن سيارتك';
|
||||
|
||||
@override
|
||||
String get companySignIn => 'تسجيل دخول لوحة تحكم الشركة';
|
||||
|
||||
@override
|
||||
String get sameDropoff => 'إرجاع نفس المكان';
|
||||
|
||||
@override
|
||||
String get differentDropoff => 'إرجاع مكان آخر';
|
||||
|
||||
@override
|
||||
String get findCarToRent => 'ابحث عن سيارة للإيجار';
|
||||
|
||||
@override
|
||||
String get allCarTypes => 'جميع أنواع السيارات';
|
||||
|
||||
@override
|
||||
String get search => 'بحث';
|
||||
|
||||
@override
|
||||
String get searching => 'جارٍ البحث…';
|
||||
|
||||
@override
|
||||
String vehiclesFound(num count) {
|
||||
String _temp0 = intl.Intl.pluralLogic(
|
||||
count,
|
||||
locale: localeName,
|
||||
other: '$count سيارة متوفرة',
|
||||
few: '$count سيارات متوفرة',
|
||||
two: 'سيارتان متوفرتان',
|
||||
one: 'سيارة واحدة متوفرة',
|
||||
zero: 'لا توجد سيارات',
|
||||
);
|
||||
return '$_temp0';
|
||||
}
|
||||
|
||||
@override
|
||||
String get noVehiclesFound => 'لا توجد سيارات';
|
||||
|
||||
@override
|
||||
String get tryDifferentSearch => 'جرّب تواريخ أو مدينة أو نوع مختلف';
|
||||
|
||||
@override
|
||||
String get couldNotLoadVehicles => 'تعذّر تحميل السيارات';
|
||||
|
||||
@override
|
||||
String get checkConnectionRetry => 'تحقق من اتصالك وحاول مجدداً';
|
||||
|
||||
@override
|
||||
String get retry => 'إعادة المحاولة';
|
||||
|
||||
@override
|
||||
String get myBookings => 'حجوزاتي';
|
||||
|
||||
@override
|
||||
String get browse => 'تصفح';
|
||||
|
||||
@override
|
||||
String get signInToViewBookings => 'سجّل الدخول لعرض حجوزاتك';
|
||||
|
||||
@override
|
||||
String get carType => 'نوع السيارة';
|
||||
|
||||
@override
|
||||
String get selectCity => 'اختر المدينة';
|
||||
|
||||
@override
|
||||
String get allCities => 'جميع المدن';
|
||||
|
||||
@override
|
||||
String get searchCities => 'ابحث عن مدينة…';
|
||||
|
||||
@override
|
||||
String get chooseLanguage => 'اللغة';
|
||||
|
||||
@override
|
||||
String get languageName => 'العربية';
|
||||
|
||||
@override
|
||||
String get perDay => '/يوم';
|
||||
|
||||
@override
|
||||
String nDays(num count) {
|
||||
String _temp0 = intl.Intl.pluralLogic(
|
||||
count,
|
||||
locale: localeName,
|
||||
other: '$count يوم',
|
||||
few: '$count أيام',
|
||||
two: 'يومان',
|
||||
one: 'يوم واحد',
|
||||
);
|
||||
return '$_temp0';
|
||||
}
|
||||
|
||||
@override
|
||||
String get total => 'الإجمالي';
|
||||
|
||||
@override
|
||||
String get reserveThisCar => 'احجز هذه السيارة';
|
||||
|
||||
@override
|
||||
String get lightTheme => 'فاتح';
|
||||
|
||||
@override
|
||||
String get darkTheme => 'داكن';
|
||||
|
||||
@override
|
||||
String get settings => 'الإعدادات';
|
||||
|
||||
@override
|
||||
String get anyPrice => 'أي سعر';
|
||||
|
||||
@override
|
||||
String get price => 'السعر';
|
||||
|
||||
@override
|
||||
String get apply => 'تطبيق';
|
||||
|
||||
@override
|
||||
String get selectAll => 'تحديد الكل';
|
||||
|
||||
@override
|
||||
String get clearAll => 'مسح الكل';
|
||||
|
||||
@override
|
||||
String get pickDates => 'اختر التواريخ';
|
||||
|
||||
@override
|
||||
String get pickupLocation => 'موقع الاستلام';
|
||||
|
||||
@override
|
||||
String get dropoffLocation => 'موقع الإرجاع';
|
||||
}
|
||||
@@ -0,0 +1,147 @@
|
||||
// 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 appName => 'RentalDriveGo';
|
||||
|
||||
@override
|
||||
String get tagline => 'The easiest way to find\nand reserve your perfect car';
|
||||
|
||||
@override
|
||||
String get findYourCar => 'Find your car';
|
||||
|
||||
@override
|
||||
String get companySignIn => 'Company dashboard sign in';
|
||||
|
||||
@override
|
||||
String get sameDropoff => 'Same drop-off';
|
||||
|
||||
@override
|
||||
String get differentDropoff => 'Different drop-off';
|
||||
|
||||
@override
|
||||
String get findCarToRent => 'Find a car to rent';
|
||||
|
||||
@override
|
||||
String get allCarTypes => 'All car types';
|
||||
|
||||
@override
|
||||
String get search => 'Search';
|
||||
|
||||
@override
|
||||
String get searching => 'Searching…';
|
||||
|
||||
@override
|
||||
String vehiclesFound(num count) {
|
||||
String _temp0 = intl.Intl.pluralLogic(
|
||||
count,
|
||||
locale: localeName,
|
||||
other: '$count vehicles found',
|
||||
one: '1 vehicle found',
|
||||
zero: 'No vehicles found',
|
||||
);
|
||||
return '$_temp0';
|
||||
}
|
||||
|
||||
@override
|
||||
String get noVehiclesFound => 'No vehicles found';
|
||||
|
||||
@override
|
||||
String get tryDifferentSearch => 'Try different dates, city, or car type';
|
||||
|
||||
@override
|
||||
String get couldNotLoadVehicles => 'Could not load vehicles';
|
||||
|
||||
@override
|
||||
String get checkConnectionRetry => 'Check your connection and try again';
|
||||
|
||||
@override
|
||||
String get retry => 'Retry';
|
||||
|
||||
@override
|
||||
String get myBookings => 'My Bookings';
|
||||
|
||||
@override
|
||||
String get browse => 'Browse';
|
||||
|
||||
@override
|
||||
String get signInToViewBookings => 'Sign in to view your bookings';
|
||||
|
||||
@override
|
||||
String get carType => 'Car type';
|
||||
|
||||
@override
|
||||
String get selectCity => 'Select city';
|
||||
|
||||
@override
|
||||
String get allCities => 'All cities';
|
||||
|
||||
@override
|
||||
String get searchCities => 'Search cities…';
|
||||
|
||||
@override
|
||||
String get chooseLanguage => 'Language';
|
||||
|
||||
@override
|
||||
String get languageName => 'English';
|
||||
|
||||
@override
|
||||
String get perDay => '/day';
|
||||
|
||||
@override
|
||||
String nDays(num count) {
|
||||
String _temp0 = intl.Intl.pluralLogic(
|
||||
count,
|
||||
locale: localeName,
|
||||
other: '$count days',
|
||||
one: '1 day',
|
||||
);
|
||||
return '$_temp0';
|
||||
}
|
||||
|
||||
@override
|
||||
String get total => 'total';
|
||||
|
||||
@override
|
||||
String get reserveThisCar => 'Reserve This Car';
|
||||
|
||||
@override
|
||||
String get lightTheme => 'Light';
|
||||
|
||||
@override
|
||||
String get darkTheme => 'Dark';
|
||||
|
||||
@override
|
||||
String get settings => 'Settings';
|
||||
|
||||
@override
|
||||
String get anyPrice => 'Any price';
|
||||
|
||||
@override
|
||||
String get price => 'Price';
|
||||
|
||||
@override
|
||||
String get apply => 'Apply';
|
||||
|
||||
@override
|
||||
String get selectAll => 'Select all';
|
||||
|
||||
@override
|
||||
String get clearAll => 'Clear all';
|
||||
|
||||
@override
|
||||
String get pickDates => 'Pick dates';
|
||||
|
||||
@override
|
||||
String get pickupLocation => 'Pickup location';
|
||||
|
||||
@override
|
||||
String get dropoffLocation => 'Drop-off location';
|
||||
}
|
||||
@@ -0,0 +1,149 @@
|
||||
// ignore: unused_import
|
||||
import 'package:intl/intl.dart' as intl;
|
||||
import 'app_localizations.dart';
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
|
||||
/// The translations for French (`fr`).
|
||||
class AppLocalizationsFr extends AppLocalizations {
|
||||
AppLocalizationsFr([String locale = 'fr']) : super(locale);
|
||||
|
||||
@override
|
||||
String get appName => 'RentalDriveGo';
|
||||
|
||||
@override
|
||||
String get tagline =>
|
||||
'La façon la plus simple de trouver\net réserver la voiture parfaite';
|
||||
|
||||
@override
|
||||
String get findYourCar => 'Trouver ma voiture';
|
||||
|
||||
@override
|
||||
String get companySignIn => 'Connexion tableau de bord entreprise';
|
||||
|
||||
@override
|
||||
String get sameDropoff => 'Retour même lieu';
|
||||
|
||||
@override
|
||||
String get differentDropoff => 'Retour autre lieu';
|
||||
|
||||
@override
|
||||
String get findCarToRent => 'Trouver une voiture à louer';
|
||||
|
||||
@override
|
||||
String get allCarTypes => 'Tous les types';
|
||||
|
||||
@override
|
||||
String get search => 'Rechercher';
|
||||
|
||||
@override
|
||||
String get searching => 'Recherche…';
|
||||
|
||||
@override
|
||||
String vehiclesFound(num count) {
|
||||
String _temp0 = intl.Intl.pluralLogic(
|
||||
count,
|
||||
locale: localeName,
|
||||
other: '$count véhicules trouvés',
|
||||
one: '1 véhicule trouvé',
|
||||
zero: 'Aucun véhicule trouvé',
|
||||
);
|
||||
return '$_temp0';
|
||||
}
|
||||
|
||||
@override
|
||||
String get noVehiclesFound => 'Aucun véhicule trouvé';
|
||||
|
||||
@override
|
||||
String get tryDifferentSearch => 'Essayez d\'autres dates, ville ou type';
|
||||
|
||||
@override
|
||||
String get couldNotLoadVehicles => 'Impossible de charger les véhicules';
|
||||
|
||||
@override
|
||||
String get checkConnectionRetry => 'Vérifiez votre connexion et réessayez';
|
||||
|
||||
@override
|
||||
String get retry => 'Réessayer';
|
||||
|
||||
@override
|
||||
String get myBookings => 'Mes réservations';
|
||||
|
||||
@override
|
||||
String get browse => 'Parcourir';
|
||||
|
||||
@override
|
||||
String get signInToViewBookings =>
|
||||
'Connectez-vous pour voir vos réservations';
|
||||
|
||||
@override
|
||||
String get carType => 'Type de voiture';
|
||||
|
||||
@override
|
||||
String get selectCity => 'Sélectionner une ville';
|
||||
|
||||
@override
|
||||
String get allCities => 'Toutes les villes';
|
||||
|
||||
@override
|
||||
String get searchCities => 'Rechercher des villes…';
|
||||
|
||||
@override
|
||||
String get chooseLanguage => 'Langue';
|
||||
|
||||
@override
|
||||
String get languageName => 'Français';
|
||||
|
||||
@override
|
||||
String get perDay => '/jour';
|
||||
|
||||
@override
|
||||
String nDays(num count) {
|
||||
String _temp0 = intl.Intl.pluralLogic(
|
||||
count,
|
||||
locale: localeName,
|
||||
other: '$count jours',
|
||||
one: '1 jour',
|
||||
);
|
||||
return '$_temp0';
|
||||
}
|
||||
|
||||
@override
|
||||
String get total => 'total';
|
||||
|
||||
@override
|
||||
String get reserveThisCar => 'Réserver cette voiture';
|
||||
|
||||
@override
|
||||
String get lightTheme => 'Clair';
|
||||
|
||||
@override
|
||||
String get darkTheme => 'Sombre';
|
||||
|
||||
@override
|
||||
String get settings => 'Paramètres';
|
||||
|
||||
@override
|
||||
String get anyPrice => 'Tout prix';
|
||||
|
||||
@override
|
||||
String get price => 'Prix';
|
||||
|
||||
@override
|
||||
String get apply => 'Appliquer';
|
||||
|
||||
@override
|
||||
String get selectAll => 'Tout sélectionner';
|
||||
|
||||
@override
|
||||
String get clearAll => 'Tout effacer';
|
||||
|
||||
@override
|
||||
String get pickDates => 'Choisir les dates';
|
||||
|
||||
@override
|
||||
String get pickupLocation => 'Lieu de prise en charge';
|
||||
|
||||
@override
|
||||
String get dropoffLocation => 'Lieu de retour';
|
||||
}
|
||||
Reference in New Issue
Block a user