yew_translator 1.0.1

A i18n implementation for yew using string templaters.
Documentation
1
2
3
4
5
6
7
8
use super::I18nHandler;
use yew::{hook, use_context};

/// Hook to use the I18nHandler.
#[hook]
pub fn use_translation() -> I18nHandler {
    use_context::<I18nHandler>().expect("No I18n handle context provided")
}