Unverified Commit 65e9fdea authored by Ivan's avatar Ivan Committed by GitHub

feat: add russian locale (#879)

parent 2b2792de
......@@ -36,7 +36,7 @@ func (key UserSettingKey) String() string {
}
var (
UserSettingLocaleValue = []string{"en", "zh", "vi", "fr", "nl", "sv", "de", "es", "uk"}
UserSettingLocaleValue = []string{"en", "zh", "vi", "fr", "nl", "sv", "de", "es", "uk", "ru"}
UserSettingAppearanceValue = []string{"system", "light", "dark"}
UserSettingMemoVisibilityValue = []Visibility{Private, Protected, Public}
UserSettingMemoDisplayTsOptionKeyValue = []string{"created_ts", "updated_ts"}
......
......@@ -31,6 +31,7 @@ const LocaleSelect: FC<Props> = (props: Props) => {
<Option value="de">German</Option>
<Option value="es">Español</Option>
<Option value="uk">Українська</Option>
<Option value="ru">Русский</Option>
</Select>
);
};
......
......@@ -9,6 +9,7 @@ import svLocale from "./locales/sv.json";
import deLocale from "./locales/de.json";
import esLocale from "./locales/es.json";
import ukLocale from "./locales/uk.json";
import ruLocale from "./locales/ru.json";
i18n.use(initReactI18next).init({
resources: {
......@@ -39,6 +40,9 @@ i18n.use(initReactI18next).init({
uk: {
translation: ukLocale,
},
ru: {
translation: ruLocale,
},
},
lng: "nl",
fallbackLng: "en",
......
This diff is collapsed.
type Locale = "en" | "zh" | "vi" | "fr" | "nl" | "sv" | "de" | "es" | "uk";
type Locale = "en" | "zh" | "vi" | "fr" | "nl" | "sv" | "de" | "es" | "uk" | "ru";
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