From c74568bccde457dd089a4df5b7b97edabd95a56e Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Fri, 4 Aug 2023 18:34:42 +0100 Subject: Defines TranslationsDictionary type --- frontend/src/types/TranslationsDictionary.d.ts | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 frontend/src/types/TranslationsDictionary.d.ts (limited to 'frontend/src/types') diff --git a/frontend/src/types/TranslationsDictionary.d.ts b/frontend/src/types/TranslationsDictionary.d.ts new file mode 100644 index 0000000..7ebb952 --- /dev/null +++ b/frontend/src/types/TranslationsDictionary.d.ts @@ -0,0 +1,6 @@ +import type { defaultLocale } from "../i18n/locales"; +import type Locale from "./Locale"; + +type TranslationsDictionary = { + [key in Keys]: { [key in Locale]?: string } & { [key in typeof defaultLocale]: string } +}; \ No newline at end of file -- cgit v1.2.3