diff options
Diffstat (limited to 'src/types/TranslationsDictionary.d.ts')
| -rw-r--r-- | src/types/TranslationsDictionary.d.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/types/TranslationsDictionary.d.ts b/src/types/TranslationsDictionary.d.ts new file mode 100644 index 0000000..7ebb952 --- /dev/null +++ b/src/types/TranslationsDictionary.d.ts @@ -0,0 +1,6 @@ +import type { defaultLocale } from "../i18n/locales"; +import type Locale from "./Locale"; + +type TranslationsDictionary<Keys> = { + [key in Keys]: { [key in Locale]?: string } & { [key in typeof defaultLocale]: string } +};
\ No newline at end of file |
