diff --git a/src/components/LayerUI.tsx b/src/components/LayerUI.tsx index 8544bfe06..cf47f7338 100644 --- a/src/components/LayerUI.tsx +++ b/src/components/LayerUI.tsx @@ -262,7 +262,7 @@ const LayerUI = ({ }} >
{ canvasActions: CanvasActions } @@ -720,7 +720,6 @@ This prop can be used to customise UI of Excalidraw. Currently we support custom | `saveToActiveFile` | boolean | true | Implies whether to show `Save button` to save to current file | | `toggleTheme` | boolean | null | null | Implies whether to show `Theme toggle`. When defined as `boolean`, takes precedence over [`props.theme`](#theme) to show `Theme toggle` | | `saveAsImage` | boolean | true | Implies whether to show `Save as image button` | -| `languageList` | boolean | true | Implies whether to show the `Language Selector Dropdown list` | ##### `dockedSidebarBreakpoint` @@ -728,6 +727,10 @@ This prop indicates at what point should we break to a docked, permanent sidebar  +### `showLanguageList` + +Boolean prop. If set to `true` the `language selector dropdown list` will be hidden in the app menu. If `false` or `undefined` the language dropdown will be rendered. + #### `exportOpts` The below attributes can be set in `UIOptions.canvasActions.export` to customize the export dialog. If `UIOptions.canvasActions.export` is `false` the export button will not be rendered. diff --git a/src/types.ts b/src/types.ts index cbab0f0b4..ef9039077 100644 --- a/src/types.ts +++ b/src/types.ts @@ -303,6 +303,7 @@ export interface ExcalidrawProps { UIOptions?: { dockedSidebarBreakpoint?: number; canvasActions?: CanvasActions; + showLanguageList?: boolean; }; detectScroll?: boolean; handleKeyboardGlobally?: boolean; @@ -367,7 +368,6 @@ type CanvasActions = { saveToActiveFile?: boolean; toggleTheme?: boolean | null; saveAsImage?: boolean; - languageList?: boolean; }; export type AppProps = Merge< @@ -376,6 +376,7 @@ export type AppProps = Merge< UIOptions: { canvasActions: Required& { export: ExportOpts }; dockedSidebarBreakpoint?: number; + showLanguageList?: boolean; }; detectScroll: boolean; handleKeyboardGlobally: boolean;