diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b024f768..c5a1f0b50 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - Changed `SkulptRunner.jsx` implementation of hiding elements to use `display: none` rather than `block-size: 0` (#1219) - Enabled `hyphens: auto` globally (with exceptions) to prevent overflow with longer words (#1215) - Removed fixed size from `ProjectBar` to prevent overflow when text wraps (#1221) +- Added missing translation strings (#1222) ## Changed diff --git a/src/components/Button/Button.jsx b/src/components/Button/Button.jsx index 2512c0b58..151ffb7ca 100644 --- a/src/components/Button/Button.jsx +++ b/src/components/Button/Button.jsx @@ -5,6 +5,7 @@ import { Link } from "react-router-dom"; import classNames from "classnames"; import "../../assets/stylesheets/Button.scss"; +import { useTranslation } from "react-i18next"; const Button = (props) => { const { @@ -26,6 +27,8 @@ const Button = (props) => { buttonIconPosition = "left", } = props; + const { t } = useTranslation(); + const buttonClass = classNames("btn", className, { "btn--svg-only": !buttonText, }); @@ -40,11 +43,11 @@ const Button = (props) => { message: confirmText, buttons: [ { - label: "Yes", + label: t("button.yes"), onClick: () => onClickHandler(e), }, { - label: "No", + label: t("button.no"), }, ], }); diff --git a/src/components/Editor/EditorInput/EditorInput.jsx b/src/components/Editor/EditorInput/EditorInput.jsx index 530dd110f..ece8db7ff 100644 --- a/src/components/Editor/EditorInput/EditorInput.jsx +++ b/src/components/Editor/EditorInput/EditorInput.jsx @@ -163,7 +163,7 @@ const EditorInput = () => { {!["main.py", "index.html"].includes(fileName) ? (