Translate UI to Portuguese (Brazil)

Signed-off-by: Mateus Auler <mateusauler@protonmail.com>
This commit is contained in:
Mateus Auler
2022-04-05 19:04:41 -03:00
parent 6d122d8aef
commit a29de132a3
2 changed files with 271 additions and 0 deletions

View File

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