Skip to content

Commit

Permalink
Don't require to install unic-langid (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
mondeja authored Mar 7, 2024
1 parent a37feec commit 9bc8470
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 11 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 2024-03-07 - v0.0.17

- Don't require to install `unic_langid`.

## 2024-03-07 - v0.0.16

- Needs `fluent-templates` >= v0.9.0.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Internationalization framework for [Leptos] using [fluent-templates].
## Installation

```sh
cargo add leptos leptos-fluent fluent-templates unic-langid
cargo add leptos leptos-fluent fluent-templates
```

## Usage
Expand Down
1 change: 0 additions & 1 deletion examples/complete/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ path = "src/lib.rs"
leptos = {version = "0.6.5", features = ["csr"]}
leptos-fluent = { path = "../../leptos-fluent" }
fluent-templates = "0.9"
unic-langid = "0.9"
log = "0"
console_error_panic_hook = "0"
console_log = "1"
Expand Down
1 change: 0 additions & 1 deletion examples/minimal/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ path = "src/lib.rs"
leptos = {version = "0.6.5", features = ["csr"]}
leptos-fluent = { path = "../../leptos-fluent" }
fluent-templates = "0.9"
unic-langid = "0.9"
log = "0"
console_error_panic_hook = "0"
console_log = "1"
Expand Down
5 changes: 1 addition & 4 deletions leptos-fluent-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "leptos-fluent-macros"
description = "Macros for leptos-fluent"
edition = "2021"
version = "0.0.16"
version = "0.0.17"
license = "MIT"
documentation = "https://docs.rs/leptos-fluent"
repository = "https://github.com/mondeja/leptos-fluent"
Expand All @@ -15,7 +15,4 @@ proc-macro2 = "1"
quote = "1"
syn = "2"
serde_json = "1"
unic-langid-impl = "0"
once_cell = "1"
unic-langid = "0.9"
web-sys = { version = ">=0.1", features = ["Storage", "Navigator"] }
2 changes: 1 addition & 1 deletion leptos-fluent-macros/src/languages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ pub(crate) fn generate_code_for_static_language(
format!(
concat!(
"&::leptos_fluent::Language{{",
"id: ::unic_langid::langid!(\"{}\"),",
"id: ::fluent_templates::loader::langid!(\"{}\"),",
"name: \"{}\"",
"}}",
),
Expand Down
5 changes: 2 additions & 3 deletions leptos-fluent/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@
name = "leptos-fluent"
description = "Fluent framework for internationalization of Leptos applications"
edition = "2021"
version = "0.0.16"
version = "0.0.17"
license = "MIT"
documentation = "https://docs.rs/leptos-fluent"
repository = "https://github.com/mondeja/leptos-fluent"

[dependencies]
leptos-fluent-macros = "0.0.16"
leptos-fluent-macros = "0.0.17"
fluent-templates = "0.9"
leptos = ">=0.1"
leptos_router = ">=0.1"
unic-langid-impl = "0.9"
once_cell = "1"
web-sys = { version = ">=0.1", features = ["Storage", "Navigator"] }

0 comments on commit 9bc8470

Please sign in to comment.