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
29b5c393
Unverified
Commit
29b5c393
authored
Feb 20, 2023
by
_Jellen
Committed by
GitHub
Feb 20, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: add Korean translation (#1127)
added Korean translation
parent
b8cc0b12
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
275 additions
and
2 deletions
+275
-2
user_setting.go
api/user_setting.go
+1
-1
LocaleSelect.tsx
web/src/components/LocaleSelect.tsx
+1
-0
i18n.ts
web/src/i18n.ts
+4
-0
ko.json
web/src/locales/ko.json
+268
-0
i18n.d.ts
web/src/types/i18n.d.ts
+1
-1
No files found.
api/user_setting.go
View file @
29b5c393
...
...
@@ -36,7 +36,7 @@ func (key UserSettingKey) String() string {
}
var
(
UserSettingLocaleValue
=
[]
string
{
"en"
,
"zh"
,
"vi"
,
"fr"
,
"nl"
,
"sv"
,
"de"
,
"es"
,
"uk"
,
"ru"
,
"it"
,
"hant"
}
UserSettingLocaleValue
=
[]
string
{
"en"
,
"zh"
,
"vi"
,
"fr"
,
"nl"
,
"sv"
,
"de"
,
"es"
,
"uk"
,
"ru"
,
"it"
,
"hant"
,
"ko"
}
UserSettingAppearanceValue
=
[]
string
{
"system"
,
"light"
,
"dark"
}
UserSettingMemoVisibilityValue
=
[]
Visibility
{
Private
,
Protected
,
Public
}
UserSettingMemoDisplayTsOptionKeyValue
=
[]
string
{
"created_ts"
,
"updated_ts"
}
...
...
web/src/components/LocaleSelect.tsx
View file @
29b5c393
...
...
@@ -34,6 +34,7 @@ const LocaleSelect: FC<Props> = (props: Props) => {
<
Option
value=
"ru"
>
Русский
</
Option
>
<
Option
value=
"it"
>
Italiano
</
Option
>
<
Option
value=
"hant"
>
繁體中文
</
Option
>
<
Option
value=
"ko"
>
한국어
</
Option
>
</
Select
>
);
};
...
...
web/src/i18n.ts
View file @
29b5c393
...
...
@@ -12,6 +12,7 @@ import ukLocale from "./locales/uk.json";
import
ruLocale
from
"./locales/ru.json"
;
import
itLocale
from
"./locales/it.json"
;
import
hantLocale
from
"./locales/zh-Hant.json"
;
import
koLocale
from
"./locales/ko.json"
;
i18n
.
use
(
initReactI18next
).
init
({
resources
:
{
...
...
@@ -51,6 +52,9 @@ i18n.use(initReactI18next).init({
hant
:
{
translation
:
hantLocale
,
},
ko
:
{
translation
:
koLocale
,
},
},
lng
:
"en"
,
fallbackLng
:
"en"
,
...
...
web/src/locales/ko.json
0 → 100644
View file @
29b5c393
This diff is collapsed.
Click to expand it.
web/src/types/i18n.d.ts
View file @
29b5c393
type
Locale
=
"en"
|
"zh"
|
"vi"
|
"fr"
|
"nl"
|
"sv"
|
"de"
|
"es"
|
"uk"
|
"ru"
|
"it"
|
"hant"
;
type
Locale
=
"en"
|
"zh"
|
"vi"
|
"fr"
|
"nl"
|
"sv"
|
"de"
|
"es"
|
"uk"
|
"ru"
|
"it"
|
"hant"
|
"ko"
;
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