Add Slovenian translation

Signed-off-by: Jernej Simončič <jernej|s-gitstuff@eternallybored.org>
This commit is contained in:
Jernej Simončič
2023-01-05 13:01:11 +01:00
parent 0f207bd38d
commit db5656b569
2 changed files with 412 additions and 0 deletions

View File

@@ -30,6 +30,7 @@ mod sv;
mod sq;
mod sr;
mod th;
mod sl;
lazy_static::lazy_static! {
pub static ref LANGS: Value =
@@ -63,6 +64,7 @@ lazy_static::lazy_static! {
("sq", "Shqip"),
("sr", "Srpski"),
("th", "ภาษาไทย"),
("sl", "Slovenščina"),
]);
}
@@ -120,6 +122,7 @@ pub fn translate_locale(name: String, locale: &str) -> String {
"sq" => sq::T.deref(),
"sr" => sr::T.deref(),
"th" => th::T.deref(),
"sl" => sl::T.deref(),
_ => en::T.deref(),
};
if let Some(v) = m.get(&name as &str) {