Skip to content

Commit c8fb979

Browse files
committed
Localization for "Present" button
1 parent aa9e480 commit c8fb979

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

excalidraw-app/components/AppFooter.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import { Button, Footer } from "@excalidraw/excalidraw/index";
22
import React from "react";
33

4+
import { useI18n } from "@excalidraw/excalidraw/i18n";
5+
46
import { isExcalidrawPlusSignedUser } from "../app_constants";
57

68
import { DebugFooter, isVisualDebuggerEnabled } from "./DebugCanvas";
@@ -15,6 +17,8 @@ export const AppFooter = React.memo(
1517
onChange: () => void;
1618
onPresentation: () => void;
1719
}) => {
20+
const { t } = useI18n();
21+
1822
return (
1923
<Footer>
2024
<div
@@ -31,7 +35,7 @@ export const AppFooter = React.memo(
3135
<EncryptedIcon />
3236
)}
3337
<Button onSelect={onPresentation} style={{ width: "fit-content" }}>
34-
Present
38+
{t("labels.present")}
3539
</Button>
3640
</div>
3741
</Footer>

packages/excalidraw/locales/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
"actions": "Actions",
8888
"language": "Language",
8989
"liveCollaboration": "Live collaboration...",
90+
"present": "Present",
9091
"duplicateSelection": "Duplicate",
9192
"duplicateSelectionIntoNextFrame": "Duplicate into next frame",
9293
"untitled": "Untitled",

0 commit comments

Comments
 (0)