Update lang.rs
This commit is contained in:
parent
ccd874ff80
commit
95f70e7bb7
@ -26,6 +26,7 @@ mod ua;
|
|||||||
mod fa;
|
mod fa;
|
||||||
mod ca;
|
mod ca;
|
||||||
mod gr;
|
mod gr;
|
||||||
|
mod sv;
|
||||||
|
|
||||||
lazy_static::lazy_static! {
|
lazy_static::lazy_static! {
|
||||||
pub static ref LANGS: Value =
|
pub static ref LANGS: Value =
|
||||||
@ -55,6 +56,7 @@ lazy_static::lazy_static! {
|
|||||||
("fa", "فارسی"),
|
("fa", "فارسی"),
|
||||||
("ca", "Català"),
|
("ca", "Català"),
|
||||||
("gr", "Ελληνικά"),
|
("gr", "Ελληνικά"),
|
||||||
|
("sv", "Svenska"),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -108,6 +110,7 @@ pub fn translate_locale(name: String, locale: &str) -> String {
|
|||||||
"fa" => fa::T.deref(),
|
"fa" => fa::T.deref(),
|
||||||
"ca" => ca::T.deref(),
|
"ca" => ca::T.deref(),
|
||||||
"gr" => gr::T.deref(),
|
"gr" => gr::T.deref(),
|
||||||
|
"gr" => sv::T.deref(),
|
||||||
_ => en::T.deref(),
|
_ => en::T.deref(),
|
||||||
};
|
};
|
||||||
if let Some(v) = m.get(&name as &str) {
|
if let Some(v) = m.get(&name as &str) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user