From a4d759e6fd4758f0e75b44e0c8febbe1d87c3a4c Mon Sep 17 00:00:00 2001 From: OpenClaw Date: Fri, 13 Mar 2026 10:32:03 +0000 Subject: [PATCH] feat: Add i18n translations to all major views - Dashboard, Users, Orders, Timesheets, Availability - Vehicles, Qualifications, Settings - Use $t() and useI18n() for all user-visible text - Translations work across all 7 languages --- src/views/AvailabilityView.vue | 16 +- src/views/DashboardView.vue | 44 ++--- src/views/OrdersView.vue | 69 +++---- src/views/QualificationsView.vue | 321 +++++++------------------------ src/views/SettingsView.vue | 223 +++++---------------- src/views/TimesheetsView.vue | 36 ++-- src/views/UsersView.vue | 55 +++--- src/views/VehiclesView.vue | 46 ++--- 8 files changed, 246 insertions(+), 564 deletions(-) diff --git a/src/views/AvailabilityView.vue b/src/views/AvailabilityView.vue index 375bcbe..09dcaeb 100644 --- a/src/views/AvailabilityView.vue +++ b/src/views/AvailabilityView.vue @@ -1,8 +1,10 @@ @@ -84,52 +76,48 @@ function getStatusLabel(status: string) { {{ greeting }}, {{ authStore.user?.first_name }}! 👋

- Willkommen zurück bei SeCu. + {{ t('dashboard.overview') }}

-
📋
-

Offene Aufträge

+

{{ t('dashboard.todayOrders') }}

{{ stats.openOrders }}

-
-

Meine Aufträge

+

{{ t('orders.title') }}

{{ stats.myOrders }}

-
⏱️
-

Ausstehende Stundenzettel

+

{{ t('dashboard.pendingTimesheets') }}

{{ stats.pendingTimesheets }}

-
{{ stats.availableToday ? '✅' : '❓' }}
-

Heute verfügbar

+

{{ t('availability.available') }}

- {{ stats.availableToday ? 'Ja' : 'Nicht gemeldet' }} + {{ stats.availableToday ? t('app.yes') : t('app.no') }}

@@ -152,19 +140,19 @@ function getStatusLabel(status: string) {

- Aktuelle Aufträge + {{ t('dashboard.recentActivity') }}

- Alle anzeigen → + {{ t('app.all') }} →
- Lädt... + {{ t('app.loading') }}
- Keine Aufträge vorhanden + {{ t('messages.noData') }}
diff --git a/src/views/OrdersView.vue b/src/views/OrdersView.vue index 8a495e8..ccfa940 100644 --- a/src/views/OrdersView.vue +++ b/src/views/OrdersView.vue @@ -1,8 +1,10 @@ @@ -119,28 +108,28 @@ function formatDate(dateStr?: string) {

- 📋 Aufträge + 📋 {{ t('orders.title') }}

- +
@@ -148,11 +137,11 @@ function formatDate(dateStr?: string) {
- Lädt... + {{ t('app.loading') }}
- Keine Aufträge gefunden + {{ t('messages.noData') }}
@@ -187,69 +176,69 @@ function formatDate(dateStr?: string) {

- Neuer Auftrag + {{ t('orders.new') }}

- +
- + -
- -
- - + +
diff --git a/src/views/SettingsView.vue b/src/views/SettingsView.vue index 1407a6d..546e20c 100644 --- a/src/views/SettingsView.vue +++ b/src/views/SettingsView.vue @@ -1,9 +1,11 @@