Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
eef08e5b
authored
Nov 21, 2025
by
Chokiproai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add Vietnamese language support
parent
9b6b8d0e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletions
+10
-1
web/src/components/layout/headerbar/LanguageSelector.jsx
+8
-1
web/src/i18n/i18n.js
+2
-0
web/src/i18n/locales/vi.json
+0
-0
No files found.
web/src/components/layout/headerbar/LanguageSelector.jsx
View file @
eef08e5b
...
@@ -20,7 +20,7 @@ For commercial licensing, please contact support@quantumnous.com
...
@@ -20,7 +20,7 @@ For commercial licensing, please contact support@quantumnous.com
import
React
from
'react'
;
import
React
from
'react'
;
import
{
Button
,
Dropdown
}
from
'@douyinfe/semi-ui'
;
import
{
Button
,
Dropdown
}
from
'@douyinfe/semi-ui'
;
import
{
Languages
}
from
'lucide-react'
;
import
{
Languages
}
from
'lucide-react'
;
import
{
CN
,
GB
,
FR
,
RU
,
JP
}
from
'country-flag-icons/react/3x2'
;
import
{
CN
,
GB
,
FR
,
RU
,
JP
,
VN
}
from
'country-flag-icons/react/3x2'
;
const
LanguageSelector
=
({
currentLang
,
onLanguageChange
,
t
})
=>
{
const
LanguageSelector
=
({
currentLang
,
onLanguageChange
,
t
})
=>
{
return
(
return
(
...
@@ -65,6 +65,13 @@ const LanguageSelector = ({ currentLang, onLanguageChange, t }) => {
...
@@ -65,6 +65,13 @@ const LanguageSelector = ({ currentLang, onLanguageChange, t }) => {
<
RU
title=
'Русский'
className=
'!w-5 !h-auto'
/>
<
RU
title=
'Русский'
className=
'!w-5 !h-auto'
/>
<
span
>
Русский
</
span
>
<
span
>
Русский
</
span
>
</
Dropdown
.
Item
>
</
Dropdown
.
Item
>
<
Dropdown
.
Item
onClick=
{
()
=>
onLanguageChange
(
'vi'
)
}
className=
{
`!flex !items-center !gap-2 !px-3 !py-1.5 !text-sm !text-semi-color-text-0 dark:!text-gray-200 ${currentLang === 'vi' ? '!bg-semi-color-primary-light-default dark:!bg-blue-600 !font-semibold' : 'hover:!bg-semi-color-fill-1 dark:hover:!bg-gray-600'}`
}
>
<
VN
title=
'Tiếng Việt'
className=
'!w-5 !h-auto'
/>
<
span
>
Tiếng Việt
</
span
>
</
Dropdown
.
Item
>
</
Dropdown
.
Menu
>
</
Dropdown
.
Menu
>
}
}
>
>
...
...
web/src/i18n/i18n.js
View file @
eef08e5b
...
@@ -26,6 +26,7 @@ import frTranslation from './locales/fr.json';
...
@@ -26,6 +26,7 @@ import frTranslation from './locales/fr.json';
import
zhTranslation
from
'./locales/zh.json'
;
import
zhTranslation
from
'./locales/zh.json'
;
import
ruTranslation
from
'./locales/ru.json'
;
import
ruTranslation
from
'./locales/ru.json'
;
import
jaTranslation
from
'./locales/ja.json'
;
import
jaTranslation
from
'./locales/ja.json'
;
import
viTranslation
from
'./locales/vi.json'
;
i18n
i18n
.
use
(
LanguageDetector
)
.
use
(
LanguageDetector
)
...
@@ -38,6 +39,7 @@ i18n
...
@@ -38,6 +39,7 @@ i18n
fr
:
frTranslation
,
fr
:
frTranslation
,
ru
:
ruTranslation
,
ru
:
ruTranslation
,
ja
:
jaTranslation
,
ja
:
jaTranslation
,
vi
:
viTranslation
,
},
},
fallbackLng
:
'zh'
,
fallbackLng
:
'zh'
,
interpolation
:
{
interpolation
:
{
...
...
web/src/i18n/locales/vi.json
0 → 100644
View file @
eef08e5b
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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