summaryrefslogtreecommitdiff
path: root/frontend/src/i18n/translate.ts
diff options
context:
space:
mode:
authorJoe Carstairs <jcarstairs@scottlogic.com>2023-08-07 18:18:22 +0100
committerJoe Carstairs <jcarstairs@scottlogic.com>2023-08-07 18:19:06 +0100
commit2fcbccfbd49c6eaf433272749e32589a6f490200 (patch)
treef8fc429709d66ce96d1f0e8c3812f24c13bf9d18 /frontend/src/i18n/translate.ts
parentd494739e4823424bb54d81e21b57e4725544eb07 (diff)
parent27a25bfdeb07007e06bd4a608cd9953be04271ec (diff)
Merge branch 'master' of https://github.com/jcarstairs-scottlogic/lallans-wabsteid-astro
Diffstat (limited to 'frontend/src/i18n/translate.ts')
-rw-r--r--frontend/src/i18n/translate.ts9
1 files changed, 0 insertions, 9 deletions
diff --git a/frontend/src/i18n/translate.ts b/frontend/src/i18n/translate.ts
deleted file mode 100644
index c0d5620..0000000
--- a/frontend/src/i18n/translate.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-import type Locale from "../types/Locale";
-import type { TranslationsDictionary } from "../types/TranslationsDictionary";
-import { defaultLocale } from "./locales";
-
-export default function(locale: Locale) {
- return function<T extends string>(dict: TranslationsDictionary<T>, key: T) {
- return dict[key][locale] ?? dict[key][defaultLocale];
- }
-} \ No newline at end of file