Backup Screen Popup Localization Fixes and Improvements + Added Japanese English Label to language picker

This commit is contained in:
cyberalby2 2026-03-16 17:16:07 +01:00
parent b2163b701e
commit fd579c2af3
3 changed files with 23 additions and 6 deletions

View file

@ -662,6 +662,7 @@
"spanish": "Spanish",
"french": "French",
"italian": "Italian",
"japanese":"Japanese",
"croatian": "Croatian",
"chinese": "Chinese (Simplified)",
"hindi": "Hindi",
@ -1198,6 +1199,14 @@
"title": "Backup & Restore",
"options_title": "Backup Options",
"options_desc": "Choose what to include in your backups",
"watched_status":"Watched status",
"backup_contents":"Backup Contents",
"total":"Total",
"items":"items",
"entries":"entries",
"installed":"installed",
"configurations":"configurations",
"backup_contents_desc":"This backup includes your selected app settings, themes, watched markers, and integration data.",
"section_core": "Core Data",
"section_addons": "Addons & Integrations",
"section_settings": "Settings & Preferences",

View file

@ -1183,6 +1183,14 @@
"title": "Backup e Ripristino",
"options_title": "Opzioni Backup",
"options_desc": "Scegli cosa includere nei tuoi backup",
"watched_status":"Progressi visione",
"backup_contents":"Contenuti Backup",
"total":"Totale",
"items":"elementi",
"entries":"voci",
"configurations":"configurazioni",
"installed":"installati",
"backup_contents_desc":"Questo backup includerà le impostazioni app selezionate, i temi, i contenuti guardati e i dati sulle integrazioni.",
"section_core": "Dati Principali",
"section_addons": "Addon e Integrazioni",
"section_settings": "Impostazioni e Preferenze",

View file

@ -130,31 +130,31 @@ const BackupScreen: React.FC = () => {
let total = 0;
if (preferences.includeLibrary) {
items.push(`${t('backup.library_label')}: ${preview.library} items`);
items.push(`${t('backup.library_label')}: ${preview.library} ${t('backup.items')}`);
total += preview.library;
}
if (preferences.includeWatchProgress) {
items.push(`${t('backup.watch_progress_label')}: ${preview.watchProgress} entries`);
items.push(`${t('backup.watch_progress_label')}: ${preview.watchProgress} ${t('backup.entries')}`);
total += preview.watchProgress;
// Include watched status with watch progress
items.push(`Watched Status: ${preview.watchedStatus} items`);
items.push(`${t('backup.watched_status')}: ${preview.watchedStatus} ${t('backup.items')}`);
total += preview.watchedStatus;
}
if (preferences.includeAddons) {
items.push(`${t('backup.addons_label')}: ${preview.addons} installed`);
items.push(`${t('backup.addons_label')}: ${preview.addons} ${t('backup.installed')}`);
total += preview.addons;
}
if (preferences.includeLocalScrapers) {
items.push(`${t('backup.plugins_label')}: ${preview.scrapers} configurations`);
items.push(`${t('backup.plugins_label')}: ${preview.scrapers} ${t('backup.configurations')}`);
total += preview.scrapers;
}
// Check if no items are selected
const message = items.length > 0
? `Backup Contents:\n\n${items.join('\n')}\n\nTotal: ${total} items\n\nThis backup includes your selected app settings, themes, watched markers, and integration data.`
? `${t('backup.backup_contents')}:\n\n${items.join('\n')}\n\ ${t('backup.total')}: ${total} ${t('backup.items')}\n\n${t('backup.backup_contents_desc')}`
: t('backup.alert_no_content');
openAlert(