Update lang.rs to add Korean language

Signed-off-by: kordood <gigacms@gmail.com>
This commit is contained in:
kordood 2022-08-16 10:55:24 +09:00
parent 9fbb114301
commit bb99dcab6b

View File

@ -13,6 +13,7 @@ mod hu;
mod id;
mod it;
mod ja;
mod ko;
mod pl;
mod ptbr;
mod ru;
@ -43,6 +44,7 @@ lazy_static::lazy_static! {
("vn", "Tiếng Việt"),
("pl", "Polski"),
("ja", "日本語"),
("ko", "한국어"),
]);
}
@ -90,6 +92,7 @@ pub fn translate_locale(name: String, locale: &str) -> String {
"vn" => vn::T.deref(),
"pl" => pl::T.deref(),
"ja" => ja::T.deref(),
"ja" => ko::T.deref(),
_ => en::T.deref(),
};
if let Some(v) = m.get(&name as &str) {