From 43abb9a92fe466576d86b082fe12c16bdd09c5cf Mon Sep 17 00:00:00 2001 From: Wonsuk Choi Date: Mon, 6 Jul 2026 16:57:04 +0700 Subject: [PATCH] fix(web): wrap hardcoded strings with i18n translation function (#29612) Co-authored-by: Daniel Dietzler <36593685+danieldietzler@users.noreply.github.com> --- i18n/en.json | 1 + web/src/lib/components/SchemaConfiguration.svelte | 2 +- .../[[photos=photos]]/[[assetId=id]]/LargeAssetData.svelte | 5 ++++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/i18n/en.json b/i18n/en.json index 45951c6ffe..743b269b28 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -2150,6 +2150,7 @@ "unknown": "Unknown", "unknown_country": "Unknown Country", "unknown_date": "Unknown date", + "unknown_schema": "Unknown schema", "unknown_year": "Unknown Year", "unlimited": "Unlimited", "unlink_motion_video": "Unlink motion video", diff --git a/web/src/lib/components/SchemaConfiguration.svelte b/web/src/lib/components/SchemaConfiguration.svelte index 1e85e6d945..77727b4163 100644 --- a/web/src/lib/components/SchemaConfiguration.svelte +++ b/web/src/lib/components/SchemaConfiguration.svelte @@ -107,6 +107,6 @@ getValue(), setValue} /> {:else} - Unknown schema + {$t('unknown_schema')} {/if} diff --git a/web/src/routes/(user)/utilities/large-files/[[photos=photos]]/[[assetId=id]]/LargeAssetData.svelte b/web/src/routes/(user)/utilities/large-files/[[photos=photos]]/[[assetId=id]]/LargeAssetData.svelte index 74c36c1850..1dcd0f7fcf 100644 --- a/web/src/routes/(user)/utilities/large-files/[[photos=photos]]/[[assetId=id]]/LargeAssetData.svelte +++ b/web/src/routes/(user)/utilities/large-files/[[photos=photos]]/[[assetId=id]]/LargeAssetData.svelte @@ -3,6 +3,7 @@ import { getFileSize } from '$lib/utils/asset-utils'; import { toTimelineAsset } from '$lib/utils/timeline-util'; import { type AssetResponseDto } from '@immich/sdk'; + import { t } from 'svelte-i18n'; interface Props { asset: AssetResponseDto; @@ -25,7 +26,9 @@ onViewAsset(asset)} thumbnailSize={boxWidth} /> {#if !!asset.libraryId} -
External
+
+ {$t('external')} +
{/if}