From fe62cadd6fb4a7e49f7d59401fc74ae0411e32a7 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 26 Aug 2024 21:17:43 -0700 Subject: typescript --- lib/locales/index.ts | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 lib/locales/index.ts (limited to 'lib/locales/index.ts') 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; +}, {}); -- cgit v1.2.3