Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
canifa_note
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vũ Hoàng Anh
canifa_note
Commits
18db7817
Unverified
Commit
18db7817
authored
Aug 14, 2024
by
Jakub Wołynko
Committed by
GitHub
Aug 14, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: add translation for collapse/expand button and update polish locale (#3811)
add: collapse, expand, polish locale
parent
aae3e8ae
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
196 additions
and
62 deletions
+196
-62
RootLayout.tsx
web/src/layouts/RootLayout.tsx
+4
-2
en.json
web/src/locales/en.json
+2
-0
pl.json
web/src/locales/pl.json
+190
-60
No files found.
web/src/layouts/RootLayout.tsx
View file @
18db7817
...
@@ -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
>
...
...
web/src/locales/en.json
View file @
18db7817
...
@@ -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"
,
...
...
web/src/locales/pl.json
View file @
18db7817
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment