Skip to main content

Crate es_fluent_manager_macros

Crate es_fluent_manager_macros 

Source
Expand description

§es-fluent-manager-macros

Codecov: es-fluent-manager-macros crates.io: es-fluent-manager-macros

Compile-time module registration and Bevy text macros shared by the concrete es-fluent managers. Applications use define_i18n_module! from the embedded or Bevy manager’s default macros feature, or the Dioxus manager’s unconditional re-export. Depend on this crate directly when implementing a custom manager macro integration.

Requires Rust 1.99 or newer.

The macro call belongs in a library-reachable module so CLI inventory discovery and runtime registration use the same package owner. es-fluent-build tracks locale additions, removals, and renames for these compile-time macros. The maintained embedded module demonstrates the re-exported call; Bevy additionally re-exports BevyFluentText for localized components.

Macros§

define_bevy_i18n_module
Defines a Bevy i18n module.
define_dioxus_i18n_module
Defines a Dioxus i18n module.
define_embedded_i18n_module
Defines an embedded i18n module.

Derive Macros§

BevyFluentText
Registers a type for use with FluentText<T> in Bevy.