fix language change not rerendering ui (#1638)

This commit is contained in:
David Luzar 2020-05-27 16:46:11 +02:00 committed by GitHub
parent 5b75925928
commit 5327e8a3dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 77 additions and 2 deletions

View file

@ -87,7 +87,7 @@ import { actions } from "../actions/register";
import { ActionResult } from "../actions/types";
import { getDefaultAppState } from "../appState";
import { t } from "../i18n";
import { t, getLanguage } from "../i18n";
import {
copyToAppClipboard,
@ -229,6 +229,7 @@ class App extends React.Component<any, AppState> {
onLockToggle={this.toggleLock}
zenModeEnabled={zenModeEnabled}
toggleZenMode={this.toggleZenMode}
lng={getLanguage().lng}
/>
<main>
<canvas