diff options
| author | Adam Soltys <[email protected]> | 2024-08-26 21:17:43 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-08-26 21:17:43 -0700 |
| commit | fe62cadd6fb4a7e49f7d59401fc74ae0411e32a7 (patch) | |
| tree | aa8f34e1692bd2d638a2c996eeadb58671d07aea /lib/locales/index.ts | |
| parent | 00e43ddc0bf3d6dd719fc9295d156567fa2fecfb (diff) | |
| download | coinos-server-fe62cadd6fb4a7e49f7d59401fc74ae0411e32a7.tar.gz coinos-server-fe62cadd6fb4a7e49f7d59401fc74ae0411e32a7.zip | |
typescript
Diffstat (limited to 'lib/locales/index.ts')
| -rw-r--r-- | lib/locales/index.ts | 5 |
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; +}, {}); |
