Unverified Commit 29b5c393 authored by _Jellen's avatar _Jellen Committed by GitHub

feat: add Korean translation (#1127)

added Korean translation
parent b8cc0b12
......@@ -36,7 +36,7 @@ func (key UserSettingKey) String() string {
}
var (
UserSettingLocaleValue = []string{"en", "zh", "vi", "fr", "nl", "sv", "de", "es", "uk", "ru", "it", "hant"}
UserSettingLocaleValue = []string{"en", "zh", "vi", "fr", "nl", "sv", "de", "es", "uk", "ru", "it", "hant", "ko"}
UserSettingAppearanceValue = []string{"system", "light", "dark"}
UserSettingMemoVisibilityValue = []Visibility{Private, Protected, Public}
UserSettingMemoDisplayTsOptionKeyValue = []string{"created_ts", "updated_ts"}
......
......@@ -34,6 +34,7 @@ const LocaleSelect: FC<Props> = (props: Props) => {
<Option value="ru">Русский</Option>
<Option value="it">Italiano</Option>
<Option value="hant">繁體中文</Option>
<Option value="ko">한국어</Option>
</Select>
);
};
......
......@@ -12,6 +12,7 @@ import ukLocale from "./locales/uk.json";
import ruLocale from "./locales/ru.json";
import itLocale from "./locales/it.json";
import hantLocale from "./locales/zh-Hant.json";
import koLocale from "./locales/ko.json";
i18n.use(initReactI18next).init({
resources: {
......@@ -51,6 +52,9 @@ i18n.use(initReactI18next).init({
hant: {
translation: hantLocale,
},
ko: {
translation: koLocale,
},
},
lng: "en",
fallbackLng: "en",
......
This diff is collapsed.
type Locale = "en" | "zh" | "vi" | "fr" | "nl" | "sv" | "de" | "es" | "uk" | "ru" | "it" | "hant";
type Locale = "en" | "zh" | "vi" | "fr" | "nl" | "sv" | "de" | "es" | "uk" | "ru" | "it" | "hant" | "ko";
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