@futo-org/backups-orchestrator-ui 0.46.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 (116) 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/ImmichBackupsAdminNavButton.svelte +2 -1
  34. package/dist/components/integrations/immich/ImmichBackupsSidebarItem.svelte +15 -14
  35. package/dist/components/integrations/immich/ImmichDatabaseDumpAlert.svelte +6 -5
  36. package/dist/components/integrations/immich/ImmichManageBackupOverview.svelte +15 -14
  37. package/dist/components/integrations/immich/ImmichManageBackupPage.svelte +3 -2
  38. package/dist/components/integrations/immich/ImmichOnboardingSetupFlow.svelte +2 -1
  39. package/dist/components/integrations/immich/settings/ImmichSettingsBackupContents.svelte +32 -31
  40. package/dist/components/integrations/immich/settings/ImmichSettingsBandwidth.svelte +34 -44
  41. package/dist/components/integrations/immich/settings/ImmichSettingsSchedule.svelte +16 -15
  42. package/dist/components/integrations/immich/settings/ImmichSettingsStorage.svelte +19 -18
  43. package/dist/components/onboarding/OnboardingBootstrapError.svelte +5 -4
  44. package/dist/components/onboarding/OnboardingLogin.svelte +4 -4
  45. package/dist/components/onboarding/RecoveryKeyDisplay.svelte +5 -4
  46. package/dist/components/onboarding/SampleOnboarding.svelte +4 -3
  47. package/dist/components/onboarding/dialogs/BackupsRecoveryKeyModal.svelte +4 -3
  48. package/dist/components/onboarding/restore-point-flow/RestorePointFlow.svelte +2 -1
  49. package/dist/components/onboarding/restore-point-flow/RestorePointFlow2SelectSnapshot.svelte +8 -4
  50. package/dist/components/onboarding/restore-point-flow/RestorePointFlow3ConfirmRestore.svelte +9 -8
  51. package/dist/components/onboarding/restore-point-flow/RestorePointFlow4Restore.svelte +2 -1
  52. package/dist/components/onboarding/stages/OnboardingStageBackupServices.svelte +9 -6
  53. package/dist/components/onboarding/stages/OnboardingStageKeyImport.svelte +6 -5
  54. package/dist/components/onboarding/stages/OnboardingStageTelemetry.svelte +6 -7
  55. package/dist/components/onboarding/steps/OnboardingStep1FinishSetup.svelte +12 -11
  56. package/dist/components/onboarding/steps/OnboardingStep2ConnectAccount.svelte +13 -12
  57. package/dist/components/onboarding/steps/OnboardingStep3SaveRecoveryKey.svelte +5 -4
  58. package/dist/components/onboarding/steps/OnboardingStep4FirstBackup.svelte +8 -8
  59. package/dist/components/onboarding/upsell/UpsellBackupFeaturesGrid.svelte +11 -14
  60. package/dist/components/onboarding/upsell/UpsellBackupFeaturesGrid.svelte.d.ts +2 -17
  61. package/dist/components/onboarding/upsell/UpsellExplainFutoBackups.svelte +10 -5
  62. package/dist/components/onboarding/upsell/UpsellFrequentlyAskedQuestions.svelte +2 -1
  63. package/dist/components/onboarding/upsell/UpsellFutoBackupsBadge.svelte +2 -1
  64. package/dist/components/onboarding/upsell/UpsellHowItWorks.svelte +10 -10
  65. package/dist/components/onboarding/upsell/UpsellProtectYourImmichLibrary.svelte +14 -11
  66. package/dist/components/schedules/RepositoryPicker.svelte +8 -7
  67. package/dist/components/schedules/ScheduleItem.svelte +6 -5
  68. package/dist/components/schedules/ScheduleList.svelte +4 -3
  69. package/dist/components/schedules/dialogs/ConfigureScheduleModal.svelte +4 -3
  70. package/dist/components/schedules/dialogs/CreateScheduleModal.svelte +7 -3
  71. package/dist/components/settings/SettingsBackends.svelte +3 -2
  72. package/dist/components/settings/SettingsBilling.svelte +13 -12
  73. package/dist/components/settings/SettingsNotifications.svelte +11 -10
  74. package/dist/components/ui/PageLayout.svelte +3 -2
  75. package/dist/components/ui/Pagination.svelte +4 -3
  76. package/dist/components/ui/PathListField.svelte +5 -4
  77. package/dist/components/ui/PathPickerField.svelte +4 -3
  78. package/dist/components/ui/PathPickerModal.svelte +16 -13
  79. package/dist/components/ui/StackListItem.svelte +2 -1
  80. package/dist/components/util/DeviceFlowAction.svelte +3 -2
  81. package/dist/components/util/DeviceFlowCode.svelte +4 -3
  82. package/dist/components/util/RelativeTime.svelte +2 -1
  83. package/dist/i18n.d.ts +3 -0
  84. package/dist/i18n.js +13 -0
  85. package/dist/index.d.ts +1 -0
  86. package/dist/index.js +1 -0
  87. package/dist/locales/en-XA.d.ts +2 -0
  88. package/dist/locales/en-XA.js +1 -0
  89. package/dist/locales/en-XA.po +2198 -0
  90. package/dist/locales/en.d.ts +2 -0
  91. package/dist/locales/en.js +1 -0
  92. package/dist/locales/en.po +2446 -0
  93. package/dist/services/backend.service.d.ts +2 -1
  94. package/dist/services/backend.service.js +6 -5
  95. package/dist/services/config.service.d.ts +12 -1
  96. package/dist/services/config.service.js +22 -1
  97. package/dist/services/deviceFlow.service.svelte.js +6 -5
  98. package/dist/services/filesystem.service.js +2 -1
  99. package/dist/services/immich.integration.service.d.ts +2 -1
  100. package/dist/services/immich.integration.service.js +7 -6
  101. package/dist/services/integrations.service.js +4 -3
  102. package/dist/services/log.service.svelte.js +9 -3
  103. package/dist/services/onboarding.service.js +8 -7
  104. package/dist/services/repository.service.d.ts +2 -1
  105. package/dist/services/repository.service.js +19 -18
  106. package/dist/services/runHistory.service.d.ts +2 -1
  107. package/dist/services/runHistory.service.js +5 -4
  108. package/dist/services/schedule.service.d.ts +2 -1
  109. package/dist/services/schedule.service.js +18 -17
  110. package/dist/services/session.service.js +2 -1
  111. package/dist/services/snapshot.service.d.ts +2 -1
  112. package/dist/services/snapshot.service.js +15 -14
  113. package/dist/services/task.service.js +3 -2
  114. package/dist/utils/format.js +10 -8
  115. package/dist/utils/handle-error.js +2 -1
  116. package/package.json +12 -5
@@ -2,6 +2,7 @@
2
2
  import { Button, Heading, HStack, Icon, Stack, Text } from "@immich/ui";
3
3
  import { mdiCheckCircle } from "@mdi/js";
4
4
  import UpsellFutoBackupsBadge from "./UpsellFutoBackupsBadge.svelte";
5
+ import { t } from "svelte-i18n-lingui";
5
6
 
6
7
  type Props = {
7
8
  price: string;
@@ -11,11 +12,11 @@
11
12
 
12
13
  const { price, onGetStarted, onLearnMore }: Props = $props();
13
14
 
14
- const benefits = [
15
- "Cloud copy while your originals stay local",
16
- "Encrypted backups protect your data",
17
- "Restore if your local storage fails",
18
- ];
15
+ const benefits = $derived([
16
+ $t`Cloud copy while your originals stay local`,
17
+ $t`Encrypted backups protect your data`,
18
+ $t`Restore if your local storage fails`,
19
+ ]);
19
20
  </script>
20
21
 
21
22
  <Stack gap={6}>
@@ -23,12 +24,11 @@
23
24
 
24
25
  <Stack gap={4}>
25
26
  <Heading size="medium" color="primary" fontWeight="bold"
26
- >Protect your Immich library</Heading
27
+ >{$t`Protect your Immich library`}</Heading
27
28
  >
28
29
 
29
30
  <Text>
30
- FUTO Backups adds hosted cloud backup storage to your existing Immich
31
- setup, so you have another copy if something happens locally.
31
+ {$t`FUTO Backups adds hosted cloud backup storage to your existing Immich setup, so you have another copy if something happens locally.`}
32
32
  </Text>
33
33
  </Stack>
34
34
 
@@ -46,13 +46,16 @@
46
46
  </Stack>
47
47
 
48
48
  <Text fontWeight="semi-bold">
49
- Starting at {price}/month. Additional storage billed by usage.
49
+ {$t({
50
+ message: "Starting at {price}/month. Additional storage billed by usage.",
51
+ values: { price },
52
+ })}
50
53
  </Text>
51
54
 
52
55
  <HStack gap={6} class="items-center">
53
- <Button shape="round" onclick={onGetStarted}>Get Started</Button>
56
+ <Button shape="round" onclick={onGetStarted}>{$t`Get Started`}</Button>
54
57
  <Button variant="ghost" shape="round" onclick={onLearnMore}>
55
- Learn More
58
+ {$t`Learn More`}
56
59
  </Button>
57
60
  </HStack>
58
61
  </Stack>
@@ -4,6 +4,7 @@
4
4
  import { mdiArrowDown, mdiArrowUp, mdiClose, mdiPlus } from "@mdi/js";
5
5
  import StackList from "../ui/StackList.svelte";
6
6
  import StackListItem from "../ui/StackListItem.svelte";
7
+ import { t } from "svelte-i18n-lingui";
7
8
 
8
9
  type Props = {
9
10
  repositories: string[];
@@ -44,7 +45,7 @@
44
45
 
45
46
  <Stack gap={4}>
46
47
  <StackList>
47
- {#snippet title()}Repositories{/snippet}
48
+ {#snippet title()}{$t`Repositories`}{/snippet}
48
49
 
49
50
  {#each repositories as id, index (id)}
50
51
  <StackListItem>
@@ -55,7 +56,7 @@
55
56
  icon={mdiArrowUp}
56
57
  size="tiny"
57
58
  variant="ghost"
58
- aria-label="Move up"
59
+ aria-label={$t`Move up`}
59
60
  disabled={index === 0}
60
61
  onclick={() => move(index, -1)}
61
62
  />
@@ -63,7 +64,7 @@
63
64
  icon={mdiArrowDown}
64
65
  size="tiny"
65
66
  variant="ghost"
66
- aria-label="Move down"
67
+ aria-label={$t`Move down`}
67
68
  disabled={index === repositories.length - 1}
68
69
  onclick={() => move(index, 1)}
69
70
  />
@@ -72,7 +73,7 @@
72
73
  size="tiny"
73
74
  color="danger"
74
75
  variant="ghost"
75
- aria-label="Remove"
76
+ aria-label={$t`Remove`}
76
77
  onclick={() => remove(id)}
77
78
  />
78
79
  {/snippet}
@@ -82,7 +83,7 @@
82
83
  {#if repositories.length === 0}
83
84
  <StackListItem>
84
85
  <Text color="secondary" size="small">
85
- No repositories in this schedule yet.
86
+ {$t`No repositories in this schedule yet.`}
86
87
  </Text>
87
88
  </StackListItem>
88
89
  {/if}
@@ -90,7 +91,7 @@
90
91
 
91
92
  {#if available.length > 0}
92
93
  <StackList>
93
- {#snippet title()}Available{/snippet}
94
+ {#snippet title()}{$t`Available`}{/snippet}
94
95
 
95
96
  {#each available as repo (repo.id)}
96
97
  <StackListItem>
@@ -101,7 +102,7 @@
101
102
  icon={mdiPlus}
102
103
  size="tiny"
103
104
  variant="ghost"
104
- aria-label="Add"
105
+ aria-label={$t`Add`}
105
106
  onclick={() => add(repo.id)}
106
107
  />
107
108
  {/snippet}
@@ -5,6 +5,7 @@
5
5
  import { getScheduleActions } from "../../services/schedule.service";
6
6
  import { Badge, Icon } from "@immich/ui";
7
7
  import { mdiClockOutline } from "@mdi/js";
8
+ import { t } from "svelte-i18n-lingui";
8
9
 
9
10
  type Props = {
10
11
  schedule: ScheduleDto;
@@ -14,7 +15,7 @@
14
15
  const { schedule, repositoryNames }: Props = $props();
15
16
 
16
17
  const { Resume, Pause, Configure, Delete } = $derived(
17
- getScheduleActions(schedule),
18
+ getScheduleActions(schedule, $t),
18
19
  );
19
20
  </script>
20
21
 
@@ -32,22 +33,22 @@
32
33
  .map((repositoryId) => repositoryNames[repositoryId] ?? repositoryId)
33
34
  .join(", ")}
34
35
  {:else}
35
- No backups in this schedule.
36
+ {$t`No backups in this schedule.`}
36
37
  {/if}
37
38
 
38
39
  {#snippet trailing()}
39
40
  <Badge size="tiny" color="info">{schedule.cron}</Badge>
40
41
 
41
42
  {#if schedule.paused}
42
- <Badge size="tiny" color="warning">Paused</Badge>
43
+ <Badge size="tiny" color="warning">{$t`Paused`}</Badge>
43
44
  {/if}
44
45
 
45
46
  {#if schedule.lastRun}
46
47
  <Badge size="tiny" color="success">
47
- Ran <RelativeTime time={schedule.lastRun} />
48
+ {$t`Ran`} <RelativeTime time={schedule.lastRun} />
48
49
  </Badge>
49
50
  {:else}
50
- <Badge size="tiny" color="secondary">Never run</Badge>
51
+ <Badge size="tiny" color="secondary">{$t`Never run`}</Badge>
51
52
  {/if}
52
53
  {/snippet}
53
54
  </StackListItem>
@@ -11,6 +11,7 @@
11
11
  import Suspense from "../util/Suspense.svelte";
12
12
  import CreateScheduleModal from "./dialogs/CreateScheduleModal.svelte";
13
13
  import ScheduleItem from "./ScheduleItem.svelte";
14
+ import { t } from "svelte-i18n-lingui";
14
15
 
15
16
  const schedulesQuery = useSchedules();
16
17
  const repositoriesQuery = useRepositories();
@@ -34,7 +35,7 @@
34
35
 
35
36
  <Stack gap={2}>
36
37
  <StackList>
37
- {#snippet title()}Schedules{/snippet}
38
+ {#snippet title()}{$t`Schedules`}{/snippet}
38
39
 
39
40
  <Suspense query={schedulesQuery}>
40
41
  {#snippet children(schedules)}
@@ -43,7 +44,7 @@
43
44
  {/each}
44
45
 
45
46
  {#if schedules.length === 0}
46
- <StackListPlaceholder>No schedules yet.</StackListPlaceholder>
47
+ <StackListPlaceholder>{$t`No schedules yet.`}</StackListPlaceholder>
47
48
  {/if}
48
49
  {/snippet}
49
50
  </Suspense>
@@ -51,7 +52,7 @@
51
52
 
52
53
  <HStack>
53
54
  <Button shape="round" size="tiny" variant="outline" onclick={onCreate}
54
- >Create new schedule</Button
55
+ >{$t`Create new schedule`}</Button
55
56
  >
56
57
  </HStack>
57
58
  </Stack>
@@ -4,6 +4,7 @@
4
4
  import { Field, FormModal, Input, Stack } from "@immich/ui";
5
5
  import validate from "cron-validate";
6
6
  import RepositoryPicker from "../RepositoryPicker.svelte";
7
+ import { t } from "svelte-i18n-lingui";
7
8
 
8
9
  type Props = {
9
10
  onClose: () => void;
@@ -29,7 +30,7 @@
29
30
  </script>
30
31
 
31
32
  <FormModal
32
- title={`Edit ${schedule.name}`}
33
+ title={$t({ message: "Edit {name}", values: { name: schedule.name } })}
33
34
  size="large"
34
35
  disabled={name.length === 0 ||
35
36
  validate(cron).isError() ||
@@ -39,10 +40,10 @@
39
40
  {onClose}
40
41
  >
41
42
  <Stack gap={4}>
42
- <Field label="Name">
43
+ <Field label={$t`Name`}>
43
44
  <Input bind:value={name} />
44
45
  </Field>
45
- <Field label="Schedule" description="Uses cron syntax">
46
+ <Field label={$t`Schedule`} description={$t`Uses cron syntax`}>
46
47
  <Input bind:value={cron} />
47
48
  </Field>
48
49
 
@@ -3,6 +3,7 @@
3
3
  import { Field, FormModal, Input, Stack } from "@immich/ui";
4
4
  import validate from "cron-validate";
5
5
  import RepositoryPicker from "../RepositoryPicker.svelte";
6
+ import { t } from "svelte-i18n-lingui";
6
7
 
7
8
  type Props = {
8
9
  onClose: () => void;
@@ -24,7 +25,7 @@
24
25
  </script>
25
26
 
26
27
  <FormModal
27
- title="Create A New Schedule"
28
+ title={$t`Create A New Schedule`}
28
29
  size="large"
29
30
  disabled={name.length === 0 ||
30
31
  validate(cron).isError() ||
@@ -34,10 +35,13 @@
34
35
  {onClose}
35
36
  >
36
37
  <Stack gap={4}>
37
- <Field label="Name" description="Give this schedule a name">
38
+ <Field
39
+ label={$t`Name`}
40
+ description={$t`Give this schedule a name`}
41
+ >
38
42
  <Input bind:value={name} />
39
43
  </Field>
40
- <Field label="Schedule" description="Uses cron syntax">
44
+ <Field label={$t`Schedule`} description={$t`Uses cron syntax`}>
41
45
  <Input bind:value={cron} />
42
46
  </Field>
43
47
 
@@ -3,11 +3,12 @@
3
3
  import Accordion from "../ui/Accordion.svelte";
4
4
  import { Stack } from "@immich/ui";
5
5
  import { mdiCloudOutline } from "@mdi/js";
6
+ import { t } from "svelte-i18n-lingui";
6
7
  </script>
7
8
 
8
9
  <Accordion
9
- title="Storage backends"
10
- subtitle="Manage the storage services your backups can be sent to."
10
+ title={$t`Storage backends`}
11
+ subtitle={$t`Manage the storage services your backups can be sent to.`}
11
12
  icon={mdiCloudOutline}
12
13
  >
13
14
  <Stack gap={4} class="pt-2">
@@ -11,6 +11,7 @@
11
11
  Text,
12
12
  } from "@immich/ui";
13
13
  import { mdiCreditCardOutline } from "@mdi/js";
14
+ import { t } from "svelte-i18n-lingui";
14
15
 
15
16
  type Props = {
16
17
  onManageBilling: () => void;
@@ -20,31 +21,31 @@
20
21
  </script>
21
22
 
22
23
  <Accordion
23
- title="Billing"
24
- subtitle="Manage your FUTO Backups subscription and billing."
24
+ title={$t`Billing`}
25
+ subtitle={$t`Manage your FUTO Backups subscription and billing.`}
25
26
  icon={mdiCreditCardOutline}
26
27
  >
27
28
  <Stack gap={4} class="pt-2">
28
29
  <Accordion
29
- title="FUTO Backups"
30
- subtitle="Hosted cloud backup storage for your Immich library."
30
+ title={$t`FUTO Backups`}
31
+ subtitle={$t`Hosted cloud backup storage for your Immich library.`}
31
32
  isOpen
32
33
  >
33
34
  <Stack gap={4} class="pt-2">
34
35
  <HStack gap={4} class="items-start justify-between">
35
36
  <Stack gap={0}>
36
- <Label label="Status" color="primary" />
37
+ <Label label={$t`Status`} color="primary" />
37
38
  <Text size="small" color="muted">
38
- Connection state for your backup storage.
39
+ {$t`Connection state for your backup storage.`}
39
40
  </Text>
40
41
  </Stack>
41
42
 
42
- <Badge color="primary">Active</Badge>
43
+ <Badge color="primary">{$t`Active`}</Badge>
43
44
  </HStack>
44
45
 
45
46
  <Field
46
- label="Storage Used"
47
- description="How much storage your backups are using."
47
+ label={$t`Storage Used`}
48
+ description={$t`How much storage your backups are using.`}
48
49
  color="primary"
49
50
  readOnly
50
51
  >
@@ -52,8 +53,8 @@
52
53
  </Field>
53
54
 
54
55
  <Field
55
- label="Next Billing Date"
56
- description="When your next FUTO Backups charge will occur."
56
+ label={$t`Next Billing Date`}
57
+ description={$t`When your next FUTO Backups charge will occur.`}
57
58
  color="primary"
58
59
  readOnly
59
60
  >
@@ -63,7 +64,7 @@
63
64
  </Accordion>
64
65
 
65
66
  <HStack class="justify-end">
66
- <Button shape="round" onclick={onManageBilling}>Manage billing</Button>
67
+ <Button shape="round" onclick={onManageBilling}>{$t`Manage billing`}</Button>
67
68
  </HStack>
68
69
  </Stack>
69
70
  </Accordion>
@@ -2,21 +2,22 @@
2
2
  import Accordion from "../ui/Accordion.svelte";
3
3
  import { Button, Field, HStack, Stack, Switch } from "@immich/ui";
4
4
  import { mdiBellOutline } from "@mdi/js";
5
+ import { msg, t } from "svelte-i18n-lingui";
5
6
 
6
7
  const alerts = $state([
7
8
  {
8
- label: "Backup failures",
9
- description: "Notify me when a backup fails.",
9
+ label: msg`Backup failures`,
10
+ description: msg`Notify me when a backup fails.`,
10
11
  checked: true,
11
12
  },
12
13
  {
13
- label: "Storage issues",
14
- description: "Notify me when backup storage is unavailable or running low.",
14
+ label: msg`Storage issues`,
15
+ description: msg`Notify me when backup storage is unavailable or running low.`,
15
16
  checked: true,
16
17
  },
17
18
  {
18
- label: "Billing issues",
19
- description: "Notify me when FUTO Backups billing needs attention.",
19
+ label: msg`Billing issues`,
20
+ description: msg`Notify me when FUTO Backups billing needs attention.`,
20
21
  checked: true,
21
22
  },
22
23
  ]);
@@ -29,19 +30,19 @@
29
30
  </script>
30
31
 
31
32
  <Accordion
32
- title="Notifications"
33
- subtitle="Manage backup alerts."
33
+ title={$t`Notifications`}
34
+ subtitle={$t`Manage backup alerts.`}
34
35
  icon={mdiBellOutline}
35
36
  >
36
37
  <Stack gap={4} class="pt-2">
37
38
  {#each alerts as alert (alert.label)}
38
- <Field label={alert.label} description={alert.description}>
39
+ <Field label={$t(alert.label)} description={$t(alert.description)}>
39
40
  <Switch bind:checked={alert.checked} />
40
41
  </Field>
41
42
  {/each}
42
43
 
43
44
  <HStack class="justify-end">
44
- <Button shape="round" onclick={onSave}>Save</Button>
45
+ <Button shape="round" onclick={onSave}>{$t`Save`}</Button>
45
46
  </HStack>
46
47
  </Stack>
47
48
  </Accordion>
@@ -9,6 +9,7 @@
9
9
  } from "@immich/ui";
10
10
  import { mdiArrowLeft } from "@mdi/js";
11
11
  import type { Snippet } from "svelte";
12
+ import { t } from "svelte-i18n-lingui";
12
13
 
13
14
  type Props = {
14
15
  title?: string;
@@ -32,7 +33,7 @@
32
33
  {#if onBack}
33
34
  <IconButton
34
35
  icon={mdiArrowLeft}
35
- aria-label="Back"
36
+ aria-label={$t`Back`}
36
37
  variant="ghost"
37
38
  color="secondary"
38
39
  shape="round"
@@ -65,7 +66,7 @@
65
66
  </div>
66
67
 
67
68
  <ContextMenuButton
68
- aria-label="Open"
69
+ aria-label={$t`Open`}
69
70
  items={actions}
70
71
  class="md:hidden"
71
72
  />
@@ -1,6 +1,7 @@
1
1
  <script lang="ts">
2
2
  import { Button, HStack, IconButton, Text } from "@immich/ui";
3
3
  import { mdiChevronLeft, mdiChevronRight } from "@mdi/js";
4
+ import { t } from "svelte-i18n-lingui";
4
5
 
5
6
  type Props = {
6
7
  page: number;
@@ -42,7 +43,7 @@
42
43
  <HStack class="items-center justify-between">
43
44
  <IconButton
44
45
  icon={mdiChevronLeft}
45
- aria-label="Previous page"
46
+ aria-label={$t`Previous page`}
46
47
  variant="ghost"
47
48
  color="secondary"
48
49
  disabled={page <= 1}
@@ -59,7 +60,7 @@
59
60
  variant="ghost"
60
61
  color="secondary"
61
62
  class={item === page ? "bg-subtle" : undefined}
62
- aria-label={`Page ${item}`}
63
+ aria-label={$t({ message: "Page {item}", values: { item } })}
63
64
  aria-current={item === page ? "page" : undefined}
64
65
  onclick={() => onChange(item)}
65
66
  >
@@ -71,7 +72,7 @@
71
72
 
72
73
  <IconButton
73
74
  icon={mdiChevronRight}
74
- aria-label="Next page"
75
+ aria-label={$t`Next page`}
75
76
  variant="ghost"
76
77
  color="secondary"
77
78
  disabled={page >= pageCount}
@@ -12,6 +12,7 @@
12
12
  import { mdiClose } from "@mdi/js";
13
13
  import type { Snippet } from "svelte";
14
14
  import type { SvelteSet } from "svelte/reactivity";
15
+ import { t } from "svelte-i18n-lingui";
15
16
  import PathPickerModal from "./PathPickerModal.svelte";
16
17
  import StackList from "./StackList.svelte";
17
18
  import StackListItem from "./StackListItem.svelte";
@@ -32,9 +33,9 @@
32
33
  paths,
33
34
  label,
34
35
  empty,
35
- addLabel = "Manage paths",
36
- manageLabel = "Manage paths",
37
- pickerTitle = "Choose paths",
36
+ addLabel = $t`Manage paths`,
37
+ manageLabel = $t`Manage paths`,
38
+ pickerTitle = $t`Choose paths`,
38
39
  pickerDescription,
39
40
  foldersOnly = false,
40
41
  handleGetListing,
@@ -66,7 +67,7 @@
66
67
  {#snippet trailing()}
67
68
  <IconButton
68
69
  icon={mdiClose}
69
- aria-label="Remove"
70
+ aria-label={$t`Remove`}
70
71
  size="tiny"
71
72
  variant="ghost"
72
73
  onclick={() => paths.delete(path)}
@@ -12,6 +12,7 @@
12
12
  } from "@immich/ui";
13
13
  import { mdiFolder } from "@mdi/js";
14
14
  import type { Snippet } from "svelte";
15
+ import { t } from "svelte-i18n-lingui";
15
16
 
16
17
  type Props = {
17
18
  value: string;
@@ -28,8 +29,8 @@
28
29
  value = $bindable(""),
29
30
  title,
30
31
  description,
31
- placeholder = "/path/to/folder",
32
- pickerTitle = "Choose folder",
32
+ placeholder = $t`/path/to/folder`,
33
+ pickerTitle = $t`Choose folder`,
33
34
  pickerDescription,
34
35
  foldersOnly = true,
35
36
  handleGetListing,
@@ -65,7 +66,7 @@
65
66
  <Input bind:value {placeholder} />
66
67
  <IconButton
67
68
  icon={mdiFolder}
68
- aria-label="Choose folder"
69
+ aria-label={$t`Choose folder`}
69
70
  variant="outline"
70
71
  color="secondary"
71
72
  onclick={browse}
@@ -24,6 +24,7 @@
24
24
  } from "@mdi/js";
25
25
  import { onMount } from "svelte";
26
26
  import { SvelteSet } from "svelte/reactivity";
27
+ import { t } from "svelte-i18n-lingui";
27
28
 
28
29
  type Props = {
29
30
  title: string;
@@ -100,7 +101,7 @@
100
101
  <FormModal
101
102
  {title}
102
103
  size="large"
103
- submitText="Save"
104
+ submitText={$t`Save`}
104
105
  disabled={submitting}
105
106
  onSubmit={handleSubmit}
106
107
  {onClose}
@@ -114,14 +115,14 @@
114
115
  {#if selected.size > 0}
115
116
  <StackList>
116
117
  {#snippet title()}
117
- Selected paths
118
+ {$t`Selected paths`}
118
119
  {/snippet}
119
120
  {#each [...selected] as path (path)}
120
121
  <HStack gap={2} class="items-center px-4 py-3">
121
122
  <Text class="grow truncate" title={path}>{path}</Text>
122
123
  <IconButton
123
124
  icon={mdiClose}
124
- aria-label="Remove"
125
+ aria-label={$t`Remove`}
125
126
  size="tiny"
126
127
  variant="ghost"
127
128
  onclick={() => selected.delete(path)}
@@ -131,15 +132,17 @@
131
132
  </StackList>
132
133
  {:else}
133
134
  <Stack gap={2}>
134
- <Heading class="px-1" size="tiny">Selected paths</Heading>
135
- <Text color="muted" class="text-center py-6">No paths selected</Text>
135
+ <Heading class="px-1" size="tiny">{$t`Selected paths`}</Heading>
136
+ <Text color="muted" class="text-center py-6"
137
+ >{$t`No paths selected`}</Text
138
+ >
136
139
  </Stack>
137
140
  {/if}
138
141
  {/if}
139
142
 
140
143
  {#if !listing}
141
144
  <Stack gap={2}>
142
- <Heading class="px-1" size="tiny">Browse</Heading>
145
+ <Heading class="px-1" size="tiny">{$t`Browse`}</Heading>
143
146
  <div class="py-6 flex justify-center">
144
147
  <LoadingSpinner />
145
148
  </div>
@@ -147,7 +150,7 @@
147
150
  {:else}
148
151
  <StackList>
149
152
  {#snippet title()}
150
- Browse
153
+ {$t`Browse`}
151
154
  {/snippet}
152
155
 
153
156
  <HStack
@@ -163,7 +166,7 @@
163
166
  {#if listing.parent && listing.parent !== listing.path}
164
167
  <IconButton
165
168
  icon={mdiArrowUp}
166
- aria-label="Go up"
169
+ aria-label={$t`Go up`}
167
170
  size="tiny"
168
171
  variant="ghost"
169
172
  onclick={() => browse(listing!.parent)}
@@ -203,10 +206,10 @@
203
206
  <IconButton
204
207
  icon={isSelected ? mdiCheck : mdiPlus}
205
208
  aria-label={isSelected
206
- ? "Selected"
209
+ ? $t`Selected`
207
210
  : single
208
- ? "Select"
209
- : "Add"}
211
+ ? $t`Select`
212
+ : $t`Add`}
210
213
  size="tiny"
211
214
  variant="ghost"
212
215
  color={isSelected ? "primary" : undefined}
@@ -221,12 +224,12 @@
221
224
  {#if foldersOnly}
222
225
  <Stack class="items-center px-4 py-6">
223
226
  <Button variant="outline" onclick={() => add(listing!.path)}>
224
- Use this folder
227
+ {$t`Use this folder`}
225
228
  </Button>
226
229
  </Stack>
227
230
  {:else}
228
231
  <Text color="muted" class="text-center py-6">
229
- This folder is empty
232
+ {$t`This folder is empty`}
230
233
  </Text>
231
234
  {/if}
232
235
  {/if}
@@ -9,6 +9,7 @@
9
9
  } from "@immich/ui";
10
10
  import { mdiDotsVertical } from "@mdi/js";
11
11
  import type { Snippet } from "svelte";
12
+ import { t } from "svelte-i18n-lingui";
12
13
 
13
14
  type Color = "primary" | "success" | "warning" | "danger";
14
15
 
@@ -70,7 +71,7 @@
70
71
  {#if hasActions(actions)}
71
72
  <ContextMenuButton
72
73
  icon={mdiDotsVertical}
73
- aria-label="Options"
74
+ aria-label={$t`Options`}
74
75
  items={actions}
75
76
  variant="ghost"
76
77
  color="secondary"
@@ -1,6 +1,7 @@
1
1
  <script lang="ts">
2
2
  import type { DeviceFlow } from "../../services/deviceFlow.service.svelte";
3
3
  import { Button } from "@immich/ui";
4
+ import { t } from "svelte-i18n-lingui";
4
5
 
5
6
  type Props = {
6
7
  flow: DeviceFlow;
@@ -10,12 +11,12 @@
10
11
  </script>
11
12
 
12
13
  {#if flow.state.opened}
13
- <Button shape="round" fullWidth onclick={flow.start}>Try again</Button>
14
+ <Button shape="round" fullWidth onclick={flow.start}>{$t`Try again`}</Button>
14
15
  {:else}
15
16
  <Button
16
17
  shape="round"
17
18
  fullWidth
18
19
  disabled={!flow.state.verificationUri}
19
- onclick={flow.open}>Continue to login</Button
20
+ onclick={flow.open}>{$t`Continue to login`}</Button
20
21
  >
21
22
  {/if}