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 {
}
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"}
UserSettingMemoVisibilityValue = []Visibility{Private, Protected, Public}
UserSettingMemoDisplayTsOptionKeyValue = []string{"created_ts", "updated_ts"}
......
......@@ -30,6 +30,7 @@ const LocaleSelect: FC<Props> = (props: Props) => {
<Option value="sv">Svenska</Option>
<Option value="de">German</Option>
<Option value="es">Español</Option>
<Option value="uk">Українська</Option>
</Select>
);
};
......
......@@ -8,6 +8,7 @@ import nlLocale from "./locales/nl.json";
import svLocale from "./locales/sv.json";
import deLocale from "./locales/de.json";
import esLocale from "./locales/es.json";
import ukLocale from "./locales/uk.json";
i18n.use(initReactI18next).init({
resources: {
......@@ -35,6 +36,9 @@ i18n.use(initReactI18next).init({
es: {
translation: esLocale,
},
uk: {
translation: ukLocale,
},
},
lng: "nl",
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