Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
Neos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Neos
Commits
677e08f2
Commit
677e08f2
authored
Jun 17, 2024
by
BBeretta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat/language-translation (prettier fixes)
parent
2aac735f
Pipeline
#27834
passed with stages
in 9 minutes and 5 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
src/ui/BuildDeck/DeckDatabase/DeckResults/index.tsx
src/ui/BuildDeck/DeckDatabase/DeckResults/index.tsx
+2
-2
src/ui/I18N/index.ts
src/ui/I18N/index.ts
+3
-1
src/ui/Layout/index.tsx
src/ui/Layout/index.tsx
+0
-1
No files found.
src/ui/BuildDeck/DeckDatabase/DeckResults/index.tsx
View file @
677e08f2
...
...
@@ -2,6 +2,7 @@ import { App, Dropdown, message, Pagination } from "antd";
import
{
MessageInstance
}
from
"
antd/es/message/interface
"
;
import
Fuse
from
"
fuse.js
"
;
import
React
,
{
memo
,
useEffect
}
from
"
react
"
;
import
{
useTranslation
}
from
"
react-i18next
"
;
import
{
type
INTERNAL_Snapshot
as
Snapshot
,
proxy
,
useSnapshot
}
from
"
valtio
"
;
import
YGOProDeck
from
"
ygopro-deck-encode
"
;
...
...
@@ -15,7 +16,6 @@ import { setSelectedDeck } from "../..";
import
{
editDeckStore
}
from
"
../../store
"
;
import
{
iDeckToEditingDeck
}
from
"
../../utils
"
;
import
styles
from
"
./index.module.scss
"
;
import
{
useTranslation
}
from
"
react-i18next
"
;
const
{
assetsPath
}
=
useConfig
();
...
...
@@ -117,7 +117,7 @@ export const DeckResults: React.FC = memo(() => {
)
:
(
<
div
className=
{
styles
.
empty
}
>
<
IconFont
type=
"icon-empty"
size=
{
40
}
/>
<
div
>
{
i18n
(
"
NoDeckGroupFound
"
)
}
</
div
>
<
div
>
{
i18n
(
"
NoDeckGroupFound
"
)
}
</
div
>
</
div
>
)
}
</>
...
...
src/ui/I18N/index.ts
View file @
677e08f2
...
...
@@ -86,7 +86,9 @@ const resources = {
i18next
.
use
(
initReactI18next
).
init
({
resources
,
lng
:
localStorage
.
getItem
(
"
language
"
)
?
localStorage
.
getItem
(
"
language
"
)?.
toString
()
:
"
cn
"
,
//default language
lng
:
localStorage
.
getItem
(
"
language
"
)
?
localStorage
.
getItem
(
"
language
"
)?.
toString
()
:
"
cn
"
,
//default language
});
export
default
i18next
;
src/ui/Layout/index.tsx
View file @
677e08f2
...
...
@@ -19,7 +19,6 @@ import {
import
{
useConfig
}
from
"
@/config
"
;
import
{
accountStore
}
from
"
@/stores
"
;
import
{
I18NSelector
}
from
"
../I18N
"
;
import
{
Setting
}
from
"
../Setting
"
;
import
styles
from
"
./index.module.scss
"
;
import
{
...
...
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