High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix(web): wrap hardcoded strings with i18n translation function (#29612)
Wonsuk Choi43abb9a92fe4
diff --git a/i18n/en.json b/i18n/en.jsonindex 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.svelteindex 1e85e6d945..77727b4163 100644--- a/web/src/lib/components/SchemaConfiguration.svelte+++ b/web/src/lib/components/SchemaConfiguration.svelte@@ -107,6 +107,6 @@<Input bind:value={() => getValue<string>(), setValue} /></Field>{:else}- <Text>Unknown schema</Text>+ <Text>{$t('unknown_schema')}</Text><CodeBlock code={JSON.stringify(schema, null, 2)} />{/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.svelteindex 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 @@<Thumbnail asset={toTimelineAsset(asset)} readonly onClick={() => onViewAsset(asset)} thumbnailSize={boxWidth} />{#if !!asset.libraryId}- <div class="absolute inset-e-3 bottom-1 rounded-xl bg-red-500 px-4 py-1 text-xs transition-colors">External</div>+ <div class="absolute inset-e-3 bottom-1 rounded-xl bg-red-500 px-4 py-1 text-xs transition-colors">+ {$t('external')}+ </div>{/if}</div><div class="mt-4 truncate px-4 text-center text-sm font-normal" title={asset.originalFileName}>