Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

chore: add Slovenian locale (#1437)

boojack0cddb358c13d
diff --git a/api/user_setting.go b/api/user_setting.go
index 376ffde4d..5bcac97d5 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 969d29139..f79f4a282 100644
--- a/web/src/components/LocaleSelect.tsx
+++ b/web/src/components/LocaleSelect.tsx
@@ -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>
);
};
diff --git a/web/src/i18n.ts b/web/src/i18n.ts
index 700bd2aa1..ca6c4a49d 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 8d7332410..635f21ba7 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 c529d3175..7f5416987 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";