Serbian language added

This commit is contained in:
Boban Jovanovic 2022-12-15 13:16:20 +01:00
parent 206e20cfe3
commit 8a4f4449c8

View File

@ -28,6 +28,7 @@ mod ca;
mod gr;
mod sv;
mod sq;
mod sr;
lazy_static::lazy_static! {
pub static ref LANGS: Value =
@ -59,6 +60,7 @@ lazy_static::lazy_static! {
("gr", "Ελληνικά"),
("sv", "Svenska"),
("sq", "Shqip"),
("sr", "Srpski"),
]);
}
@ -114,6 +116,7 @@ pub fn translate_locale(name: String, locale: &str) -> String {
"gr" => gr::T.deref(),
"sv" => sv::T.deref(),
"sq" => sq::T.deref(),
"sr" => sr::T.deref(),
_ => en::T.deref(),
};
if let Some(v) = m.get(&name as &str) {