-
When integrating After checking existing SvelteKit example with // app.d.ts
+ type Locales = import('$i18n/i18n-types').Locales;
+ type TranslationFunctions = import('$i18n/i18n-types').TranslationFun;
declare global {
namespace App {
interface Locals {
- locale: string;
+ locale: Locales;
+ LL: TranslationFunctions;
}
}
} Would it make sense to auto-generate this file? Is it even possible? Why is this |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Auto-generating the file is not an option as it would override existing modifications to that file.
|
Beta Was this translation helpful? Give feedback.
👍🏽 Done in: