mirror of
https://github.com/immich-app/immich.git
synced 2025-12-23 01:11:36 +03:00
chore(web): enforce valid translation keys using typescript (#12106)
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user