Unverified Commit c160bed4 authored by Taras's avatar Taras Committed by GitHub

fead: add ukrainian locale (#864)

parent afc97094
...@@ -36,7 +36,7 @@ func (key UserSettingKey) String() string { ...@@ -36,7 +36,7 @@ func (key UserSettingKey) String() string {
} }
var ( var (
UserSettingLocaleValue = []string{"en", "zh", "vi", "fr", "nl", "sv", "de", "es"} UserSettingLocaleValue = []string{"en", "zh", "vi", "fr", "nl", "sv", "de", "es", "uk"}
UserSettingAppearanceValue = []string{"system", "light", "dark"} UserSettingAppearanceValue = []string{"system", "light", "dark"}
UserSettingMemoVisibilityValue = []Visibility{Private, Protected, Public} UserSettingMemoVisibilityValue = []Visibility{Private, Protected, Public}
UserSettingMemoDisplayTsOptionKeyValue = []string{"created_ts", "updated_ts"} UserSettingMemoDisplayTsOptionKeyValue = []string{"created_ts", "updated_ts"}
......
...@@ -30,6 +30,7 @@ const LocaleSelect: FC<Props> = (props: Props) => { ...@@ -30,6 +30,7 @@ const LocaleSelect: FC<Props> = (props: Props) => {
<Option value="sv">Svenska</Option> <Option value="sv">Svenska</Option>
<Option value="de">German</Option> <Option value="de">German</Option>
<Option value="es">Español</Option> <Option value="es">Español</Option>
<Option value="uk">Українська</Option>
</Select> </Select>
); );
}; };
......
...@@ -8,6 +8,7 @@ import nlLocale from "./locales/nl.json"; ...@@ -8,6 +8,7 @@ import nlLocale from "./locales/nl.json";
import svLocale from "./locales/sv.json"; import svLocale from "./locales/sv.json";
import deLocale from "./locales/de.json"; import deLocale from "./locales/de.json";
import esLocale from "./locales/es.json"; import esLocale from "./locales/es.json";
import ukLocale from "./locales/uk.json";
i18n.use(initReactI18next).init({ i18n.use(initReactI18next).init({
resources: { resources: {
...@@ -35,6 +36,9 @@ i18n.use(initReactI18next).init({ ...@@ -35,6 +36,9 @@ i18n.use(initReactI18next).init({
es: { es: {
translation: esLocale, translation: esLocale,
}, },
uk: {
translation: ukLocale,
},
}, },
lng: "nl", lng: "nl",
fallbackLng: "en", fallbackLng: "en",
......
This diff is collapsed.
type Locale = "en" | "zh" | "vi" | "fr" | "nl" | "sv" | "de" | "es"; type Locale = "en" | "zh" | "vi" | "fr" | "nl" | "sv" | "de" | "es" | "uk";
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment