Commit 9916c84e authored by Moody Salem's avatar Moody Salem

Fix i18n loading, manifest.json loading

parent 462f2482
...@@ -3,20 +3,18 @@ ...@@ -3,20 +3,18 @@
"name": "Uniswap", "name": "Uniswap",
"icons": [ "icons": [
{ {
"src": "/images/192x192_App_Icon.png", "src": "./images/192x192_App_Icon.png",
"sizes": "192x192", "sizes": "192x192",
"type": "image/png", "type": "image/png",
"purpose": "any maskable" "purpose": "any maskable"
}, },
{ {
"src": "/images/512x512_App_Icon.png", "src": "./images/512x512_App_Icon.png",
"sizes": "512x512", "sizes": "512x512",
"type": "image/png", "type": "image/png",
"purpose": "any maskable" "purpose": "any maskable"
} }
], ],
"start_url": "/",
"scope": "/",
"orientation": "portrait", "orientation": "portrait",
"display": "standalone", "display": "standalone",
"theme_color": "#ff007a", "theme_color": "#ff007a",
......
...@@ -339,7 +339,7 @@ export default function WalletModal({ ...@@ -339,7 +339,7 @@ export default function WalletModal({
</HeaderRow> </HeaderRow>
) : ( ) : (
<HeaderRow> <HeaderRow>
<HoverText>Connect To A Wallet</HoverText> <HoverText>Connect to a wallet</HoverText>
</HeaderRow> </HeaderRow>
)} )}
<ContentWrapper> <ContentWrapper>
......
...@@ -207,7 +207,7 @@ export default function Web3Status() { ...@@ -207,7 +207,7 @@ export default function Web3Status() {
} else { } else {
return ( return (
<Web3StatusConnect id="connect-wallet" onClick={toggleWalletModal} faded={!account}> <Web3StatusConnect id="connect-wallet" onClick={toggleWalletModal} faded={!account}>
<Text>{t('Connect to a Wallet')}</Text> <Text>{t('Connect to a wallet')}</Text>
</Web3StatusConnect> </Web3StatusConnect>
) )
} }
......
...@@ -3,13 +3,15 @@ import { initReactI18next } from 'react-i18next' ...@@ -3,13 +3,15 @@ import { initReactI18next } from 'react-i18next'
import XHR from 'i18next-xhr-backend' import XHR from 'i18next-xhr-backend'
import LanguageDetector from 'i18next-browser-languagedetector' import LanguageDetector from 'i18next-browser-languagedetector'
const LOAD_PATH: string = process.env.PUBLIC_URL === '.' ? `./locales/{{lng}}.json` : '/locales/{{lng}}.json'
i18next i18next
.use(XHR) .use(XHR)
.use(LanguageDetector) .use(LanguageDetector)
.use(initReactI18next) .use(initReactI18next)
.init({ .init({
backend: { backend: {
loadPath: '/locales/{{lng}}.json' loadPath: LOAD_PATH
}, },
react: { react: {
useSuspense: true useSuspense: true
......
...@@ -5,7 +5,6 @@ import { isMobile } from 'react-device-detect' ...@@ -5,7 +5,6 @@ import { isMobile } from 'react-device-detect'
import ReactDOM from 'react-dom' import ReactDOM from 'react-dom'
import ReactGA from 'react-ga' import ReactGA from 'react-ga'
import { Provider } from 'react-redux' import { Provider } from 'react-redux'
import { NetworkContextName } from './constants' import { NetworkContextName } from './constants'
import './i18n' import './i18n'
import App from './pages/App' import App from './pages/App'
......
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