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
0cddb358
Unverified
Commit
0cddb358
authored
Apr 01, 2023
by
boojack
Committed by
GitHub
Apr 01, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: add Slovenian locale (#1437)
chore: add sl locale
parent
741eeb78
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
4 deletions
+9
-4
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
sl.json
web/src/locales/sl.json
+2
-2
i18n.d.ts
web/src/types/i18n.d.ts
+1
-1
No files found.
api/user_setting.go
View file @
0cddb358
...
...
@@ -36,7 +36,7 @@ func (key UserSettingKey) String() string {
}
var
(
UserSettingLocaleValue
=
[]
string
{
"en"
,
"zh"
,
"vi"
,
"fr"
,
"nl"
,
"sv"
,
"de"
,
"es"
,
"uk"
,
"ru"
,
"it"
,
"hant"
,
"tr"
,
"ko"
}
UserSettingLocaleValue
=
[]
string
{
"en"
,
"zh"
,
"vi"
,
"fr"
,
"nl"
,
"sv"
,
"de"
,
"es"
,
"uk"
,
"ru"
,
"it"
,
"hant"
,
"tr"
,
"ko"
,
"sl"
}
UserSettingAppearanceValue
=
[]
string
{
"system"
,
"light"
,
"dark"
}
UserSettingMemoVisibilityValue
=
[]
Visibility
{
Private
,
Protected
,
Public
}
UserSettingResourceVisibilityValue
=
[]
Visibility
{
Private
,
Protected
,
Public
}
...
...
web/src/components/LocaleSelect.tsx
View file @
0cddb358
...
...
@@ -36,6 +36,7 @@ const LocaleSelect: FC<Props> = (props: Props) => {
<
Option
value=
"hant"
>
繁體中文
</
Option
>
<
Option
value=
"tr"
>
Turkish
</
Option
>
<
Option
value=
"ko"
>
한국어
</
Option
>
<
Option
value=
"sl"
>
Slovenian
</
Option
>
</
Select
>
);
};
...
...
web/src/i18n.ts
View file @
0cddb358
...
...
@@ -15,6 +15,7 @@ import itLocale from "./locales/it.json";
import
hantLocale
from
"./locales/zh-Hant.json"
;
import
trLocale
from
"./locales/tr.json"
;
import
koLocale
from
"./locales/ko.json"
;
import
slLocale
from
"./locales/sl.json"
;
const
DETECTION_OPTIONS
=
{
order
:
[
"navigator"
],
...
...
@@ -68,6 +69,9 @@ i18n
ko
:
{
translation
:
koLocale
,
},
sl
:
{
translation
:
slLocale
,
},
},
fallbackLng
:
"en"
,
});
...
...
web/src/locales/sl.json
View file @
0cddb358
...
...
@@ -67,7 +67,7 @@
"resources"
:
{
"description"
:
"Poglejte svoje statične vire v beležkah npr. slike"
,
"no-resources"
:
"Ni virov."
,
"fetching-data"
:
"pridobivam podatke..."
"fetching-data"
:
"pridobivam podatke..."
,
"upload"
:
"Naloži"
,
"preview"
:
"Predogled"
,
"copy-link"
:
"Kopiraj povezavo"
,
...
...
@@ -129,7 +129,7 @@
}
},
"memo-list"
:
{
"fetching-data"
:
"pridobivam podatke..."
"fetching-data"
:
"pridobivam podatke..."
,
"fetch-more"
:
"Kliknite tu da pridobite še več"
},
"shortcut-list"
:
{
...
...
web/src/types/i18n.d.ts
View file @
0cddb358
type
Locale
=
"en"
|
"zh"
|
"vi"
|
"fr"
|
"nl"
|
"sv"
|
"de"
|
"es"
|
"uk"
|
"ru"
|
"it"
|
"hant"
|
"tr"
|
"ko"
;
type
Locale
=
"en"
|
"zh"
|
"vi"
|
"fr"
|
"nl"
|
"sv"
|
"de"
|
"es"
|
"uk"
|
"ru"
|
"it"
|
"hant"
|
"tr"
|
"ko"
|
"sl"
;
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