Add esperanto translation

This commit is contained in:
Victor B
2022-02-19 20:01:28 +01:00
parent 1c7f9b6f45
commit 3b3958ed20
16 changed files with 391 additions and 13 deletions

View File

@@ -8,6 +8,7 @@ mod it;
mod tw;
mod de;
mod ru;
mod eo;
#[cfg(not(any(target_os = "android", target_os = "ios")))]
pub fn translate(name: String) -> String {
@@ -34,6 +35,7 @@ pub fn translate_locale(name: String, locale: &str) -> String {
"tw" => tw::T.deref(),
"de" => de::T.deref(),
"ru" => ru::T.deref(),
"eo" => eo::T.deref(),
_ => en::T.deref(),
};
if let Some(v) = m.get(&name as &str) {