Skip to content

High performance self-hosted photo and video management solution.

fix(web): add missing @immich/ui translations (#26143)

Michel Heusschenb85f6f3fcea3
diff --git a/i18n/en.json b/i18n/en.json
index 547d26ae1f..d15a92e12d 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -794,6 +794,11 @@
"color": "Color",
"color_theme": "Color theme",
"command": "Command",
+ "command_palette_prompt": "Quickly find pages, actions, or commands",
+ "command_palette_to_close": "to close",
+ "command_palette_to_navigate": "to enter",
+ "command_palette_to_select": "to select",
+ "command_palette_to_show_all": "to show all",
"comment_deleted": "Comment deleted",
"comment_options": "Comment options",
"comments_and_likes": "Comments & likes",
@@ -1168,6 +1173,7 @@
"exif_bottom_sheet_people": "PEOPLE",
"exif_bottom_sheet_person_add_person": "Add name",
"exit_slideshow": "Exit Slideshow",
+ "expand": "Expand",
"expand_all": "Expand all",
"experimental_settings_new_asset_list_subtitle": "Work in progress",
"experimental_settings_new_asset_list_title": "Enable experimental photo grid",
@@ -1642,6 +1648,7 @@
"online": "Online",
"only_favorites": "Only favorites",
"open": "Open",
+ "open_calendar": "Open calendar",
"open_in_map_view": "Open in map view",
"open_in_openstreetmap": "Open in OpenStreetMap",
"open_the_search_filters": "Open the search filters",
@@ -2183,6 +2190,7 @@
"support": "Support",
"support_and_feedback": "Support & Feedback",
"support_third_party_description": "Your Immich installation was packaged by a third-party. Issues you experience may be caused by that package, so please raise issues with them in the first instance using the links below.",
+ "supporter": "Supporter",
"swap_merge_direction": "Swap merge direction",
"sync": "Sync",
"sync_albums": "Sync albums",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 3d228e1b1e..a435f3db6d 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -67,7 +67,7 @@ importers:
version: 24.10.13
'@vitest/coverage-v8':
specifier: ^3.0.0
byte-size:
specifier: ^9.0.0
version: 9.0.1
@@ -115,10 +115,10 @@ importers:
vitest:
specifier: ^3.0.0
vitest-fetch-mock:
specifier: ^0.4.0
yaml:
specifier: ^2.3.1
version: 2.8.2
@@ -670,7 +670,7 @@ importers:
version: 13.15.10
'@vitest/coverage-v8':
specifier: ^3.0.0
eslint:
specifier: ^9.14.0
version: 9.39.2([email protected])
@@ -727,7 +727,7 @@ importers:
vitest:
specifier: ^3.0.0
web:
dependencies:
@@ -741,8 +741,8 @@ importers:
specifier: file:../open-api/typescript-sdk
version: link:../open-api/typescript-sdk
'@immich/ui':
- specifier: ^0.62.0
+ specifier: ^0.62.1
'@mapbox/mapbox-gl-rtl-text':
specifier: 0.2.3
version: 0.2.3([email protected])
@@ -781,7 +781,7 @@ importers:
version: 2.6.0
fabric:
specifier: ^6.5.4
- version: 6.9.1([email protected])
+ version: 6.9.1
geo-coordinates-parser:
specifier: ^1.7.4
version: 1.7.4
@@ -881,7 +881,7 @@ importers:
version: 6.9.1
'@testing-library/svelte':
specifier: ^5.2.8
'@testing-library/user-event':
specifier: ^14.5.2
version: 14.6.1(@testing-library/[email protected])
@@ -905,7 +905,7 @@ importers:
version: 1.5.6
'@vitest/coverage-v8':
specifier: ^3.0.0
dotenv:
specifier: ^17.0.0
version: 17.2.4
@@ -968,7 +968,7 @@ importers:
vitest:
specifier: ^3.0.0
packages:
@@ -3018,8 +3018,8 @@ packages:
peerDependencies:
svelte: ^5.0.0
- '@immich/[email protected]':
- resolution: {integrity: sha512-h3x5s+y/BndRBmWDnCay1jmqX1gbmHWRjkBVAjM/S9joeDnJOzN06mEsLkeuNF0xCzEYaSrIexYEsafPFwiwvQ==}
+ '@immich/[email protected]':
+ resolution: {integrity: sha512-+rZAjw24pAIJ1hmCtYF16BECh+7M09UudTPc28z6U2J3CZzSOs0+Nsz5fTs8SE5wyC45QKdPWJCS//xFMrrRUg==}
peerDependencies:
svelte: ^5.0.0
@@ -14961,7 +14961,7 @@ snapshots:
node-emoji: 2.2.0
svelte: 5.50.0
dependencies:
'@immich/svelte-markdown-preprocess': 0.2.1([email protected])
'@internationalized/date': 3.10.0
@@ -15291,6 +15291,22 @@ snapshots:
dependencies:
mapbox-gl: 1.13.3
+ '@mapbox/[email protected]':
+ dependencies:
+ detect-libc: 2.1.2
+ https-proxy-agent: 5.0.1
+ make-dir: 3.1.0
+ node-fetch: 2.7.0
+ nopt: 5.0.0
+ npmlog: 5.0.1
+ rimraf: 3.0.2
+ semver: 7.7.4
+ tar: 6.2.1
+ transitivePeerDependencies:
+ - encoding
+ - supports-color
+ optional: true
+
dependencies:
detect-libc: 2.1.2
@@ -16611,14 +16627,14 @@ snapshots:
dependencies:
svelte: 5.50.0
dependencies:
'@testing-library/dom': 10.4.1
'@testing-library/svelte-core': 1.0.0([email protected])
svelte: 5.50.0
optionalDependencies:
'@testing-library/[email protected](@testing-library/[email protected])':
dependencies:
@@ -17314,7 +17330,7 @@ snapshots:
'@vercel/[email protected]': {}
dependencies:
'@ampproject/remapping': 2.3.0
'@bcoe/v8-coverage': 1.0.2
@@ -17329,11 +17345,11 @@ snapshots:
std-env: 3.10.0
test-exclude: 7.0.1
tinyrainbow: 2.0.0
transitivePeerDependencies:
- supports-color
dependencies:
'@ampproject/remapping': 2.3.0
'@bcoe/v8-coverage': 1.0.2
@@ -17348,7 +17364,7 @@ snapshots:
std-env: 3.10.0
test-exclude: 7.0.1
tinyrainbow: 2.0.0
transitivePeerDependencies:
- supports-color
@@ -18068,6 +18084,16 @@ snapshots:
+ dependencies:
+ '@mapbox/node-pre-gyp': 1.0.11
+ nan: 2.24.0
+ simple-get: 3.1.1
+ transitivePeerDependencies:
+ - encoding
+ - supports-color
+ optional: true
+
dependencies:
'@mapbox/node-pre-gyp': 1.0.11([email protected])
@@ -19688,10 +19714,10 @@ snapshots:
optionalDependencies:
- canvas: 2.11.2([email protected])
+ canvas: 2.11.2
+ jsdom: 20.0.3([email protected])
transitivePeerDependencies:
- bufferutil
- encoding
@@ -20844,7 +20870,7 @@ snapshots:
dependencies:
argparse: 2.0.1
dependencies:
abab: 2.0.6
acorn: 8.15.0
@@ -20873,7 +20899,7 @@ snapshots:
ws: 8.19.0
xml-name-validator: 4.0.0
optionalDependencies:
- canvas: 2.11.2([email protected])
+ canvas: 2.11.2
transitivePeerDependencies:
- bufferutil
- supports-color
@@ -20910,6 +20936,36 @@ snapshots:
- utf-8-validate
optional: true
+ dependencies:
+ cssstyle: 4.6.0
+ data-urls: 5.0.0
+ decimal.js: 10.6.0
+ html-encoding-sniffer: 4.0.0
+ http-proxy-agent: 7.0.2
+ https-proxy-agent: 7.0.6
+ is-potential-custom-element-name: 1.0.1
+ nwsapi: 2.2.23
+ parse5: 7.3.0
+ rrweb-cssom: 0.8.0
+ saxes: 6.0.0
+ symbol-tree: 3.2.4
+ tough-cookie: 5.1.2
+ w3c-xmlserializer: 5.0.0
+ webidl-conversions: 7.0.0
+ whatwg-encoding: 3.1.1
+ whatwg-mimetype: 4.0.0
+ whatwg-url: 14.2.0
+ ws: 8.19.0
+ xml-name-validator: 5.0.0
+ optionalDependencies:
+ canvas: 2.11.2
+ transitivePeerDependencies:
+ - bufferutil
+ - supports-color
+ - utf-8-validate
+ optional: true
+
@@ -22167,6 +22223,11 @@ snapshots:
emojilib: 2.4.0
skin-tone: 2.0.0
+ dependencies:
+ whatwg-url: 5.0.0
+ optional: true
+
dependencies:
whatwg-url: 5.0.0
@@ -25318,9 +25379,9 @@ snapshots:
optionalDependencies:
dependencies:
dependencies:
@@ -25366,7 +25427,51 @@ snapshots:
- tsx
- yaml
+ dependencies:
+ '@types/chai': 5.2.3
+ '@vitest/expect': 3.2.4
+ '@vitest/pretty-format': 3.2.4
+ '@vitest/runner': 3.2.4
+ '@vitest/snapshot': 3.2.4
+ '@vitest/spy': 3.2.4
+ '@vitest/utils': 3.2.4
+ chai: 5.3.3
+ debug: 4.4.3
+ expect-type: 1.3.0
+ magic-string: 0.30.21
+ pathe: 2.0.3
+ picomatch: 4.0.3
+ std-env: 3.10.0
+ tinybench: 2.9.0
+ tinyexec: 0.3.2
+ tinyglobby: 0.2.15
+ tinypool: 1.1.1
+ tinyrainbow: 2.0.0
+ why-is-node-running: 2.3.0
+ optionalDependencies:
+ '@types/debug': 4.1.12
+ '@types/node': 24.10.13
+ happy-dom: 20.5.0
+ jsdom: 26.1.0([email protected])
+ transitivePeerDependencies:
+ - jiti
+ - less
+ - lightningcss
+ - msw
+ - sass
+ - sass-embedded
+ - stylus
+ - sugarss
+ - supports-color
+ - terser
+ - tsx
+ - yaml
+
dependencies:
'@types/chai': 5.2.3
'@vitest/expect': 3.2.4
@@ -25395,7 +25500,7 @@ snapshots:
'@types/debug': 4.1.12
'@types/node': 25.2.3
happy-dom: 20.5.0
+ jsdom: 26.1.0([email protected])
transitivePeerDependencies:
- jiti
- less
diff --git a/web/package.json b/web/package.json
index 36653ea6a8..e172584c5d 100644
--- a/web/package.json
+++ b/web/package.json
@@ -27,7 +27,7 @@
"@formatjs/icu-messageformat-parser": "^3.0.0",
"@immich/justified-layout-wasm": "^0.4.3",
"@immich/sdk": "file:../open-api/typescript-sdk",
- "@immich/ui": "^0.62.0",
+ "@immich/ui": "^0.62.1",
"@mapbox/mapbox-gl-rtl-text": "0.2.3",
"@mdi/js": "^7.4.47",
"@photo-sphere-viewer/core": "^5.14.0",
diff --git a/web/src/lib/components/shared-components/theme-button.svelte b/web/src/lib/components/shared-components/theme-button.svelte
index 1c04d855da..dbb73d56e6 100644
--- a/web/src/lib/components/shared-components/theme-button.svelte
+++ b/web/src/lib/components/shared-components/theme-button.svelte
@@ -1,10 +1,8 @@
<script lang="ts">
import { shortcut } from '$lib/actions/shortcut';
- import { defaultLang, langs, Theme } from '$lib/constants';
+ import { Theme } from '$lib/constants';
import { themeManager } from '$lib/managers/theme-manager.svelte';
- import { lang } from '$lib/stores/preferences.store';
import { ThemeSwitcher } from '@immich/ui';
- import { get } from 'svelte/store';
const handleToggleTheme = () => {
if (themeManager.theme.system) {
@@ -18,14 +16,9 @@
<svelte:window use:shortcut={{ shortcut: { key: 't', alt: true }, onShortcut: () => handleToggleTheme() }} />
{#if !themeManager.theme.system}
- {#await langs
- .find((item) => item.code === get(lang))
- ?.loader() ?? defaultLang.loader() then { default: translations }}
- <ThemeSwitcher
- size="medium"
- color="secondary"
- {translations}
- onChange={(theme) => themeManager.setTheme(theme == 'dark' ? Theme.DARK : Theme.LIGHT)}
- />
- {/await}
+ <ThemeSwitcher
+ size="medium"
+ color="secondary"
+ onChange={(theme) => themeManager.setTheme(theme == 'dark' ? Theme.DARK : Theme.LIGHT)}
+ />
{/if}
diff --git a/web/src/routes/+layout.svelte b/web/src/routes/+layout.svelte
index f79a202cf5..d1ed7d9832 100644
--- a/web/src/routes/+layout.svelte
+++ b/web/src/routes/+layout.svelte
@@ -40,17 +40,32 @@
$effect(() => {
setTranslations({
+ cancel: $t('cancel'),
close: $t('close'),
+ confirm: $t('confirm'),
+ expand: $t('expand'),
+ collapse: $t('collapse'),
+ search_placeholder: $t('search'),
+ search_no_results: $t('no_results'),
+ prompt_default: $t('are_you_sure_to_do_this'),
show_password: $t('show_password'),
hide_password: $t('hide_password'),
- confirm: $t('confirm'),
- cancel: $t('cancel'),
+ dark_theme: $t('dark_theme'),
+ open_menu: $t('open'),
+ command_palette_prompt_default: $t('command_palette_prompt'),
+ command_palette_to_select: $t('command_palette_to_select'),
+ command_palette_to_navigate: $t('command_palette_to_navigate'),
+ command_palette_to_close: $t('command_palette_to_close'),
+ command_palette_to_show_all: $t('command_palette_to_show_all'),
+ navigate_next: $t('next'),
+ navigate_previous: $t('previous'),
+ open_calendar: $t('open_calendar'),
toast_success_title: $t('success'),
toast_info_title: $t('info'),
toast_warning_title: $t('warning'),
toast_danger_title: $t('error'),
- navigate_next: $t('next'),
- navigate_previous: $t('previous'),
+ save: $t('save'),
+ supporter: $t('supporter'),
});
});