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.js | 5 ----- lib/locales/index.js.map | 1 + lib/locales/index.ts | 5 +++++ 3 files changed, 6 insertions(+), 5 deletions(-) delete mode 100644 lib/locales/index.js create mode 100644 lib/locales/index.js.map create mode 100644 lib/locales/index.ts (limited to 'lib/locales') diff --git a/lib/locales/index.js b/lib/locales/index.js deleted file mode 100644 index 3416a31b..00000000 --- a/lib/locales/index.js +++ /dev/null @@ -1,5 +0,0 @@ -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; -}, {}); diff --git a/lib/locales/index.js.map b/lib/locales/index.js.map new file mode 100644 index 00000000..3fe687da --- /dev/null +++ b/lib/locales/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;AAAA,0CAAoB;AACpB,kBAAe,+BAA+B,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,UAAC,CAAC,EAAE,CAAC;IAChE,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,YAAE,CAAC,YAAY,CAAC,sBAAe,CAAC,UAAO,CAAC,CAAC,CAAC;IAC9D,OAAO,CAAC,CAAC;AACb,CAAC,EAAE,EAAE,CAAC,CAAC"} \ No newline at end of file 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