Commit 6be569a2 authored by ian-jh's avatar ian-jh

fix i18n bug

parent 09c77bef
REACT_APP_NETWORK_ID="1"
REACT_APP_NETWORK_URL=""
......@@ -207,7 +207,7 @@ export default function CurrencyInputPanel({
showUnlock,
value
}) {
const { t } = useTranslation()
const { t } = useTranslation();
const [modalIsOpen, setModalIsOpen] = useState(false)
......
......@@ -9,12 +9,11 @@ i18next
.use(initReactI18next)
.init({
backend: {
loadPath: '/locales/{{lng}}.json'
loadPath: '/locales/{{lng}}.json',
},
react: {
useSuspense: true
useSuspense: true,
},
lng: 'en',
fallbackLng: 'en',
preload: ['en'],
keySeparator: false,
......
......@@ -10,6 +10,7 @@ import TokensContextProvider from './contexts/Tokens'
import BalancesContextProvider from './contexts/Balances'
import AllowancesContextProvider from './contexts/Allowances'
import App from './pages/App'
import InjectedConnector from './InjectedConnector'
......@@ -33,7 +34,9 @@ function ContextProviders({ children }) {
<TransactionContextProvider>
<TokensContextProvider>
<BalancesContextProvider>
<AllowancesContextProvider>{children}</AllowancesContextProvider>
<AllowancesContextProvider>
{children}
</AllowancesContextProvider>
</BalancesContextProvider>
</TokensContextProvider>
</TransactionContextProvider>
......
......@@ -83,6 +83,7 @@ export default function App() {
/>
<Redirect to="/swap" />
</Switch>
</Suspense>
</BrowserRouter>
</Web3ReactManager>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment