Skip to content

Commit

Permalink
v0.5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Baptistemontan committed Feb 12, 2025
1 parent aab926a commit 02da1c6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ members = [
exclude = ["examples", "tests"]

[workspace.package]
version = "0.5.5"
version = "0.5.6"

[workspace.dependencies]
# pin macro and parser version, those don't follow semver internally so a version missmatch with the main crate can cause problems.
leptos_i18n_macro = { path = "./leptos_i18n_macro", default-features = false, version = "=0.5.5" }
leptos_i18n_parser = { path = "./leptos_i18n_parser", default-features = false, version = "=0.5.5" }
leptos_i18n = { path = "./leptos_i18n", default-features = false, version = "0.5.5" }
leptos_i18n_router = { path = "./leptos_i18n_router", version = "0.5.5" }
leptos_i18n_macro = { path = "./leptos_i18n_macro", default-features = false, version = "=0.5.6" }
leptos_i18n_parser = { path = "./leptos_i18n_parser", default-features = false, version = "=0.5.6" }
leptos_i18n = { path = "./leptos_i18n", default-features = false, version = "0.5.6" }
leptos_i18n_router = { path = "./leptos_i18n_router", version = "0.5.6" }

# leptos
leptos = { version = "0.7.0", default-features = false }
Expand Down
3 changes: 2 additions & 1 deletion leptos_i18n_macro/src/load_locales/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,8 @@ fn create_locale_type_inner<const IS_TOP: bool>(

let request_translations = if cfg!(all(feature = "dynamic_load", feature = "csr")) {
let uri = translations_uri.expect("Missing URI"); // Already check before
#[allow(clippy::literal_string_with_formatting_args)]
// trigger with rustc 1.85, still in nightly tho
// #[allow(clippy::literal_string_with_formatting_args)]
let endpoint = uri.replace("{locale}", &locale.name.name).replace("{namespace}", namespace_name.unwrap_or(""));
quote! {
pub async fn __i18n_request_translations__() -> Result<l_i18n_crate::__private::fetch_translations::LocaleServerFnOutput, l_i18n_crate::reexports::leptos::server_fn::ServerFnError> {
Expand Down

0 comments on commit 02da1c6

Please sign in to comment.