feat: erweiterte Chat-Funktionalität, UI-Verbesserungen und Lokalisierungsupdates
- Chat: Nachrichten-Status (read/unread), WebSocket-Verbesserungen - App: Login-Optimierung, Job-Übersicht verbessert, neue Übersetzungen - Backend: Dialog-Styling, Invoice-Generator, Job-Verwaltung erweitert - Mehrsprachigkeit: Neue Übersetzungen für DE, EN, ES, ET, FR, LT, LV, PL, RU, TR
This commit is contained in:
@@ -11,15 +11,28 @@ import 'app_localizations_lv.dart';
|
||||
import 'app_localizations_lt.dart';
|
||||
|
||||
/// Supported language codes
|
||||
const List<String> supportedLanguageCodes = ['de', 'en', 'es', 'fr', 'pl', 'ru', 'tr', 'et', 'lv', 'lt'];
|
||||
const List<String> supportedLanguageCodes = [
|
||||
'de',
|
||||
'en',
|
||||
'es',
|
||||
'fr',
|
||||
'pl',
|
||||
'ru',
|
||||
'tr',
|
||||
'et',
|
||||
'lv',
|
||||
'lt',
|
||||
];
|
||||
|
||||
/// AppLocalizations provides localized strings for the app
|
||||
abstract class AppLocalizations {
|
||||
static AppLocalizations of(BuildContext context) {
|
||||
return Localizations.of<AppLocalizations>(context, AppLocalizations) ?? AppLocalizationsDe();
|
||||
return Localizations.of<AppLocalizations>(context, AppLocalizations) ??
|
||||
AppLocalizationsDe();
|
||||
}
|
||||
|
||||
static const LocalizationsDelegate<AppLocalizations> delegate = _AppLocalizationsDelegate();
|
||||
static const LocalizationsDelegate<AppLocalizations> delegate =
|
||||
_AppLocalizationsDelegate();
|
||||
|
||||
/// Language name
|
||||
String get languageName;
|
||||
@@ -41,6 +54,7 @@ abstract class AppLocalizations {
|
||||
String get refresh;
|
||||
String get version;
|
||||
String get unknown;
|
||||
String get yesterday;
|
||||
|
||||
// ==================== NAVIGATION ====================
|
||||
String get jobs;
|
||||
@@ -58,7 +72,14 @@ abstract class AppLocalizations {
|
||||
String get welcomeBack;
|
||||
String get loginSubtitle;
|
||||
String get email;
|
||||
String get emailAddress;
|
||||
String get emailAddressHint;
|
||||
String get emailAddressRequired;
|
||||
String get emailAddressInvalid;
|
||||
String get password;
|
||||
String get passwordHint;
|
||||
String get passwordRequired;
|
||||
String get passwordMinLength;
|
||||
String get login;
|
||||
String get loggingIn;
|
||||
String get forgotPassword;
|
||||
@@ -101,6 +122,15 @@ abstract class AppLocalizations {
|
||||
String get deleteJob;
|
||||
String get jobRemoved;
|
||||
String get newJobReceived;
|
||||
String get jobDetails;
|
||||
String get jobTasks;
|
||||
String get deliveryStations;
|
||||
String deliveryStationsCount(int count);
|
||||
String get noDeliveryStations;
|
||||
String get noDeliveryStationsMessage;
|
||||
String get phone;
|
||||
String get unnamedStation;
|
||||
String stationNumber(int number);
|
||||
|
||||
// ==================== TASKS ====================
|
||||
String get tasks;
|
||||
@@ -182,6 +212,9 @@ abstract class AppLocalizations {
|
||||
String get chatTypeGeneral;
|
||||
String get jobNumber;
|
||||
String get messages;
|
||||
String get generalMessages;
|
||||
String get noMessagesYet;
|
||||
String get noChatsAvailable;
|
||||
String get selectPhoto;
|
||||
String get unreadMessages;
|
||||
|
||||
@@ -217,16 +250,20 @@ abstract class AppLocalizations {
|
||||
|
||||
// ==================== STATUS ====================
|
||||
String get statusCreated;
|
||||
String get statusPending;
|
||||
String get statusAssigned;
|
||||
String get statusInProgress;
|
||||
String get statusCompleted;
|
||||
String get statusCancelled;
|
||||
String get statusFailed;
|
||||
String get priorityLow;
|
||||
String get priorityMedium;
|
||||
String get priorityHigh;
|
||||
String get priorityUrgent;
|
||||
}
|
||||
|
||||
class _AppLocalizationsDelegate extends LocalizationsDelegate<AppLocalizations> {
|
||||
class _AppLocalizationsDelegate
|
||||
extends LocalizationsDelegate<AppLocalizations> {
|
||||
const _AppLocalizationsDelegate();
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user