Serbian language added
This commit is contained in:
parent
206e20cfe3
commit
8a4f4449c8
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user