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
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
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
Biluo Shen
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
Changes
3
Hide 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";
...
@@ -2,6 +2,7 @@ import { App, Dropdown, message, Pagination } from "antd";
import
{
MessageInstance
}
from
"
antd/es/message/interface
"
;
import
{
MessageInstance
}
from
"
antd/es/message/interface
"
;
import
Fuse
from
"
fuse.js
"
;
import
Fuse
from
"
fuse.js
"
;
import
React
,
{
memo
,
useEffect
}
from
"
react
"
;
import
React
,
{
memo
,
useEffect
}
from
"
react
"
;
import
{
useTranslation
}
from
"
react-i18next
"
;
import
{
type
INTERNAL_Snapshot
as
Snapshot
,
proxy
,
useSnapshot
}
from
"
valtio
"
;
import
{
type
INTERNAL_Snapshot
as
Snapshot
,
proxy
,
useSnapshot
}
from
"
valtio
"
;
import
YGOProDeck
from
"
ygopro-deck-encode
"
;
import
YGOProDeck
from
"
ygopro-deck-encode
"
;
...
@@ -15,7 +16,6 @@ import { setSelectedDeck } from "../..";
...
@@ -15,7 +16,6 @@ import { setSelectedDeck } from "../..";
import
{
editDeckStore
}
from
"
../../store
"
;
import
{
editDeckStore
}
from
"
../../store
"
;
import
{
iDeckToEditingDeck
}
from
"
../../utils
"
;
import
{
iDeckToEditingDeck
}
from
"
../../utils
"
;
import
styles
from
"
./index.module.scss
"
;
import
styles
from
"
./index.module.scss
"
;
import
{
useTranslation
}
from
"
react-i18next
"
;
const
{
assetsPath
}
=
useConfig
();
const
{
assetsPath
}
=
useConfig
();
...
@@ -117,7 +117,7 @@ export const DeckResults: React.FC = memo(() => {
...
@@ -117,7 +117,7 @@ export const DeckResults: React.FC = memo(() => {
)
:
(
)
:
(
<
div
className=
{
styles
.
empty
}
>
<
div
className=
{
styles
.
empty
}
>
<
IconFont
type=
"icon-empty"
size=
{
40
}
/>
<
IconFont
type=
"icon-empty"
size=
{
40
}
/>
<
div
>
{
i18n
(
"
NoDeckGroupFound
"
)
}
</
div
>
<
div
>
{
i18n
(
"
NoDeckGroupFound
"
)
}
</
div
>
</
div
>
</
div
>
)
}
)
}
</>
</>
...
...
src/ui/I18N/index.ts
View file @
677e08f2
...
@@ -86,7 +86,9 @@ const resources = {
...
@@ -86,7 +86,9 @@ const resources = {
i18next
.
use
(
initReactI18next
).
init
({
i18next
.
use
(
initReactI18next
).
init
({
resources
,
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
;
export
default
i18next
;
src/ui/Layout/index.tsx
View file @
677e08f2
...
@@ -19,7 +19,6 @@ import {
...
@@ -19,7 +19,6 @@ import {
import
{
useConfig
}
from
"
@/config
"
;
import
{
useConfig
}
from
"
@/config
"
;
import
{
accountStore
}
from
"
@/stores
"
;
import
{
accountStore
}
from
"
@/stores
"
;
import
{
I18NSelector
}
from
"
../I18N
"
;
import
{
Setting
}
from
"
../Setting
"
;
import
{
Setting
}
from
"
../Setting
"
;
import
styles
from
"
./index.module.scss
"
;
import
styles
from
"
./index.module.scss
"
;
import
{
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