mirror of
https://github.com/joinmarket-webui/jam.git
synced 2026-08-13 12:33:26 +02:00
* Add basic i18n with i18next * Add transifex config * Add translation strings for wallets screen * Delete transifex config for now * Remove suspension * Add exemplary german translation * Add language switcher * Add link to telegram group for translations * Update tests * Fix hook deps * Add tx config * Move i18n code to subfolder * Update i18n usage in tests * Remove unused call * Pull de translation from transifex * Add npm scripts for pushing and pulling * Put back deps * Put deps into dev * Add tx gh config * Add readme * test: add empty new lang * Remove test langs * Remove cli integration * Update src/i18n/README.md Co-authored-by: Thebora Kompanioni <theborakompanioni@users.noreply.github.com> * Update src/i18n/README.md Co-authored-by: Thebora Kompanioni <theborakompanioni@users.noreply.github.com> * Update src/i18n/README.md Co-authored-by: Thebora Kompanioni <theborakompanioni@users.noreply.github.com> * Update public/sprite.svg Co-authored-by: Thebora Kompanioni <theborakompanioni@users.noreply.github.com> * Change link * Run npm install * Update readme * Update readme again Co-authored-by: Thebora Kompanioni <theborakompanioni@users.noreply.github.com>
29 lines
987 B
JavaScript
29 lines
987 B
JavaScript
import React from 'react'
|
|
import ReactDOM from 'react-dom'
|
|
import { BrowserRouter } from 'react-router-dom'
|
|
import App from './components/App'
|
|
import { SettingsProvider } from './context/SettingsContext'
|
|
import { WalletProvider } from './context/WalletContext'
|
|
import { WebsocketProvider } from './context/WebsocketContext'
|
|
import reportWebVitals from './reportWebVitals'
|
|
import 'bootstrap/dist/css/bootstrap.min.css'
|
|
import './index.css'
|
|
import './i18n/config'
|
|
|
|
ReactDOM.render(
|
|
<BrowserRouter basename={window.JM.PUBLIC_PATH}>
|
|
<SettingsProvider>
|
|
<WalletProvider>
|
|
<WebsocketProvider>
|
|
<App />
|
|
</WebsocketProvider>
|
|
</WalletProvider>
|
|
</SettingsProvider>
|
|
</BrowserRouter>,
|
|
document.getElementById('root')
|
|
)
|
|
|
|
// If you want to start measuring performance in your app, pass a function
|
|
// to log results (for example: reportWebVitals(console.log))
|
|
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
|
|
reportWebVitals()
|