🚚 Rename Translate component to Fluent
This commit is contained in:
parent
d80a594cf5
commit
57e71a9399
2 changed files with 9 additions and 9 deletions
|
|
@ -157,8 +157,8 @@ impl ToString for FontSize {
|
|||
mod html;
|
||||
pub use html::Html;
|
||||
|
||||
mod translate;
|
||||
pub use translate::Translate;
|
||||
mod fluent;
|
||||
pub use fluent::Fluent;
|
||||
|
||||
mod wrapper;
|
||||
pub use wrapper::{Wrapper, WrapperType};
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
use crate::prelude::*;
|
||||
|
||||
#[derive(AutoDefault)]
|
||||
pub struct Translate(L10n);
|
||||
pub struct Fluent(L10n);
|
||||
|
||||
impl ComponentTrait for Translate {
|
||||
impl ComponentTrait for Fluent {
|
||||
fn new() -> Self {
|
||||
Translate::default()
|
||||
Fluent::default()
|
||||
}
|
||||
|
||||
fn prepare_component(&self, cx: &mut Context) -> PrepareMarkup {
|
||||
|
|
@ -13,12 +13,12 @@ impl ComponentTrait for Translate {
|
|||
}
|
||||
}
|
||||
|
||||
impl Translate {
|
||||
impl Fluent {
|
||||
pub fn with(l10n: L10n) -> Self {
|
||||
Translate(l10n)
|
||||
Fluent(l10n)
|
||||
}
|
||||
|
||||
// Translate BUILDER.
|
||||
// Fluent BUILDER.
|
||||
|
||||
#[fn_builder]
|
||||
pub fn alter_l10n(&mut self, l10n: L10n) -> &mut Self {
|
||||
|
|
@ -26,7 +26,7 @@ impl Translate {
|
|||
self
|
||||
}
|
||||
|
||||
// Translate GETTERS.
|
||||
// Fluent GETTERS.
|
||||
|
||||
pub fn l10n(&self) -> &L10n {
|
||||
&self.0
|
||||
Loading…
Add table
Add a link
Reference in a new issue