aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/utils/translate.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-02-22 06:22:02 +0800
committerFabio Berger <me@fabioberger.com>2018-02-22 06:22:02 +0800
commit1b3a9102f1d9c83ca6675a0e95cea6c4ceab01eb (patch)
tree05048cc309db257869248101b46e9246c1cd2283 /packages/website/ts/utils/translate.ts
parent9993a5090387e18d392f7ee832fef2504355780c (diff)
downloaddexon-0x-contracts-1b3a9102f1d9c83ca6675a0e95cea6c4ceab01eb.tar.gz
dexon-0x-contracts-1b3a9102f1d9c83ca6675a0e95cea6c4ceab01eb.tar.zst
dexon-0x-contracts-1b3a9102f1d9c83ca6675a0e95cea6c4ceab01eb.zip
Move from storing translations in TS files to JSON files
Diffstat (limited to 'packages/website/ts/utils/translate.ts')
-rw-r--r--packages/website/ts/utils/translate.ts11
1 files changed, 6 insertions, 5 deletions
diff --git a/packages/website/ts/utils/translate.ts b/packages/website/ts/utils/translate.ts
index 524a22c12..5148e48ad 100644
--- a/packages/website/ts/utils/translate.ts
+++ b/packages/website/ts/utils/translate.ts
@@ -1,11 +1,12 @@
import * as _ from 'lodash';
-import { chinese } from 'ts/translations/chinese';
-import { english } from 'ts/translations/english';
-import { korean } from 'ts/translations/korean';
-import { russian } from 'ts/translations/russian';
-import { spanish } from 'ts/translations/spanish';
import { Deco, Key, Language } from 'ts/types';
+import * as chinese from '../../translations/chinese.json';
+import * as english from '../../translations/english.json';
+import * as korean from '../../translations/korean.json';
+import * as russian from '../../translations/russian.json';
+import * as spanish from '../../translations/spanish.json';
+
const languageToTranslations = {
[Language.English]: english,
[Language.Spanish]: spanish,