🎨 Nueov enfoque para las funciones de traducción
This commit is contained in:
parent
7691bf4b2f
commit
71b0b0889d
11 changed files with 110 additions and 93 deletions
|
|
@ -2,7 +2,7 @@ use pagetop::prelude::*;
|
|||
|
||||
define_handle!(MODULE_NODE);
|
||||
|
||||
define_locale!("src/locales");
|
||||
define_locale!(LOCALE_NODE, "src/locales");
|
||||
|
||||
//mod entity;
|
||||
mod migration;
|
||||
|
|
@ -15,11 +15,11 @@ impl ModuleTrait for Node {
|
|||
}
|
||||
|
||||
fn name(&self) -> String {
|
||||
l("module_name")
|
||||
t("module_name", Locale::From(&LOCALE_NODE))
|
||||
}
|
||||
|
||||
fn description(&self) -> Option<String> {
|
||||
Some(l("module_description"))
|
||||
Some(t("module_description", Locale::From(&LOCALE_NODE)))
|
||||
}
|
||||
|
||||
fn configure_service(&self, cfg: &mut server::web::ServiceConfig) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue