From 38a07e3dfbda798010cc7f219abec911f747eaf7 Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Mon, 3 Oct 2022 16:45:26 +0800 Subject: feat: Fully functioning i18n --- apps/kit/src/global.d.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 apps/kit/src/global.d.ts (limited to 'apps/kit/src/global.d.ts') diff --git a/apps/kit/src/global.d.ts b/apps/kit/src/global.d.ts new file mode 100644 index 0000000..e49922a --- /dev/null +++ b/apps/kit/src/global.d.ts @@ -0,0 +1,13 @@ +/// + +type Locales = import('$i18n/i18n-types').Locales +type TranslationFunctions = import('$i18n/i18n-types').TranslationFunctions + +declare namespace App { + interface Locals { + locale: Locales + LL: TranslationFunctions + } + + // interface Platform { } +} \ No newline at end of file -- cgit v1.3