Update local backup strings

Co-authored-by: trevor-signal <131492920+trevor-signal@users.noreply.github.com>
This commit is contained in:
automated-signal
2026-03-10 14:17:50 -05:00
committed by GitHub
parent b5d8d1109f
commit 6a77a111a1
6 changed files with 40 additions and 8 deletions

View File

@@ -47,6 +47,8 @@ export function PreferencesLocalBackups({
i18n,
lastLocalBackup,
localBackupFolder,
openFileInFolder,
osName,
onBackupKeyViewedChange,
settingsLocation,
pickLocalBackupFolder,
@@ -61,6 +63,8 @@ export function PreferencesLocalBackups({
lastLocalBackup: LocalBackupExportMetadata | undefined;
localBackupFolder: string | undefined;
onBackupKeyViewedChange: (keyViewed: boolean) => void;
openFileInFolder: (path: string) => void;
osName: 'linux' | 'macos' | 'windows' | undefined;
settingsLocation: SettingsLocation;
pickLocalBackupFolder: () => Promise<string | undefined>;
promptOSAuth: (
@@ -120,6 +124,18 @@ export function PreferencesLocalBackups({
})
: i18n('icu:Preferences__local-backups-last-backup-never');
let showInFolderText = i18n(
'icu:PlaintextExport--CompleteDialog--ShowFiles--Windows'
);
if (osName === 'macos') {
showInFolderText = i18n(
'icu:PlaintextExport--CompleteDialog--ShowFiles--Mac'
);
} else if (osName === 'linux') {
showInFolderText = i18n(
'icu:PlaintextExport--CompleteDialog--ShowFiles--Linux'
);
}
return (
<>
<div className="Preferences__padding">
@@ -170,9 +186,9 @@ export function PreferencesLocalBackups({
<AxoButton.Root
variant="secondary"
size="lg"
onClick={pickLocalBackupFolder}
onClick={() => openFileInFolder(localBackupFolder)}
>
{i18n('icu:Preferences__local-backups-folder__change')}
{showInFolderText}
</AxoButton.Root>
</div>
</FlowingControl>