summaryrefslogtreecommitdiff
path: root/frontend/src/i18n/locales.ts
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/i18n/locales.ts')
-rw-r--r--frontend/src/i18n/locales.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/frontend/src/i18n/locales.ts b/frontend/src/i18n/locales.ts
new file mode 100644
index 0000000..7663848
--- /dev/null
+++ b/frontend/src/i18n/locales.ts
@@ -0,0 +1,9 @@
+import type Locale from '../types/Locale';
+
+// Use the magic of TypeScript to guarantee completeness
+const localesHash: { [key in Locale]: 1 } = {
+ 'sco': 1,
+ 'en-GB': 1,
+};
+
+export default Object.keys(localesHash) as Locale[]; \ No newline at end of file