@futo-org/backups-orchestrator-ui 0.45.0 → 0.47.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/dist/components/backends/BackendItem.svelte +17 -13
  2. package/dist/components/backends/BackendsList.svelte +4 -3
  3. package/dist/components/backends/dialogs/CreateLocalBackendModal.svelte +6 -5
  4. package/dist/components/backends/dialogs/OAuthDeviceFlowModal.svelte +3 -2
  5. package/dist/components/backends/dialogs/SelectBackendModal.svelte +7 -6
  6. package/dist/components/backups/BackupItem.svelte +13 -12
  7. package/dist/components/backups/BackupStatus.svelte +45 -40
  8. package/dist/components/backups/BackupsList.svelte +6 -5
  9. package/dist/components/backups/dialogs/ConfigureRepositoryModal.svelte +9 -8
  10. package/dist/components/backups/dialogs/CreateRepositoryModal.svelte +8 -4
  11. package/dist/components/backups/dialogs/ImportRepositoryModal.svelte +5 -4
  12. package/dist/components/backups/dialogs/ReconfigureRepositoryBackendModal.svelte +3 -3
  13. package/dist/components/backups/dialogs/RestoreSnapshotModal.svelte +16 -15
  14. package/dist/components/backups/dialogs/RollbackSnapshotModal.svelte +9 -8
  15. package/dist/components/backups/dialogs/SelectRepositoryModal.svelte +13 -7
  16. package/dist/components/backups/dialogs/ViewStatusModal.svelte +50 -19
  17. package/dist/components/backups/metrics-history/MetricsHistoryModal.svelte +37 -21
  18. package/dist/components/backups/run-history/RepositoryRunHistory.svelte +4 -3
  19. package/dist/components/backups/run-history/RepositoryRunHistoryItem.svelte +32 -12
  20. package/dist/components/backups/run-history/RepositoryRunHistoryPage.svelte +16 -14
  21. package/dist/components/backups/run-history/RunHistoryModal.svelte +5 -1
  22. package/dist/components/backups/snapshots-list/RepositorySnapshotsList.svelte +5 -4
  23. package/dist/components/backups/snapshots-list/RepositorySnapshotsListItem.svelte +15 -5
  24. package/dist/components/backups/snapshots-list/RepositorySnapshotsPage.svelte +7 -6
  25. package/dist/components/backups/snapshots-list/SnapshotsListModal.svelte +5 -1
  26. package/dist/components/dashboard/DashboardAvgBackupTime.svelte +2 -1
  27. package/dist/components/dashboard/DashboardBackupHealth.svelte +14 -10
  28. package/dist/components/dashboard/DashboardCurrentUsage.svelte +2 -1
  29. package/dist/components/dashboard/DashboardDailyBackupTime.svelte +2 -1
  30. package/dist/components/dashboard/DashboardInstall.svelte +3 -2
  31. package/dist/components/dashboard/DashboardRecentBackups.svelte +9 -4
  32. package/dist/components/dashboard/DashboardTotalStored.svelte +7 -2
  33. package/dist/components/integrations/immich/ImmichBackupSettingsPage.svelte +2 -0
  34. package/dist/components/integrations/immich/ImmichBackupsAdminNavButton.svelte +2 -1
  35. package/dist/components/integrations/immich/ImmichBackupsSidebarItem.svelte +22 -14
  36. package/dist/components/integrations/immich/ImmichDatabaseDumpAlert.svelte +43 -0
  37. package/dist/components/integrations/immich/ImmichDatabaseDumpAlert.svelte.d.ts +18 -0
  38. package/dist/components/integrations/immich/ImmichManageBackupOverview.svelte +15 -14
  39. package/dist/components/integrations/immich/ImmichManageBackupPage.svelte +5 -2
  40. package/dist/components/integrations/immich/ImmichOnboardingSetupFlow.svelte +2 -1
  41. package/dist/components/integrations/immich/settings/ImmichSettingsBackupContents.svelte +32 -31
  42. package/dist/components/integrations/immich/settings/ImmichSettingsBandwidth.svelte +140 -0
  43. package/dist/components/integrations/immich/settings/ImmichSettingsBandwidth.svelte.d.ts +3 -0
  44. package/dist/components/integrations/immich/settings/ImmichSettingsSchedule.svelte +16 -15
  45. package/dist/components/integrations/immich/settings/ImmichSettingsStorage.svelte +19 -18
  46. package/dist/components/onboarding/OnboardingBootstrapError.svelte +5 -4
  47. package/dist/components/onboarding/OnboardingLogin.svelte +4 -4
  48. package/dist/components/onboarding/RecoveryKeyDisplay.svelte +5 -4
  49. package/dist/components/onboarding/SampleOnboarding.svelte +4 -3
  50. package/dist/components/onboarding/dialogs/BackupsRecoveryKeyModal.svelte +4 -3
  51. package/dist/components/onboarding/restore-point-flow/RestorePointFlow.svelte +2 -1
  52. package/dist/components/onboarding/restore-point-flow/RestorePointFlow2SelectSnapshot.svelte +8 -4
  53. package/dist/components/onboarding/restore-point-flow/RestorePointFlow3ConfirmRestore.svelte +9 -8
  54. package/dist/components/onboarding/restore-point-flow/RestorePointFlow4Restore.svelte +2 -1
  55. package/dist/components/onboarding/stages/OnboardingStageBackupServices.svelte +9 -6
  56. package/dist/components/onboarding/stages/OnboardingStageKeyImport.svelte +6 -5
  57. package/dist/components/onboarding/stages/OnboardingStageTelemetry.svelte +6 -7
  58. package/dist/components/onboarding/steps/OnboardingStep1FinishSetup.svelte +12 -11
  59. package/dist/components/onboarding/steps/OnboardingStep2ConnectAccount.svelte +13 -12
  60. package/dist/components/onboarding/steps/OnboardingStep3SaveRecoveryKey.svelte +5 -4
  61. package/dist/components/onboarding/steps/OnboardingStep4FirstBackup.svelte +8 -8
  62. package/dist/components/onboarding/upsell/UpsellBackupFeaturesGrid.svelte +11 -14
  63. package/dist/components/onboarding/upsell/UpsellBackupFeaturesGrid.svelte.d.ts +2 -17
  64. package/dist/components/onboarding/upsell/UpsellExplainFutoBackups.svelte +10 -5
  65. package/dist/components/onboarding/upsell/UpsellFrequentlyAskedQuestions.svelte +2 -1
  66. package/dist/components/onboarding/upsell/UpsellFutoBackupsBadge.svelte +2 -1
  67. package/dist/components/onboarding/upsell/UpsellHowItWorks.svelte +10 -10
  68. package/dist/components/onboarding/upsell/UpsellProtectYourImmichLibrary.svelte +14 -11
  69. package/dist/components/schedules/RepositoryPicker.svelte +8 -7
  70. package/dist/components/schedules/ScheduleItem.svelte +6 -5
  71. package/dist/components/schedules/ScheduleList.svelte +4 -3
  72. package/dist/components/schedules/dialogs/ConfigureScheduleModal.svelte +4 -3
  73. package/dist/components/schedules/dialogs/CreateScheduleModal.svelte +7 -3
  74. package/dist/components/settings/SettingsBackends.svelte +3 -2
  75. package/dist/components/settings/SettingsBilling.svelte +13 -12
  76. package/dist/components/settings/SettingsNotifications.svelte +11 -10
  77. package/dist/components/ui/PageLayout.svelte +3 -2
  78. package/dist/components/ui/Pagination.svelte +4 -3
  79. package/dist/components/ui/PathListField.svelte +5 -4
  80. package/dist/components/ui/PathPickerField.svelte +4 -3
  81. package/dist/components/ui/PathPickerModal.svelte +16 -13
  82. package/dist/components/ui/StackListItem.svelte +2 -1
  83. package/dist/components/util/DeviceFlowAction.svelte +3 -2
  84. package/dist/components/util/DeviceFlowCode.svelte +4 -3
  85. package/dist/components/util/RelativeTime.svelte +2 -1
  86. package/dist/fetch-client.d.ts +24 -0
  87. package/dist/fetch-client.js +25 -0
  88. package/dist/i18n.d.ts +3 -0
  89. package/dist/i18n.js +13 -0
  90. package/dist/index.d.ts +1 -0
  91. package/dist/index.js +1 -0
  92. package/dist/locales/en-XA.d.ts +2 -0
  93. package/dist/locales/en-XA.js +1 -0
  94. package/dist/locales/en-XA.po +2198 -0
  95. package/dist/locales/en.d.ts +2 -0
  96. package/dist/locales/en.js +1 -0
  97. package/dist/locales/en.po +2446 -0
  98. package/dist/services/backend.service.d.ts +2 -1
  99. package/dist/services/backend.service.js +6 -5
  100. package/dist/services/config.service.d.ts +17 -0
  101. package/dist/services/config.service.js +37 -0
  102. package/dist/services/deviceFlow.service.svelte.js +6 -5
  103. package/dist/services/filesystem.service.js +2 -1
  104. package/dist/services/immich.integration.service.d.ts +6 -1
  105. package/dist/services/immich.integration.service.js +32 -6
  106. package/dist/services/integrations.service.js +4 -3
  107. package/dist/services/log.service.svelte.js +9 -3
  108. package/dist/services/onboarding.service.js +8 -7
  109. package/dist/services/repository.service.d.ts +2 -1
  110. package/dist/services/repository.service.js +19 -18
  111. package/dist/services/runHistory.service.d.ts +2 -1
  112. package/dist/services/runHistory.service.js +5 -4
  113. package/dist/services/schedule.service.d.ts +2 -1
  114. package/dist/services/schedule.service.js +18 -17
  115. package/dist/services/session.service.js +2 -1
  116. package/dist/services/snapshot.service.d.ts +2 -1
  117. package/dist/services/snapshot.service.js +15 -14
  118. package/dist/services/task.service.js +3 -2
  119. package/dist/utils/format.js +10 -8
  120. package/dist/utils/handle-error.js +2 -1
  121. package/package.json +12 -5
@@ -15,6 +15,7 @@
15
15
  import StepFinishSetup from "./steps/OnboardingStep1FinishSetup.svelte";
16
16
  import StepConnectAccount from "./steps/OnboardingStep2ConnectAccount.svelte";
17
17
  import StepSaveRecoveryKey from "./steps/OnboardingStep3SaveRecoveryKey.svelte";
18
+ import { t } from "svelte-i18n-lingui";
18
19
 
19
20
  type Props = {
20
21
  status: OnboardingStatusResponseDto;
@@ -70,7 +71,7 @@
70
71
  </script>
71
72
 
72
73
  {#if stage === "intro"}
73
- <Modal size="small" title="FUTO Backups" onClose={onCancel}>
74
+ <Modal size="small" title={$t`FUTO Backups`} onClose={onCancel}>
74
75
  <ModalBody>
75
76
  <StepFinishSetup
76
77
  onContinue={() =>
@@ -82,7 +83,7 @@
82
83
  {:else if stage === "telemetry"}
83
84
  <Telemetry onContinue={onTelemetryConfirmed} {onCancel} />
84
85
  {:else if stage === "key"}
85
- <Modal size="small" title="FUTO Backups" onClose={onCancel}>
86
+ <Modal size="small" title={$t`FUTO Backups`} onClose={onCancel}>
86
87
  <ModalBody>
87
88
  <StepSaveRecoveryKey
88
89
  {code}
@@ -101,7 +102,7 @@
101
102
  {onCancel}
102
103
  />
103
104
  {:else if stage === "connect"}
104
- <Modal size="small" title="FUTO Backups" onClose={onCancel}>
105
+ <Modal size="small" title={$t`FUTO Backups`} onClose={onCancel}>
105
106
  <ModalBody>
106
107
  <StepConnectAccount
107
108
  onConnect={() => handleStartYuccaLogin(onFinish)}
@@ -11,6 +11,7 @@
11
11
  Text,
12
12
  } from "@immich/ui";
13
13
  import RecoveryKeyDisplay from "../RecoveryKeyDisplay.svelte";
14
+ import { t } from "svelte-i18n-lingui";
14
15
 
15
16
  type Props = {
16
17
  onClose: () => void;
@@ -21,11 +22,11 @@
21
22
  const query = useRecoveryKey();
22
23
  </script>
23
24
 
24
- <Modal size="small" title="Recovery key" {onClose} icon={false}>
25
+ <Modal size="small" title={$t`Recovery key`} {onClose} icon={false}>
25
26
  <ModalBody>
26
27
  <Stack gap={4}>
27
28
  <Text size="small" class="text-muted text-left">
28
- Keep this key somewhere safe. It is required to restore your backups.
29
+ {$t`Keep this key somewhere safe. It is required to restore your backups.`}
29
30
  </Text>
30
31
 
31
32
  <Suspense {query}>
@@ -37,7 +38,7 @@
37
38
  </ModalBody>
38
39
  <ModalFooter>
39
40
  <HStack>
40
- <Button onclick={onClose}>Close</Button>
41
+ <Button onclick={onClose}>{$t`Close`}</Button>
41
42
  </HStack>
42
43
  </ModalFooter>
43
44
  </Modal>
@@ -3,6 +3,7 @@
3
3
  import { useInspectRepositories } from "../../../services/repository.service";
4
4
  import { Button } from "@immich/ui";
5
5
  import RestorePointFlow2SelectSnapshot from "./RestorePointFlow2SelectSnapshot.svelte";
6
+ import { t } from "svelte-i18n-lingui";
6
7
 
7
8
  type Props = {
8
9
  onCancel: () => void;
@@ -34,7 +35,7 @@
34
35
  >
35
36
  {#snippet footerContent()}
36
37
  <Button variant="ghost" onclick={onImportKey}>
37
- Import a different key
38
+ {$t`Import a different key`}
38
39
  </Button>
39
40
  {/snippet}
40
41
  </SelectRepositoryModal>
@@ -17,6 +17,7 @@
17
17
  Text,
18
18
  } from "@immich/ui";
19
19
  import RestorePointFlow3ConfirmRestore from "./RestorePointFlow3ConfirmRestore.svelte";
20
+ import { t } from "svelte-i18n-lingui";
20
21
 
21
22
  type Props = {
22
23
  onBack: () => void;
@@ -41,7 +42,10 @@
41
42
  />
42
43
  {:else}
43
44
  <Modal
44
- title={`Restore from ${repository.name}`}
45
+ title={$t({
46
+ message: "Restore from {name}",
47
+ values: { name: repository.name },
48
+ })}
45
49
  size="medium"
46
50
  onClose={onBack}
47
51
  >
@@ -65,20 +69,20 @@
65
69
  >
66
70
  </Stack>
67
71
  <Button onclick={() => (selectedSnapshot = snapshot)}>
68
- Restore
72
+ {$t`Restore`}
69
73
  </Button>
70
74
  </HStack>
71
75
  {/each}
72
76
  {#if snapshots.length === 0}
73
77
  <Text class="text-center py-6" color="muted">
74
- No snapshots in this repository.
78
+ {$t`No snapshots in this repository.`}
75
79
  </Text>
76
80
  {/if}
77
81
  </StackList>
78
82
  </ModalBody>
79
83
  <ModalFooter>
80
84
  <HStack>
81
- <Button variant="ghost" onclick={onBack}>Back</Button>
85
+ <Button variant="ghost" onclick={onBack}>{$t`Back`}</Button>
82
86
  </HStack>
83
87
  </ModalFooter>
84
88
  </Modal>
@@ -17,6 +17,7 @@
17
17
  } from "@immich/ui";
18
18
  import { SvelteSet } from "svelte/reactivity";
19
19
  import RestorePointFlow4Restore from "./RestorePointFlow4Restore.svelte";
20
+ import { t } from "svelte-i18n-lingui";
20
21
 
21
22
  type Props = {
22
23
  onBack: () => void;
@@ -65,28 +66,28 @@
65
66
  {#if logId}
66
67
  <RestorePointFlow4Restore {onFinish} {logId} taskId={repository.id} />
67
68
  {:else}
68
- <Modal title="Confirm restore from snapshot" size="small" onClose={onBack}>
69
+ <Modal title={$t`Confirm restore from snapshot`} size="small" onClose={onBack}>
69
70
  <ModalBody>
70
71
  <Stack>
71
72
  <Stack gap={2}>
72
- <Text fontWeight="bold">Restore configuration</Text>
73
+ <Text fontWeight="bold">{$t`Restore configuration`}</Text>
73
74
  <HStack>
74
75
  <Select
75
76
  options={yuccaConfigOptions}
76
77
  bind:value={yuccaConfig}
77
- placeholder="Not restoring backup configuration"
78
+ placeholder={$t`Not restoring backup configuration`}
78
79
  class="flex-1"
79
80
  />
80
81
  {#if yuccaConfig}
81
82
  <Button variant="ghost" onclick={() => (yuccaConfig = undefined)}>
82
- Clear
83
+ {$t`Clear`}
83
84
  </Button>
84
85
  {/if}
85
86
  </HStack>
86
87
  </Stack>
87
88
 
88
89
  <Stack gap={2}>
89
- <Text fontWeight="bold">Backup includes</Text>
90
+ <Text fontWeight="bold">{$t`Backup includes`}</Text>
90
91
  {#each snapshot.paths as path}
91
92
  {@const forced = path === yuccaConfig}
92
93
  <label class="select-none flex gap-2 items-center">
@@ -104,14 +105,14 @@
104
105
  </Stack>
105
106
 
106
107
  <Text size="small" color="muted">
107
- Files will be restored to their exact paths.
108
+ {$t`Files will be restored to their exact paths.`}
108
109
  </Text>
109
110
  </Stack>
110
111
  </ModalBody>
111
112
  <ModalFooter>
112
113
  <HStack>
113
- <Button variant="ghost" onclick={onBack}>Back</Button>
114
- <Button onclick={handleRestore}>Restore</Button>
114
+ <Button variant="ghost" onclick={onBack}>{$t`Back`}</Button>
115
+ <Button onclick={handleRestore}>{$t`Restore`}</Button>
115
116
  </HStack>
116
117
  </ModalFooter>
117
118
  </Modal>
@@ -4,6 +4,7 @@
4
4
  import { createLogObserver } from "../../../services/log.service.svelte";
5
5
  import { Alert, Modal, ModalBody, ProgressBar, Stack, Text } from "@immich/ui";
6
6
  import { onDestroy } from "svelte";
7
+ import { t } from "svelte-i18n-lingui";
7
8
 
8
9
  type Props = {
9
10
  onFinish: () => void;
@@ -28,7 +29,7 @@
28
29
  <OnEvents {onTaskEnd} />
29
30
 
30
31
  <Modal
31
- title={log.errors.length > 0 ? "Restore failed" : "Restoring"}
32
+ title={log.errors.length > 0 ? $t`Restore failed` : $t`Restoring`}
32
33
  size="small"
33
34
  onClose={log.errors.length > 0 ? onFinish : undefined}
34
35
  >
@@ -16,6 +16,7 @@
16
16
  Text,
17
17
  } from "@immich/ui";
18
18
  import { mdiHarddisk, mdiShieldCheck } from "@mdi/js";
19
+ import { t } from "svelte-i18n-lingui";
19
20
 
20
21
  type Props = {
21
22
  restore?: boolean;
@@ -38,31 +39,33 @@
38
39
 
39
40
  <Modal
40
41
  size="small"
41
- title={restore ? "Where would you like to restore from?" : "Backup options"}
42
+ title={restore
43
+ ? $t`Where would you like to restore from?`
44
+ : $t`Backup options`}
42
45
  onClose={onCancel}
43
46
  icon={false}
44
47
  >
45
48
  <ModalBody>
46
49
  <StackList>
47
- <StackListOption title="FUTO Backups" onclick={onFutoBackups}>
50
+ <StackListOption title={$t`FUTO Backups`} onclick={onFutoBackups}>
48
51
  {#snippet icon()}
49
52
  <Icon icon={mdiShieldCheck} />
50
53
  {/snippet}
51
54
 
52
- Simple, hosted backups.
55
+ {$t`Simple, hosted backups.`}
53
56
  </StackListOption>
54
- <StackListOption title="Local Storage" onclick={onLocalBackups}>
57
+ <StackListOption title={$t`Local Storage`} onclick={onLocalBackups}>
55
58
  {#snippet icon()}
56
59
  <Icon icon={mdiHarddisk} />
57
60
  {/snippet}
58
61
 
59
- A folder on this computer.
62
+ {$t`A folder on this computer.`}
60
63
  </StackListOption>
61
64
  </StackList>
62
65
  </ModalBody>
63
66
  <ModalFooter>
64
67
  <HStack>
65
- <Button variant="ghost" onclick={onCancel}>Cancel</Button>
68
+ <Button variant="ghost" onclick={onCancel}>{$t`Cancel`}</Button>
66
69
  </HStack>
67
70
  </ModalFooter>
68
71
  </Modal>
@@ -10,6 +10,7 @@
10
10
  ModalFooter,
11
11
  VStack,
12
12
  } from "@immich/ui";
13
+ import { t } from "svelte-i18n-lingui";
13
14
 
14
15
  type Props = {
15
16
  onImported: (key: string) => void;
@@ -36,21 +37,21 @@
36
37
  };
37
38
  </script>
38
39
 
39
- <Modal size="small" title="Import recovery key" onClose={onCancel}>
40
+ <Modal size="small" title={$t`Import recovery key`} onClose={onCancel}>
40
41
  <ModalBody>
41
42
  <VStack>
42
- <Field label="Recovery Key">
43
+ <Field label={$t`Recovery Key`}>
43
44
  <Input bind:value />
44
45
  </Field>
45
46
  </VStack>
46
47
  </ModalBody>
47
48
  <ModalFooter>
48
49
  <HStack>
49
- <Button disabled={!isValidValue()} onclick={onSave}>Save</Button>
50
+ <Button disabled={!isValidValue()} onclick={onSave}>{$t`Save`}</Button>
50
51
  {#if onStart}
51
- <Button variant="ghost" onclick={onStart}>Back</Button>
52
+ <Button variant="ghost" onclick={onStart}>{$t`Back`}</Button>
52
53
  {:else}
53
- <Button variant="ghost" onclick={onCancel}>Cancel</Button>
54
+ <Button variant="ghost" onclick={onCancel}>{$t`Cancel`}</Button>
54
55
  {/if}
55
56
  </HStack>
56
57
  </ModalFooter>
@@ -11,6 +11,7 @@
11
11
  } from "@immich/ui";
12
12
  import { useEnableTelemetry } from "../../../services/onboarding.service";
13
13
  import { mdiChartBox, mdiEyeOff } from "@mdi/js";
14
+ import { t } from "svelte-i18n-lingui";
14
15
 
15
16
  type Props = {
16
17
  onContinue: () => void;
@@ -26,7 +27,7 @@
26
27
 
27
28
  <Modal
28
29
  size="small"
29
- title="Telemetry required for closed beta"
30
+ title={$t`Telemetry required for closed beta`}
30
31
  onClose={onCancel}
31
32
  >
32
33
  <ModalBody>
@@ -34,26 +35,24 @@
34
35
  <HStack>
35
36
  <Icon icon={mdiChartBox} class="shrink-0 place-self-start mt-1" />
36
37
  <Text>
37
- We collect usage and diagnostic data to understand how FUTO Backups is
38
- used and to find problems.</Text
38
+ {$t`We collect usage and diagnostic data to understand how FUTO Backups is used and to find problems.`}</Text
39
39
  >
40
40
  </HStack>
41
41
  <HStack>
42
42
  <Icon icon={mdiEyeOff} class="shrink-0 place-self-start mt-1" />
43
43
  <Text>
44
- Your photos, files, and recovery key are never collected and never
45
- leave your device unencrypted.</Text
44
+ {$t`Your photos, files, and recovery key are never collected and never leave your device unencrypted.`}</Text
46
45
  >
47
46
  </HStack>
48
47
  </Stack>
49
48
  </ModalBody>
50
49
  <ModalFooter>
51
50
  <HStack>
52
- <Button onclick={onConfirm} loading={mutation.isPending}>Continue</Button>
51
+ <Button onclick={onConfirm} loading={mutation.isPending}>{$t`Continue`}</Button>
53
52
  <Button
54
53
  variant="ghost"
55
54
  onclick={onCancel}
56
- disabled={mutation.isPending}>Cancel</Button
55
+ disabled={mutation.isPending}>{$t`Cancel`}</Button
57
56
  >
58
57
  </HStack>
59
58
  </ModalFooter>
@@ -4,6 +4,7 @@
4
4
  import OnboardingStepLayout, {
5
5
  type OnboardingStepAction,
6
6
  } from "./OnboardingStepLayout.svelte";
7
+ import { t } from "svelte-i18n-lingui";
7
8
 
8
9
  type Props = {
9
10
  onContinue: () => void;
@@ -12,25 +13,25 @@
12
13
 
13
14
  const { onContinue, onImportKey }: Props = $props();
14
15
 
15
- const steps = [
16
- "Connect FUTO account",
17
- "Save your recovery key",
18
- "Start your first backup",
19
- ];
16
+ const steps = $derived([
17
+ $t`Connect FUTO account`,
18
+ $t`Save your recovery key`,
19
+ $t`Start your first backup`,
20
+ ]);
20
21
 
21
- const actions: OnboardingStepAction[] = [
22
- { label: "Continue", onClick: () => onContinue() },
22
+ const actions = $derived<OnboardingStepAction[]>([
23
+ { label: $t`Continue`, onClick: () => onContinue() },
23
24
  {
24
- label: "Import key",
25
+ label: $t`Import key`,
25
26
  onClick: () => onImportKey?.(),
26
27
  $if: () => !!onImportKey,
27
28
  },
28
- ];
29
+ ]);
29
30
  </script>
30
31
 
31
32
  <OnboardingStepLayout
32
- title="Finish setting up FUTO Backups"
33
- description="Your subscription is active. Finish setup to create your recovery key and start backing up your Immich library."
33
+ title={$t`Finish setting up FUTO Backups`}
34
+ description={$t`Your subscription is active. Finish setup to create your recovery key and start backing up your Immich library.`}
34
35
  {actions}
35
36
  >
36
37
  <Stack gap={3}>
@@ -4,6 +4,7 @@
4
4
  import OnboardingStepLayout, {
5
5
  type OnboardingStepAction,
6
6
  } from "./OnboardingStepLayout.svelte";
7
+ import { t } from "svelte-i18n-lingui";
7
8
 
8
9
  type Props = {
9
10
  onConnect: () => void;
@@ -12,29 +13,29 @@
12
13
 
13
14
  const { onConnect, onLocalStorage }: Props = $props();
14
15
 
15
- const outcomes = [
16
- "Link this server to your FUTO Backups subscription",
17
- "Allow Immich to upload encrypted backups",
18
- "Return you here to finish setup",
19
- ];
16
+ const outcomes = $derived([
17
+ $t`Link this server to your FUTO Backups subscription`,
18
+ $t`Allow Immich to upload encrypted backups`,
19
+ $t`Return you here to finish setup`,
20
+ ]);
20
21
 
21
- const actions: OnboardingStepAction[] = [
22
- { label: "Connect account", onClick: () => onConnect() },
22
+ const actions = $derived<OnboardingStepAction[]>([
23
+ { label: $t`Connect account`, onClick: () => onConnect() },
23
24
  {
24
- label: "Use local storage",
25
+ label: $t`Use local storage`,
25
26
  onClick: () => onLocalStorage?.(),
26
27
  $if: () => !!onLocalStorage,
27
28
  },
28
- ];
29
+ ]);
29
30
  </script>
30
31
 
31
32
  <OnboardingStepLayout
32
- title="Connect your FUTO account"
33
- description="Connect your FUTO account to this Immich server so FUTO Backups can store your encrypted backups."
33
+ title={$t`Connect your FUTO account`}
34
+ description={$t`Connect your FUTO account to this Immich server so FUTO Backups can store your encrypted backups.`}
34
35
  {actions}
35
36
  >
36
37
  <Stack gap={3}>
37
- <Text fontWeight="semi-bold" size="small">This will:</Text>
38
+ <Text fontWeight="semi-bold" size="small">{$t`This will:`}</Text>
38
39
 
39
40
  {#each outcomes as outcome (outcome)}
40
41
  <HStack gap={3} class="items-center">
@@ -4,6 +4,7 @@
4
4
  import OnboardingStepLayout, {
5
5
  type OnboardingStepAction,
6
6
  } from "./OnboardingStepLayout.svelte";
7
+ import { t } from "svelte-i18n-lingui";
7
8
 
8
9
  type Props = {
9
10
  code: string;
@@ -17,7 +18,7 @@
17
18
 
18
19
  const actions = $derived<OnboardingStepAction[]>([
19
20
  {
20
- label: "Continue",
21
+ label: $t`Continue`,
21
22
  onClick: onContinue,
22
23
  disabled: !saved,
23
24
  loading,
@@ -26,8 +27,8 @@
26
27
  </script>
27
28
 
28
29
  <OnboardingStepLayout
29
- title="Save your recovery key"
30
- description="You'll need this key to restore your encrypted backups. Save it somewhere safe before continuing. FUTO cannot recover this key if it is lost."
30
+ title={$t`Save your recovery key`}
31
+ description={$t`You'll need this key to restore your encrypted backups. Save it somewhere safe before continuing. FUTO cannot recover this key if it is lost.`}
31
32
  {actions}
32
33
  >
33
34
  <Stack gap={4}>
@@ -37,7 +38,7 @@
37
38
  <Checkbox bind:checked={saved} id="recovery-key-saved" />
38
39
  <Text size="small">
39
40
  <label for="recovery-key-saved">
40
- I saved my recovery key somewhere safe.
41
+ {$t`I saved my recovery key somewhere safe.`}
41
42
  </label>
42
43
  </Text>
43
44
  </HStack>
@@ -4,6 +4,7 @@
4
4
  import OnboardingStepLayout, {
5
5
  type OnboardingStepAction,
6
6
  } from "./OnboardingStepLayout.svelte";
7
+ import { t } from "svelte-i18n-lingui";
7
8
 
8
9
  type Props = {
9
10
  schedule: string;
@@ -22,30 +23,29 @@
22
23
  const settings = $derived([
23
24
  {
24
25
  icon: mdiImageMultiple,
25
- title: "Backup contents",
26
- value:
27
- "Photos, videos, metadata, database, configuration, and external libraries.",
26
+ title: $t`Backup contents`,
27
+ value: $t`Photos, videos, metadata, database, configuration, and external libraries.`,
28
28
  },
29
29
  {
30
30
  icon: mdiClock,
31
- title: "Schedule",
31
+ title: $t`Schedule`,
32
32
  value: schedule,
33
33
  },
34
34
  {
35
35
  icon: mdiDownloadBox,
36
- title: "Storage location",
36
+ title: $t`Storage location`,
37
37
  value: storageLocation,
38
38
  },
39
39
  ]);
40
40
 
41
41
  const actions = $derived<OnboardingStepAction[]>([
42
- { label: "Start backup", onClick: onStartBackup, loading },
42
+ { label: $t`Start backup`, onClick: onStartBackup, loading },
43
43
  ]);
44
44
  </script>
45
45
 
46
46
  <OnboardingStepLayout
47
- title="Start your first backup"
48
- description="Immich has prepared recommended settings for your first backup. You can update these anytime from the Backups dashboard."
47
+ title={$t`Start your first backup`}
48
+ description={$t`Immich has prepared recommended settings for your first backup. You can update these anytime from the Backups dashboard.`}
49
49
  {actions}
50
50
  >
51
51
  <Stack gap={4}>
@@ -6,33 +6,30 @@
6
6
  mdiLayersTripleOutline,
7
7
  mdiShieldKey,
8
8
  } from "@mdi/js";
9
+ import { t } from "svelte-i18n-lingui";
9
10
 
10
- const features = [
11
+ const features = $derived([
11
12
  {
12
13
  icon: mdiLayersTripleOutline,
13
- title: "Built for Immich",
14
- description:
15
- "Backup your photos, videos, albums, metadata, database, configuration, and external libraries together.",
14
+ title: $t`Built for Immich`,
15
+ description: $t`Backup your photos, videos, albums, metadata, database, configuration, and external libraries together.`,
16
16
  },
17
17
  {
18
18
  icon: mdiShieldKey,
19
- title: "Encrypted by design",
20
- description:
21
- "Your backups are protected with E2EE encryption, so only your recovery key can restore them.",
19
+ title: $t`Encrypted by design`,
20
+ description: $t`Your backups are protected with E2EE encryption, so only your recovery key can restore them.`,
22
21
  },
23
22
  {
24
23
  icon: mdiImageRefreshOutline,
25
- title: "Snapshot restore",
26
- description:
27
- "Restore your photos, videos, metadata, database, and configuration from a backup snapshot.",
24
+ title: $t`Snapshot restore`,
25
+ description: $t`Restore your photos, videos, metadata, database, and configuration from a backup snapshot.`,
28
26
  },
29
27
  {
30
28
  icon: mdiHistory,
31
- title: "Automatic backups",
32
- description:
33
- "Your library is backed up in the background without managing a separate backup tool.",
29
+ title: $t`Automatic backups`,
30
+ description: $t`Your library is backed up in the background without managing a separate backup tool.`,
34
31
  },
35
- ];
32
+ ]);
36
33
  </script>
37
34
 
38
35
  <div class="grid gap-x-12 gap-y-8 sm:grid-cols-2">
@@ -1,18 +1,3 @@
1
- interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
2
- new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
3
- $$bindings?: Bindings;
4
- } & Exports;
5
- (internal: unknown, props: {
6
- $$events?: Events;
7
- $$slots?: Slots;
8
- }): Exports & {
9
- $set?: any;
10
- $on?: any;
11
- };
12
- z_$$bindings?: Bindings;
13
- }
14
- declare const UpsellBackupFeaturesGrid: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
15
- [evt: string]: CustomEvent<any>;
16
- }, {}, {}, string>;
17
- type UpsellBackupFeaturesGrid = InstanceType<typeof UpsellBackupFeaturesGrid>;
1
+ declare const UpsellBackupFeaturesGrid: import("svelte").Component<Record<string, never>, {}, "">;
2
+ type UpsellBackupFeaturesGrid = ReturnType<typeof UpsellBackupFeaturesGrid>;
18
3
  export default UpsellBackupFeaturesGrid;
@@ -1,6 +1,7 @@
1
1
  <script lang="ts">
2
2
  import { Button, Heading, Icon, Stack, Text } from "@immich/ui";
3
3
  import { mdiCloudUpload } from "@mdi/js";
4
+ import { t } from "svelte-i18n-lingui";
4
5
 
5
6
  type Props = {
6
7
  price: string;
@@ -14,20 +15,24 @@
14
15
  <Stack gap={6}>
15
16
  <Icon icon={mdiCloudUpload} size="5rem" class="text-primary" />
16
17
 
17
- <Heading size="large" fontWeight="normal">FUTO Backups</Heading>
18
+ <Heading size="large" fontWeight="normal">{$t`FUTO Backups`}</Heading>
18
19
 
19
20
  <Text>
20
- Keep your Immich library safe with our secure, hosted backups solution.
21
+ {$t`Keep your Immich library safe with our secure, hosted backups solution.`}
21
22
  </Text>
22
23
 
23
24
  <Stack gap={0}>
24
- <Text size="small" color="muted">Starting at {price}/month</Text>
25
+ <Text size="small" color="muted">{$t({ message: "Starting at {price}/month", values: { price } })}</Text>
25
26
  <Text size="small" color="muted">
26
- Includes {includedStorage} of backup storage. Additional storage billed by usage.
27
+ {$t({
28
+ message:
29
+ "Includes {includedStorage} of backup storage. Additional storage billed by usage.",
30
+ values: { includedStorage },
31
+ })}
27
32
  </Text>
28
33
  </Stack>
29
34
 
30
35
  <Button size="giant" shape="round" class="self-start" onclick={onGetStarted}>
31
- Get Started
36
+ {$t`Get Started`}
32
37
  </Button>
33
38
  </Stack>
@@ -2,6 +2,7 @@
2
2
  import Accordion from "../../ui/Accordion.svelte";
3
3
  import { Stack, Text } from "@immich/ui";
4
4
  import type { Snippet } from "svelte";
5
+ import { t } from "svelte-i18n-lingui";
5
6
 
6
7
  type Question = {
7
8
  title: string;
@@ -16,7 +17,7 @@
16
17
  </script>
17
18
 
18
19
  <Stack>
19
- <Text fontWeight="semi-bold">Frequently Asked Questions</Text>
20
+ <Text fontWeight="semi-bold">{$t`Frequently Asked Questions`}</Text>
20
21
 
21
22
  <Stack gap={0}>
22
23
  {#each questions as { title, answer } (title)}
@@ -1,7 +1,8 @@
1
1
  <script lang="ts">
2
2
  import { Badge } from "@immich/ui";
3
+ import { t } from "svelte-i18n-lingui";
3
4
  </script>
4
5
 
5
6
  <Badge color="primary" shape="round" size="tiny" class="self-start">
6
- FUTO Backups
7
+ {$t`FUTO Backups`}
7
8
  </Badge>