From 13989632a7a79771ae0429a2563a2532a635c747 Mon Sep 17 00:00:00 2001 From: Intnick Date: Sun, 28 May 2017 16:09:56 +0200 Subject: [PATCH] language switch implementation. Needs more testing --- app/locales/en.json | 3 ++- ui/js/component/app/view.jsx | 2 +- ui/js/component/header/index.js | 3 ++- ui/js/component/header/view.jsx | 5 +++-- ui/js/lbry.js | 1 + ui/js/main.js | 3 ++- ui/js/page/settings/view.jsx | 34 ++++++++++++++++++++++++++++++++- ui/js/selectors/app.js | 5 ++++- 8 files changed, 48 insertions(+), 8 deletions(-) diff --git a/app/locales/en.json b/app/locales/en.json index acf9f743f..0d5af2e42 100644 --- a/app/locales/en.json +++ b/app/locales/en.json @@ -305,5 +305,6 @@ "Your transaction was successfully placed in the queue.": "Your transaction was successfully placed in the queue.", "Transaction failed": "Transaction failed", "Something went wrong": "Something went wrong", - "Find movies, music, games, and more": "Find movies, music, games, and more" + "Find movies, music, games, and more": "Find movies, music, games, and more", + "Wallet": "Wallet" } \ No newline at end of file diff --git a/ui/js/component/app/view.jsx b/ui/js/component/app/view.jsx index 1c7ff4eb4..2c13c6328 100644 --- a/ui/js/component/app/view.jsx +++ b/ui/js/component/app/view.jsx @@ -20,7 +20,7 @@ class App extends React.Component { lbry.balanceSubscribe((balance) => { this.props.updateBalance(balance) }) - } + }y render() { const { diff --git a/ui/js/component/header/index.js b/ui/js/component/header/index.js index dafdabf32..25846b5c3 100644 --- a/ui/js/component/header/index.js +++ b/ui/js/component/header/index.js @@ -13,7 +13,8 @@ import { import Header from './view' const select = (state) => ({ - balance: lbry.formatCredits(selectBalance(state), 1) + balance: lbry.formatCredits(selectBalance(state), 1), + publish: __("Publish"), }) const perform = (dispatch) => ({ diff --git a/ui/js/component/header/view.jsx b/ui/js/component/header/view.jsx index 32d15501a..341b734cb 100644 --- a/ui/js/component/header/view.jsx +++ b/ui/js/component/header/view.jsx @@ -6,7 +6,8 @@ export const Header = (props) => { const { balance, back, - navigate + navigate, + publish, } = props return