diff --git a/api/user_setting.go b/api/user_setting.go index 376ffde4..5bcac97d 100644 --- a/api/user_setting.go +++ b/api/user_setting.go @@ -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} diff --git a/web/src/components/LocaleSelect.tsx b/web/src/components/LocaleSelect.tsx index 969d2913..f79f4a28 100644 --- a/web/src/components/LocaleSelect.tsx +++ b/web/src/components/LocaleSelect.tsx @@ -36,6 +36,7 @@ const LocaleSelect: FC = (props: Props) => { + ); }; diff --git a/web/src/i18n.ts b/web/src/i18n.ts index 700bd2aa..ca6c4a49 100644 --- a/web/src/i18n.ts +++ b/web/src/i18n.ts @@ -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", }); diff --git a/web/src/locales/sl.json b/web/src/locales/sl.json index 8d733241..635f21ba 100644 --- a/web/src/locales/sl.json +++ b/web/src/locales/sl.json @@ -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": { diff --git a/web/src/types/i18n.d.ts b/web/src/types/i18n.d.ts index c529d317..7f541698 100644 --- a/web/src/types/i18n.d.ts +++ b/web/src/types/i18n.d.ts @@ -1 +1 @@ -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";