Unverified Commit 18db7817 authored by Jakub Wołynko's avatar Jakub Wołynko Committed by GitHub

feat: add translation for collapse/expand button and update polish locale (#3811)

add: collapse, expand, polish locale
parent aae3e8ae
......@@ -10,8 +10,10 @@ import useResponsiveWidth from "@/hooks/useResponsiveWidth";
import Loading from "@/pages/Loading";
import { Routes } from "@/router";
import { useMemoFilterStore } from "@/store/v1";
import { useTranslate } from "@/utils/i18n";
const RootLayout = () => {
const t = useTranslate();
const location = useLocation();
const { sm } = useResponsiveWidth();
const currentUser = useCurrentUser();
......@@ -54,10 +56,10 @@ const RootLayout = () => {
>
{!collapsed ? (
<Button variant="plain" color="neutral" startDecorator={<Icon.ChevronLeft className="w-5 h-auto opacity-70" />}>
Collapse
{t("common.collapse")}
</Button>
) : (
<Tooltip title="Expand" placement="right" arrow>
<Tooltip title={t("common.expand")} placement="right" arrow>
<IconButton>
<Icon.ChevronRight className="w-5 h-auto opacity-70" />
</IconButton>
......
......@@ -20,6 +20,7 @@
"clear": "Clear",
"close": "Close",
"confirm": "Confirm",
"collapse": "Collapse",
"create": "Create",
"database": "Database",
"days": "Days",
......@@ -27,6 +28,7 @@
"description": "Description",
"edit": "Edit",
"email": "Email",
"expand": "Expand",
"explore": "Explore",
"file": "File",
"filter": "Filter",
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment