mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix language change not rerendering ui (#1638)
This commit is contained in:
parent
5b75925928
commit
5327e8a3dc
4 changed files with 77 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue