Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
interface
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LuckySwap
interface
Commits
6be569a2
Commit
6be569a2
authored
Jul 17, 2019
by
ian-jh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix i18n bug
parent
09c77bef
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
9 deletions
+10
-9
.env.local.example
.env.local.example
+0
-2
index.js
src/components/CurrencyInputPanel/index.js
+1
-1
i18n.js
src/i18n.js
+3
-4
index.js
src/index.js
+5
-2
App.js
src/pages/App.js
+1
-0
No files found.
.env.local.example
deleted
100644 → 0
View file @
09c77bef
REACT_APP_NETWORK_ID="1"
REACT_APP_NETWORK_URL=""
src/components/CurrencyInputPanel/index.js
View file @
6be569a2
...
...
@@ -207,7 +207,7 @@ export default function CurrencyInputPanel({
showUnlock
,
value
})
{
const
{
t
}
=
useTranslation
()
const
{
t
}
=
useTranslation
()
;
const
[
modalIsOpen
,
setModalIsOpen
]
=
useState
(
false
)
...
...
src/i18n.js
View file @
6be569a2
...
...
@@ -9,12 +9,11 @@ i18next
.
use
(
initReactI18next
)
.
init
({
backend
:
{
loadPath
:
'
/locales/{{lng}}.json
'
loadPath
:
'
/locales/{{lng}}.json
'
,
},
react
:
{
useSuspense
:
true
},
lng
:
'
en
'
,
useSuspense
:
true
,
},
fallbackLng
:
'
en
'
,
preload
:
[
'
en
'
],
keySeparator
:
false
,
...
...
src/index.js
View file @
6be569a2
...
...
@@ -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
>
...
...
@@ -57,7 +60,7 @@ ReactDOM.render(
<
Web3Provider
connectors
=
{
connectors
}
libraryName
=
"
ethers.js
"
>
<
ContextProviders
>
<
Updaters
/>
<
App
/>
<
App
/>
<
/ContextProviders
>
<
/Web3Provider
>
<
/
>
...
...
src/pages/App.js
View file @
6be569a2
...
...
@@ -83,6 +83,7 @@ export default function App() {
/
>
<
Redirect
to
=
"
/swap
"
/>
<
/Switch
>
<
/Suspense
>
<
/BrowserRouter
>
<
/Web3ReactManager
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment