aboutsummaryrefslogtreecommitdiffstats
path: root/lib/locales/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/locales/index.ts')
-rw-r--r--lib/locales/index.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/locales/index.ts b/lib/locales/index.ts
new file mode 100644
index 00000000..3416a31b
--- /dev/null
+++ b/lib/locales/index.ts
@@ -0,0 +1,5 @@
+import fs from "fs";
+export default "de,en,fa,ja,ru,el,es,fr,pt,zh".split(",").reduce((a, l) => {
+ a[l] = JSON.parse(fs.readFileSync(`lib/locales/${l}.json`));
+ return a;
+}, {});