forked from bepronetwork/web-network
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathjest.i18next.mjs
55 lines (48 loc) · 1.62 KB
/
jest.i18next.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import { initReactI18next } from "react-i18next";
import i18n from "i18next";
import bounty from "public/locales/en/bounty.json";
import changeTokenModal from "public/locales/en/change-token-modal.json";
import common from "public/locales/en/common.json";
import connectAccount from "public/locales/en/connect-account.json";
import connectWalletButton from "public/locales/en/connect-wallet-button.json";
import council from "public/locales/en/council.json";
import customNetwork from "public/locales/en/custom-network.json";
import deliverable from "public/locales/en/deliverable.json";
import funding from "public/locales/en/funding.json";
import leaderboard from "public/locales/en/leaderboard.json";
import myOracles from "public/locales/en/my-oracles.json";
import profile from "public/locales/en/profile.json";
import proposal from "public/locales/en/proposal.json";
import setup from "public/locales/en/setup.json";
i18n
.use(initReactI18next)
.init({
lng: "en",
fallbackLng: "en",
// have a common namespace used around the full app
ns: ["common"],
defaultNS: "common",
debug: false,
interpolation: {
escapeValue: false, // not needed for react!!
},
resources: {
en: {
bounty,
"change-token-modal": changeTokenModal,
common,
"connect-account": connectAccount,
"connect-wallet-button": connectWalletButton,
council,
"custom-network": customNetwork,
deliverable,
funding,
leaderboard,
"my-oracles": myOracles,
profile,
proposal,
setup
}
},
});
export default i18n;