summaryrefslogtreecommitdiff
path: root/src/types/TranslationsDictionary.d.ts
diff options
context:
space:
mode:
authorJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2023-08-05 21:16:45 +0100
committerJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2023-08-05 21:37:58 +0100
commit3098c31049e17dfdcdf451e843f6c4bdcf5b2fa1 (patch)
treeb3590c527d147db6ef5519d43e8a1976f9674f42 /src/types/TranslationsDictionary.d.ts
parent97147d56d93c7949fdccf22abe569b1b9d7a22ab (diff)
Moves to root folder
Diffstat (limited to 'src/types/TranslationsDictionary.d.ts')
-rw-r--r--src/types/TranslationsDictionary.d.ts6
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