Skip to content

Commit

Permalink
Merge pull request #192 from Baptistemontan/fix_missing_static_lifetime
Browse files Browse the repository at this point in the history
Fixed missing static lifetime
  • Loading branch information
Baptistemontan authored Feb 12, 2025
2 parents cf350c5 + 5e28140 commit d99b3eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions leptos_i18n_macro/src/load_locales/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ fn load_locales_inner(
/// Create and provide a i18n context for all children components, directly accessible with `use_i18n`.
#[l_i18n_crate::reexports::leptos::component]
#[allow(non_snake_case)]
pub fn I18nContextProvider<Chil: IntoView>(
pub fn I18nContextProvider<Chil: IntoView + 'static>(
/// If the "lang" attribute should be set on the root `<html>` element. (default to true)
#[prop(optional)]
set_lang_attr_on_html: Option<bool>,
Expand Down Expand Up @@ -221,7 +221,7 @@ fn load_locales_inner(
/// Create and provide a subcontext for all children components, directly accessible with `use_i18n`.
#[l_i18n_crate::reexports::leptos::component]
#[allow(non_snake_case)]
pub fn I18nSubContextProvider<Chil: IntoView>(
pub fn I18nSubContextProvider<Chil: IntoView + 'static>(
children: TypedChildren<Chil>,
/// The initial locale for this subcontext.
/// Default to the locale set in the cookie if set and some,
Expand Down

0 comments on commit d99b3eb

Please sign in to comment.