Update lang.rs
This commit is contained in:
parent
a470bf127e
commit
15e8f6ffb7
@ -33,6 +33,7 @@ mod tw;
|
|||||||
mod ua;
|
mod ua;
|
||||||
mod vn;
|
mod vn;
|
||||||
mod lt;
|
mod lt;
|
||||||
|
mod ar;
|
||||||
|
|
||||||
pub const LANGS: &[(&str, &str)] = &[
|
pub const LANGS: &[(&str, &str)] = &[
|
||||||
("en", "English"),
|
("en", "English"),
|
||||||
@ -133,6 +134,7 @@ pub fn translate_locale(name: String, locale: &str) -> String {
|
|||||||
"sl" => sl::T.deref(),
|
"sl" => sl::T.deref(),
|
||||||
"ro" => ro::T.deref(),
|
"ro" => ro::T.deref(),
|
||||||
"lt" => lt::T.deref(),
|
"lt" => lt::T.deref(),
|
||||||
|
"ar" => ar::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