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

@ -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>