From 0f7b7cbdf548d3b46cd3de4e152ed7071d4ea2da Mon Sep 17 00:00:00 2001 From: cyberalby2 Date: Mon, 16 Mar 2026 14:19:20 +0100 Subject: [PATCH] AI Settings Screen Localization Improvements and Support --- src/i18n/locales/en.json | 5 ++++- src/i18n/locales/it.json | 5 ++++- src/screens/AISettingsScreen.tsx | 4 ++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index 50571de9..048b51e1 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -925,7 +925,10 @@ "confirm_remove_title": "Remove API Key", "confirm_remove_msg": "Are you sure you want to remove your OpenRouter API key? This will disable AI chat features.", "success_removed": "API key removed successfully", - "error_remove": "Failed to remove API key" + "using":"Using", + "error_remove": "Failed to remove API key", + "free_routing":"free automatic routing", + "paid_plan":"Use a custom OpenRouter model ID (useful for paid plans)" }, "catalog_settings": { "title": "Catalogs", diff --git a/src/i18n/locales/it.json b/src/i18n/locales/it.json index 92fb947a..c0bc8918 100644 --- a/src/i18n/locales/it.json +++ b/src/i18n/locales/it.json @@ -909,7 +909,10 @@ "confirm_remove_title": "Rimuovi Chiave API", "confirm_remove_msg": "Sei sicuro di voler rimuovere la tua chiave API OpenRouter? Questo disabiliterĂ  le funzioni di chat IA.", "success_removed": "Chiave API rimossa con successo", - "error_remove": "Impossibile rimuovere la chiave API" + "error_remove": "Impossibile rimuovere la chiave API", + "using":"In uso", + "free_routing":"scelta modello gratuito automatica", + "paid_plan":"Usa un ID di un modello custom di OpenRouter (utile in caso di piani a pagamento)" }, "catalog_settings": { "title": "Cataloghi", diff --git a/src/screens/AISettingsScreen.tsx b/src/screens/AISettingsScreen.tsx index 3d88b2a4..2b481176 100644 --- a/src/screens/AISettingsScreen.tsx +++ b/src/screens/AISettingsScreen.tsx @@ -286,8 +286,8 @@ const AISettingsScreen: React.FC = () => { {useDefaultModel - ? `Using ${DEFAULT_OPENROUTER_MODEL} (free automatic routing).` - : 'Use a custom OpenRouter model ID (useful for paid plans).'} + ? `${t('ai_settings.using')} ${DEFAULT_OPENROUTER_MODEL} (${t('ai_settings.free_routing')}).` + : `${t('ai_settings.paid_plan')}`} {!useDefaultModel && (