Cargo Features
[dependencies]
leptos_i18n = { version = "0.5.3", default-features = false, features = ["cookie", "icu_compiled_data", "plurals", "format_datetime", "format_list", "format_nums", "actix", "axum", "hydrate", "csr", "ssr", "islands", "nightly", "dynamic_load", "show_keys_only", "suppress_key_warnings", "json_files", "json5_files", "yaml_files", "interpolate_display", "track_locale_files"] }
- default = cookie, icu_compiled_data, json_files
-
These default features are set whenever
leptos_i18n
is added without
somewhere in the dependency tree.default-features = false - icu_compiled_data default
-
Enables icu_compiled_data of leptos_i18n_macro, compiled_data of optional icu_calendar, optional icu_datetime, optional icu_decimal, optional icu_list, and optional icu_plurals
- plurals
-
Enables icu_plurals and icu_provider, plurals of leptos_i18n_macro
Affects
leptos_i18n::plurals
,formatting::get_plural_rules
,interpol_args::InterpolatePluralCount
,macro_helpers::get_plural_category_for
… - format_datetime
-
Enables icu_calendar, icu_datetime, and icu_provider, format_datetime of leptos_i18n_macro
- format_list
-
Enables icu_list and icu_provider, format_list of leptos_i18n_macro
- format_nums
-
Enables fixed_decimal ^0.5, icu_decimal, and icu_provider, format_nums of leptos_i18n_macro
- actix = ssr
-
Enables actix of leptos-use
- axum = ssr
-
Enables axum of leptos-use
- hydrate
-
Enables js-sys, serde-wasm-bindgen, hydrate of leptos and leptos_i18n_macro
Affects
fetch_translations::TranslationUnit.init_translations
,fetch_translations::init_translations
,locale_traits::Locale.init_translations
… - csr
-
Enables csr of leptos and leptos_i18n_macro
- ssr actix? axum?
-
Enables ssr of leptos, leptos-use, leptos_i18n_macro, and leptos_meta
Affects
macro_helpers::index_translations
,fetch_translations::TranslationUnit.register
,fetch_translations::LocaleServerFnOutput
… - islands
-
Enables islands of leptos and leptos_i18n_macro
- nightly
-
Enables nightly of leptos and leptos_i18n_macro
- dynamic_load
-
Enables noop-waker, async-once-cell and futures, dynamic_load of leptos_i18n_macro
Affects
fetch_translations::TranslationUnit.get_strings_lock
,fetch_translations::TranslationUnit.request_strings
,fetch_translations::LocaleServerFnOutput
,locale_traits::Locale.request_translations
,macro_helpers::future_renderer
,fetch_translations::TranslationUnit.init_translations
,fetch_translations::TranslationUnit.register
,fetch_translations::LocaleServerFnOutput
,fetch_translations::init_translations
,locale_traits::Locale.init_translations
… - show_keys_only
-
macro features
Enables show_keys_only of leptos_i18n_macro
- suppress_key_warnings
-
Enables suppress_key_warnings of leptos_i18n_macro
- json_files default
-
Enables json_files of leptos_i18n_macro
- json5_files
-
Enables json5_files of leptos_i18n_macro
- yaml_files
-
Enables yaml_files of leptos_i18n_macro
- interpolate_display
-
Enables interpolate_display of leptos_i18n_macro
- track_locale_files
-
Enables track_locale_files of leptos_i18n_macro