Skip to content

Commit

Permalink
Spanish Translation on sidebar texts
Browse files Browse the repository at this point in the history
Translation in some sidebar texts
  • Loading branch information
lezzthanthree authored Aug 7, 2024
2 parents 112769d + cd3fad5 commit 3d7da76
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Binary file modified bun.lockb
Binary file not shown.
6 changes: 4 additions & 2 deletions src/components/Sidebar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import TextSidebar from "./Sidebar/TextSidebar";
import SpriteSidebar from "./Sidebar/SpriteSidebar";
import { useContext } from "react";
import { AppContext } from "../AppContext";
import { useTranslation } from "react-i18next";

const Sidebar = () => {
const {
Expand All @@ -14,6 +15,7 @@ const Sidebar = () => {
sprites,
setIdDebug,
} = useContext(AppContext);
const { t } = useTranslation();
return (
<div id="sidebar" className={hideState ? "hide" : ""}>
{tabState === "background" && background && <BackgroundSidebar />}
Expand All @@ -27,7 +29,7 @@ const Sidebar = () => {
text === undefined ||
!nameTag ||
!sprites) && (
<div className="center white font-20">Please wait</div>
<div className="center white font-20">{t("please-wait")}</div>
)}
<a
href="https://github.com/lezzthanthree/SIFAS-Dialogue-Sandbox/blob/master/README.md#report-an-issue"
Expand All @@ -37,7 +39,7 @@ const Sidebar = () => {
setIdDebug(true);
}}
>
report an issue
{t("report-issue")}
</a>
</div>
);
Expand Down
6 changes: 5 additions & 1 deletion src/js/i18ninit.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ const i18nInit = () => {
"clear-warn":
"You are about to clear the canvas! Any progress will be lost. \nPressing 'OK' will proceed the action.",
layer: "Layer",
"please-wait": "Please wait",
"report-issue": "Report an issue"
},
},
es: {
Expand Down Expand Up @@ -99,7 +101,9 @@ const i18nInit = () => {
"clear-warn":
"¡Estás a punto de borrar el canvas! Se perderá todo el progreso que se ha hecho. \nAl pulsar 'OK' se procederá a la acción.",
layer: "Capa",
},
"please-wait": "Espera, por favor...",
"report-issue": "Informar un fallo"
},
},
ja: {
translation: {
Expand Down

0 comments on commit 3d7da76

Please sign in to comment.