feat: add password confirmation to register + fix i18n hardcoded strings

- Add confirmPassword field to registration form with Zod validation
- Replace ~30 hardcoded French/English strings in admin-settings-form
  with proper t() i18n calls (Ollama models, Custom models, search test)
- Extract SettingsHeader to client component for i18n support
- Add 15 i18n keys to all 15 locale files (auth + admin.ai + admin.tools)
- Remove debug "Config value" line from embeddings section

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-04-26 19:59:38 +02:00
parent bbaae76103
commit e358171c45
20 changed files with 385 additions and 114 deletions

View File

@@ -71,7 +71,17 @@
"providerCustomOption": "🔧 Custom OpenAI-Compatible",
"saved": "(सहेजा गया)",
"chatProvider": "चैट प्रदाता",
"chatDescription": "चैट सहायक के लिए AI प्रदाता। कॉन्फ़िगर नहीं होने पर टैग प्रदाता का उपयोग करता है।"
"chatDescription": "चैट सहायक के लिए AI प्रदाता। कॉन्फ़िगर नहीं होने पर टैग प्रदाता का उपयोग करता है।",
"fetchModelsFailed": "मॉडल लाने में विफल",
"refreshModels": "मॉडल रीफ़्रेश करें",
"configured": "कॉन्फ़िगर किया गया",
"fetchingModels": "मॉडल ला रहे हैं...",
"clickToLoadModels": "मॉडल लोड करने के लिए ↺ पर क्लिक करें",
"searchModel": "मॉडल खोजें...",
"noModels": "कोई मॉडल नहीं। ↺ पर क्लिक करें",
"modelsAvailable": "{count} मॉडल उपलब्ध",
"enterUrlToLoad": "URL दर्ज करें और ↺ पर क्लिक करें",
"currentProvider": "(वर्तमान: {provider})"
},
"aiTest": {
"description": "टैग जनरेशन और सिमेंटिक खोज एम्बेडिंग्स के लिए अपने AI प्रदाताओं का परीक्षण करें",
@@ -217,8 +227,11 @@
"jinaKeyDescription": "वेब स्क्रैपिंग के लिए उपयोग किया जाता है। बिना कुंजी के काम करता है लेकिन दर सीमा के साथ।",
"saveSettings": "टूल सेटिंग्स सहेजें",
"updateSuccess": "टूल सेटिंग्स सफलतापूर्वक अपडेट की गईं",
"updateFailed": "टूल सेटिंग्स अपडेट करने में विफल"
}
"updateFailed": "टूल सेटिंग्स अपडेट करने में विफल",
"testing": "परीक्षण हो रहा है...",
"testSearch": "वेब खोज परीक्षण"
},
"settingsDescription": "एप्लिकेशन-वाइड सेटिंग्स कॉन्फ़िगर करें"
},
"ai": {
"analyzing": "AI विश्लेषण जारी है...",
@@ -368,7 +381,9 @@
"signIn": "साइन इन करें",
"signInToAccount": "अपने खाते में साइन इन करें",
"signOut": "Sign out",
"signUp": "साइन अप करें"
"signUp": "साइन अप करें",
"confirmPassword": "पासवर्ड की पुष्टि करें",
"confirmPasswordPlaceholder": "अपना पासवर्ड दोबारा दर्ज करें"
},
"autoLabels": {
"analyzing": "नोट्स का विश्लेषण जारी है...",