🧑‍💻 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

@ -13,8 +13,8 @@ pub enum InputType {
Url,
}
type InputLabel = OneComponent<Text>;
type InputHelpText = OneComponent<Text>;
type InputLabel = OneComponent<L10n>;
type InputHelpText = OneComponent<L10n>;
#[rustfmt::skip]
#[derive(Default)]
@ -206,7 +206,7 @@ impl Input {
}
#[fn_builder]
pub fn alter_label(&mut self, label: Text) -> &mut Self {
pub fn alter_label(&mut self, label: L10n) -> &mut Self {
self.label.set(label);
self
}
@ -281,7 +281,7 @@ impl Input {
}
#[fn_builder]
pub fn alter_help_text(&mut self, help_text: Text) -> &mut Self {
pub fn alter_help_text(&mut self, help_text: L10n) -> &mut Self {
self.help_text.set(help_text);
self
}