mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
chore(web): enforce valid translation keys using typescript (#12106)
This commit is contained in:
parent
bab5ad7ebd
commit
9f5a3f1e84
7 changed files with 48 additions and 49 deletions
|
|
@ -11,14 +11,14 @@
|
|||
type PluralElement,
|
||||
type SelectElement,
|
||||
} from '@formatjs/icu-messageformat-parser';
|
||||
import { locale as i18nLocale, json } from 'svelte-i18n';
|
||||
import { locale as i18nLocale, json, type Translations } from 'svelte-i18n';
|
||||
|
||||
type MessagePart = {
|
||||
message: string;
|
||||
tag?: string;
|
||||
};
|
||||
|
||||
export let key: string;
|
||||
export let key: Translations;
|
||||
export let values: InterpolationValues = {};
|
||||
|
||||
const getLocale = (locale?: string | null) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue