//! i18n — re-export of the foundation's internationalization system.
//!
//! Consumers of `rustelo_content` can use these types without depending on
//! `rustelo_core_lib` directly.  The full i18n system lives in
//! `rustelo_core_lib::i18n`; this module surfaces the subset relevant to
//! content rendering.

// WASM-only: reactive translation fetching
#[cfg(target_arch = "wasm32")]
pub use rustelo_core_lib::i18n::fetch_translations;
// Aliased in foundation to avoid ambiguity with routing's detect_language_from_path
pub use rustelo_core_lib::i18n::unified_detect_language_from_path as detect_language_from_path;
pub use rustelo_core_lib::i18n::{
    build_page_content, build_page_content_patterns, create_unified_i18n, get_default_language,
    get_supported_languages, is_supported_language, localize_url, t, t_for_language, I18nError,
    PageContentBuilder, PageTranslator, SsrTranslator, UnifiedI18n, UnifiedI18nContext,
    UnifiedLocalizationHelper,
};
#[cfg(any(target_arch = "wasm32", feature = "leptos-hydration"))]
pub use rustelo_core_lib::i18n::{provide_unified_i18n, use_unified_i18n};
pub use rustelo_core_lib::registration::get_parsed_ftl_for_language;
