add romanian language

This commit is contained in:
Mălina-Ioana Popa
2023-01-24 16:59:31 +01:00
parent 1f4d45edaf
commit 4ee0891030
2 changed files with 404 additions and 0 deletions

View File

@@ -16,6 +16,7 @@ mod ja;
mod ko;
mod pl;
mod ptbr;
mod ro;
mod ru;
mod sk;
mod tr;
@@ -57,6 +58,7 @@ lazy_static::lazy_static! {
("ca", "Català"),
("gr", "Ελληνικά"),
("sv", "Svenska"),
("ro", "Română"),
]);
}
@@ -111,6 +113,7 @@ pub fn translate_locale(name: String, locale: &str) -> String {
"ca" => ca::T.deref(),
"gr" => gr::T.deref(),
"sv" => sv::T.deref(),
"ro" => ro::T.deref(),
_ => en::T.deref(),
};
if let Some(v) = m.get(&name as &str) {