feat: update translations

This commit is contained in:
Zamitto 2024-10-22 17:32:40 -03:00
parent 2620f31989
commit c1144d3891
5 changed files with 20 additions and 6 deletions

View File

@ -163,7 +163,9 @@
"max_number_of_artifacts_reached": "Maximum number of backups reached for this game",
"achievements_not_sync": "Your achievements are not synchronized",
"manage_files_description": "Manage which files will be backed up and restored",
"select_folder": "Select folder"
"select_folder": "Select folder",
"backup_from": "Backup from {{date}}",
"custom_backup_location_set": "Custom backup location set"
},
"activation": {
"title": "Activate Hydra",

View File

@ -157,7 +157,11 @@
"no_download_option_info": "Sem informações disponíveis",
"backup_deletion_failed": "Falha ao apagar backup",
"max_number_of_artifacts_reached": "Número máximo de backups atingido para este jogo",
"achievements_not_sync": "Suas conquistas não estão sincronizadas"
"achievements_not_sync": "Suas conquistas não estão sincronizadas",
"backup_from": "Backup de {{date}}",
"custom_backup_location_set": "Localização customizada selecionada",
"select_folder": "Selecione a pasta",
"manage_files_description": "Gerencie quais arquivos serão feitos backup"
},
"activation": {
"title": "Ativação",

View File

@ -282,7 +282,7 @@
},
"achievement": {
"achievement_unlocked": "Conquista desbloqueada",
"unlocked_at": "Desbloqueado em:",
"unlocked_at": "Desbloqueada em:",
"subscription_needed": "Você precisa de uma assinatura Hydra Cloud para visualizar este conteúdo",
"new_achievements_unlocked": "Encontradas {{achievementCount}} novas conquistas de {{gameCount}} jogos"
}

View File

@ -72,7 +72,7 @@ export function CloudSyncFilesModal({
setValue("customBackupPath", path);
await window.electron.selectGameBackupPath(shop, objectId!, path);
showSuccessToast("custom_backup_location_set");
showSuccessToast(t("custom_backup_location_set"));
getGameBackupPreview();
}
}, [objectId, setValue, shop, showSuccessToast, getGameBackupPreview]);

View File

@ -126,7 +126,11 @@ export function CloudSyncModal({ visible, onClose }: CloudSyncModalProps) {
return t("no_backup_preview");
}
return t("no_backups");
if (artifacts.length === 0) {
return t("no_backups");
}
return "";
}, [
uploadingBackup,
backupDownloadProgress?.progress,
@ -210,7 +214,11 @@ export function CloudSyncModal({ visible, onClose }: CloudSyncModalProps) {
marginBottom: 4,
}}
>
<h3>Backup from 22/10</h3>
<h3>
{t("backup_from", {
date: format(artifact.createdAt, "dd/MM/yyyy"),
})}
</h3>
<small>{formatBytes(artifact.artifactLengthInBytes)}</small>
</div>