use_share_i18n

Function use_share_i18n 

Source
pub fn use_share_i18n(i18n: impl FnOnce() -> I18n)
Expand description

Provide an existing I18n to descendant components. This is useful for sharing the same global state across different parts of the component tree or across multiple windows.