diff options
| author | Joe Carstairs <jcarstairs@scottlogic.com> | 2023-08-04 18:34:42 +0100 |
|---|---|---|
| committer | Joe Carstairs <jcarstairs@scottlogic.com> | 2023-08-04 18:34:42 +0100 |
| commit | c74568bccde457dd089a4df5b7b97edabd95a56e (patch) | |
| tree | 540f3582b6ab9fc498dbcb73a74f007decd34a7d /frontend/src/types | |
| parent | 4dea89fa67bf52fff2c4031a19244823aec7493e (diff) | |
Defines TranslationsDictionary type
Diffstat (limited to 'frontend/src/types')
| -rw-r--r-- | frontend/src/types/TranslationsDictionary.d.ts | 6 |
1 files changed, 6 insertions, 0 deletions
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<Keys> = { + [key in Keys]: { [key in Locale]?: string } & { [key in typeof defaultLocale]: string } +};
\ No newline at end of file |
