🧑‍💻 Mejora y simplifica localización de módulos

This commit is contained in:
Manuel Cillero 2023-06-04 00:43:28 +02:00
parent d0add7c7ab
commit 520d3bb20b
21 changed files with 265 additions and 325 deletions

View file

@ -11,11 +11,11 @@ impl ModuleTrait for Menu {
MODULE_MENU
}
fn name(&self) -> String {
_t("module_name", Locale::From(&LOCALE_MENU))
fn name(&self) -> L10n {
L10n::t("module_name", &LOCALE_MENU)
}
fn description(&self) -> Option<String> {
Some(_t("module_description", Locale::From(&LOCALE_MENU)))
fn description(&self) -> L10n {
L10n::t("module_description", &LOCALE_MENU)
}
}