use leptos::*; use leptos_use::docs::demo_or_body; use leptos_use::use_locale; use unic_langid::langid_slice; #[component] fn Demo() -> impl IntoView { let locale = use_locale(langid_slice!["en", "de", "fr"]); view! {
Locale: {move || locale.get().to_string()}