diff --git a/src/components/settings/DownloadsSettings.tsx b/src/components/settings/DownloadsSettings.tsx index db368c50..da5a78ef 100644 --- a/src/components/settings/DownloadsSettings.tsx +++ b/src/components/settings/DownloadsSettings.tsx @@ -16,6 +16,7 @@ import { DEFAULT_ATTACHMENT_TEMPLATE, type EmailFilenameOptions, } from '../../lib/download-filename'; +import { useLocaleStore } from '../../stores/locale-store'; const SAMPLE = buildSampleEmail(); const SAMPLE_ATTACHMENT = { name: 'Rechnung 2026.pdf', type: 'application/pdf' }; @@ -24,6 +25,7 @@ export function DownloadsSettings() { const c = useColors(); const styles = React.useMemo(() => makeStyles(c), [c]); const hydrated = useSettingsStore((s) => s.hydrated); + const t = useLocaleStore((s) => s.t); const hydrate = useSettingsStore((s) => s.hydrate); const update = useSettingsStore((s) => s.updateSetting); @@ -46,8 +48,8 @@ export function DownloadsSettings() { return ( - Reset to default + {t('settings.downloads.reset', "Restore default")} - Preview + {t('settings.downloads.preview', "Preview:")} {emailPreview} - Reset to default + {t('settings.downloads.reset', "Restore default")} - Preview + {t('settings.downloads.preview', "Preview:")} {attachmentPreview} - + update('exportSpaceReplacement', v as SpaceReplacement)} options={[ - { value: 'keep', label: 'Keep' }, - { value: 'underscore', label: 'Underscore' }, - { value: 'dash', label: 'Dash' }, + { value: 'keep', label: t('settings.downloads.spaces.keep', "Keep spaces") }, + { value: 'underscore', label: t('settings.downloads.spaces.underscore', "Replace with _") }, + { value: 'dash', label: t('settings.downloads.spaces.dash', "Replace with -") }, ]} /> - + update('exportLowercase', v)} /> update('exportStripDiacritics', v)} /> update('postExportAction', v as PostExportAction)} options={[ - { value: 'keep', label: 'Keep in folder' }, - { value: 'archive', label: 'Archive' }, - { value: 'trash', label: 'Move to Trash' }, + { value: 'keep', label: t('settings.downloads.after_export.keep', "Keep in mailbox") }, + { value: 'archive', label: t('settings.downloads.after_export.archive', "Move to archive") }, + { value: 'trash', label: t('settings.downloads.after_export.trash', "Move to trash") }, ]} />