use *;
/// Builds a click handler that switches the supplied i18n
/// handle to the supplied locale.
///
/// # Arguments
///
/// - `I18n` - The i18n handle whose locale is switched on click.
/// - `String` - The locale tag to switch to.
///
/// # Returns
///
/// - `Option<Rc<dyn Fn(Event)>>` - A click handler that switches the locale.
pub
/// Returns the translated message for `key` on the supplied
/// handle, falling back to the key itself if missing.
///
/// # Arguments
///
/// - `I18n` - The i18n handle to translate with.
/// - `&'static str` - The translation key to look up.
///
/// # Returns
///
/// - `String` - The translated message, or the key itself when missing.
pub