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"; ...@@ -10,8 +10,10 @@ import useResponsiveWidth from "@/hooks/useResponsiveWidth";
import Loading from "@/pages/Loading"; import Loading from "@/pages/Loading";
import { Routes } from "@/router"; import { Routes } from "@/router";
import { useMemoFilterStore } from "@/store/v1"; import { useMemoFilterStore } from "@/store/v1";
import { useTranslate } from "@/utils/i18n";
const RootLayout = () => { const RootLayout = () => {
const t = useTranslate();
const location = useLocation(); const location = useLocation();
const { sm } = useResponsiveWidth(); const { sm } = useResponsiveWidth();
const currentUser = useCurrentUser(); const currentUser = useCurrentUser();
...@@ -54,10 +56,10 @@ const RootLayout = () => { ...@@ -54,10 +56,10 @@ const RootLayout = () => {
> >
{!collapsed ? ( {!collapsed ? (
<Button variant="plain" color="neutral" startDecorator={<Icon.ChevronLeft className="w-5 h-auto opacity-70" />}> <Button variant="plain" color="neutral" startDecorator={<Icon.ChevronLeft className="w-5 h-auto opacity-70" />}>
Collapse {t("common.collapse")}
</Button> </Button>
) : ( ) : (
<Tooltip title="Expand" placement="right" arrow> <Tooltip title={t("common.expand")} placement="right" arrow>
<IconButton> <IconButton>
<Icon.ChevronRight className="w-5 h-auto opacity-70" /> <Icon.ChevronRight className="w-5 h-auto opacity-70" />
</IconButton> </IconButton>
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
"clear": "Clear", "clear": "Clear",
"close": "Close", "close": "Close",
"confirm": "Confirm", "confirm": "Confirm",
"collapse": "Collapse",
"create": "Create", "create": "Create",
"database": "Database", "database": "Database",
"days": "Days", "days": "Days",
...@@ -27,6 +28,7 @@ ...@@ -27,6 +28,7 @@
"description": "Description", "description": "Description",
"edit": "Edit", "edit": "Edit",
"email": "Email", "email": "Email",
"expand": "Expand",
"explore": "Explore", "explore": "Explore",
"file": "File", "file": "File",
"filter": "Filter", "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