diff --git a/src/components/MajorUpdateOverlay.tsx b/src/components/MajorUpdateOverlay.tsx index bd21d963..175b5b7f 100644 --- a/src/components/MajorUpdateOverlay.tsx +++ b/src/components/MajorUpdateOverlay.tsx @@ -2,6 +2,7 @@ import React from 'react'; import { Modal, View, Text, StyleSheet, TouchableOpacity, Linking } from 'react-native'; import { MaterialIcons } from '@expo/vector-icons'; import { useTheme } from '../contexts/ThemeContext'; +import { useTranslation } from 'react-i18next'; interface Props { visible: boolean; @@ -17,7 +18,7 @@ interface Props { const MajorUpdateOverlay: React.FC = ({ visible, latestTag, releaseNotes, releaseUrl, onDismiss, onLater, onUpdateAction, isDownloading, downloadProgress }) => { const { currentTheme } = useTheme(); - + const {t} = useTranslation(); if (!visible) return null; const progressPercent = downloadProgress ? Math.round(downloadProgress * 100) : 0; @@ -30,9 +31,9 @@ const MajorUpdateOverlay: React.FC = ({ visible, latestTag, releaseNotes, - Major update available + {t('major_update_overlay.major_update_available')} {!!latestTag && ( - Latest: {latestTag} + {t('updates.latest')} {latestTag} )} @@ -53,17 +54,17 @@ const MajorUpdateOverlay: React.FC = ({ visible, latestTag, releaseNotes, > - {isDownloading ? `Downloading... ${progressPercent}%` : (onUpdateAction ? 'Update Now' : 'View release')} + {isDownloading ? `${t('updates.status_downloading')} ${progressPercent}%` : (onUpdateAction ? t('update_popup.update_now') : t('updates.view_release'))} ) : null} - Later + {t('update_popup.later')} - Dismiss + {t('update_popup.dismiss')} diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index b8da5acb..ae36fba9 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -1629,5 +1629,9 @@ "api_key_cleared":"API Key Cleared", "api_key_saved":"API Key Saved", "api_key_invalid":"Invalid API Key" + }, + "major_update_overlay":{ + "major_update_available":"Major update available", + "update_now":"Update Now" } } diff --git a/src/i18n/locales/it.json b/src/i18n/locales/it.json index a670700d..5ae72e9d 100644 --- a/src/i18n/locales/it.json +++ b/src/i18n/locales/it.json @@ -1613,5 +1613,9 @@ "api_key_cleared":"Chiave API cancellata", "api_key_saved":"Chiave API Salvata", "api_key_invalid":"Chiave API non valida" + }, + "major_update_overlay":{ + "major_update_available":"Aggiornamento Importante Disponibile", + "update_now":"Aggiorna Ora" } }