Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No default features #227

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# CHANGELOG

## Unreleased - 0.2.0

### Breaking changes

- The feature `json` is not enabled by default anymore. Now leptos-fluent
does not includes features by default, so you don't need to use
`default-features = false` in your `Cargo.toml` file.

## 2024-08-17 - [0.1.17]

### New features
Expand Down
2 changes: 1 addition & 1 deletion README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 6 additions & 10 deletions book/src/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,17 @@ fluent-templates = "0.10"

```toml
[dependencies]
leptos-fluent = { version = "0.1", default-features = false }
leptos-fluent = "0.1"
fluent-templates = { version = "0.10", default-features = false, features = [
"macros",
"walkdir"
] }
```

- Using `default-features = false` for `leptos-fluent` the `json`
default feature will not be enabled, so the `languages` parameter
of [`leptos_fluent!`] macro will not be available.
- Using `default-features = false` and `features = ["macros", "walkdir"]`
for `fluent-templates` ensures that the dependency tree is the minimal
possible because more dependencies are shared between `leptos-fluent`
and `fluent-templates`.
Using `default-features = false` and `features = ["macros", "walkdir"]`
for `fluent-templates` ensures that the dependency tree is the minimal
possible because more dependencies are shared between `leptos-fluent`
and `fluent-templates`.

</details>

Expand Down Expand Up @@ -85,7 +82,7 @@ See the [GTK example](https://github.com/mondeja/leptos-fluent/tree/master/examp
- **Axum integration**: `axum`
- **Nightly toolchain**: `nightly`
- **Desktop applications**: `system`
- **JSON languages file**: `json` (enabled by default)
- **JSON languages file**: `json`
- **YAML languages file**: `yaml`
- **JSON5 languages file**: `json5`
- **Tracing support**: `tracing`
Expand Down Expand Up @@ -156,6 +153,5 @@ See the [GTK example](https://github.com/mondeja/leptos-fluent/tree/master/examp
```

[`fluent-templates`]: https://github.com/XAMPPRocky/fluent-templates
[`leptos_fluent!`]: https://mondeja.github.io/leptos-fluent/leptos_fluent.html
[`cargo leptos`]: https://github.com/leptos-rs/cargo-leptos
[`tracing`]: https://docs.rs/tracing/latest/tracing
41 changes: 21 additions & 20 deletions book/src/languages.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,24 @@ leptos_fluent! {{
]
```

### Languages file format

In order to use a languages file, you must enable the feature for the file
format you want to use in the _Cargo.toml_ file:

```toml
[dependencies]
leptos-fluent = { version = "*", features = ["json5"] }
```

Available features for languages file formats are:

- `json`: JSON
- `yaml`: YAML
- `json5`: JSON5

### Languages file layout

The languages file must expose an array of arrays with the structure:

```json5
Expand All @@ -81,9 +99,9 @@ will be the same as in the file regardless of the alphabetical order
of the names.
```

The first in the languages file will used as the initial of the user when any
other initialization value is discovered. Use the same as the one configured
as `fallback_language` in `static_loader!`.
The first one in the languages file will used as the initial of the user when
no other initialization language is discovered. Use the same as the one
configured as `fallback_language` in `static_loader!`.

```rust
static_loader! {
Expand All @@ -110,22 +128,5 @@ pub fn App() -> impl IntoView {
]
```

### File format

By default, the `json` feature is enabled, which only allows to set the
languages file in JSON format. To use other formats, disable the feature
and enable another.

```toml
[dependencies]
leptos-fluent = { version = "*", default-features = false, features = ["json5"] }
```

Available features for languages file formats are:

- `json`: JSON (default)
- `yaml`: YAML
- `json5`: JSON5

[ISO 639-1 code]: https://en.wikipedia.org/wiki/ISO_639-1
[`leptos_fluent!`]: https://mondeja.github.io/leptos-fluent/leptos_fluent.html
56 changes: 5 additions & 51 deletions book/src/leptos_fluent.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,11 @@ leptos_fluent! {{
Path to a file containing the list of languages supported by the application.
Must be relative to the _Cargo.toml_ file.

```admonish tip
In order to use this parameter a languages file feature must be enabled.
See [**4. Languages**](https://mondeja.github.io/leptos-fluent/languages.html)
```

```rust
leptos_fluent! {{
locales: "./locales",
Expand All @@ -188,56 +193,6 @@ leptos_fluent! {{
}}
```

```admonish tip
See [**4. Languages**](https://mondeja.github.io/leptos-fluent/languages.html)
```

The languages file should contain an array of arrays where each inner array
contains a language identifier and a language name, respectively, at least.

The language identifier should be a valid language tag, such as `en-US`, `en`,
`es-ES`, etc. By default, the languages file should be a JSON with a `.json`
extension because the `json` feature is enabled. For example:

```json
[
["en-US", "English (United States)"],
["es-ES", "Español (España)"]
]
```

Set `default-features = false` and enable the `yaml` or the `json5` feature
to use a YAML or JSON5 files. For example:

```yaml
# locales/languages.yaml
- - en-US
- English (United States)
- - es-ES
- Español (España)
```

```json5
// locales/languages.json5
[
["en-US", "English (United States)"],
["es-ES", "Español (España)"],
]
```

Define a third element in the inner array with the direction of the language,
to use it in the [`<html dir="...">` attribute] (see [`sync_html_tag_dir`]).
For example:

```json
[
["en-US", "English (United States)", "ltr"],
["es-ES", "Español (España)", "auto"],
["ar", "العربية", "rtl"],
["it", "Italiano"]
]
```

### `check_translations`

Check the translations at compile time. It is useful to ensure that all
Expand Down Expand Up @@ -871,6 +826,5 @@ leptos_fluent! {{
[glob]: https://docs.rs/globwalk/latest/globwalk/fn.glob.html
[URL parameter]: https://developer.mozilla.org/docs/Web/API/URLSearchParams
[URL path]: https://developer.mozilla.org/docs/Web/API/URL/pathname
[`sync_html_tag_dir`]: #csr---sync_html_tag_dir
[cookie]: https://developer.mozilla.org/docs/Web/HTTP/Cookies
[Server function]: https://book.leptos.dev/server/25_server_functions.html
2 changes: 1 addition & 1 deletion examples/csr-complete/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ path = "src/lib.rs"

[dependencies]
leptos = { version = "0.6", features = ["csr"] }
leptos-fluent = { path = "../../leptos-fluent" }
leptos-fluent = { path = "../../leptos-fluent", features = ["json"] }
fluent-templates = { version = "0.10", default-features = false, features = [
"macros",
"walkdir"
Expand Down
2 changes: 1 addition & 1 deletion examples/csr-minimal/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ path = "src/lib.rs"

[dependencies]
leptos = { version = "0.6", features = ["csr"] }
leptos-fluent = { path = "../../leptos-fluent", default-features = false }
leptos-fluent = { path = "../../leptos-fluent" }
fluent-templates = { version = "0.10", default-features = false, features = [
"macros",
"walkdir"
Expand Down
4 changes: 1 addition & 3 deletions examples/ssr-hydrate-axum/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ leptos = "0.6"
leptos_meta = "0.6"
leptos_axum = { version = "0.6", optional = true }
leptos_router = "0.6"
leptos-fluent = { path = "../../leptos-fluent", features = [
"yaml"
], default-features = false }
leptos-fluent = { path = "../../leptos-fluent", features = ["yaml"] }
fluent-templates = { version = "0.10", default-features = false, features = [
"macros",
"walkdir"
Expand Down
2 changes: 1 addition & 1 deletion examples/system-gtk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = "2021"
[dependencies]
leptos = { version = "0.6", features = ["csr"] }
gtk = { version = "0.9", package = "gtk4" }
leptos-fluent = { path = "../../leptos-fluent", default-features = false, features = [
leptos-fluent = { path = "../../leptos-fluent", features = [
"system",
"tracing"
] }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub fn App() -> impl IntoView {
translations: [TRANSLATIONS],
locales: "../../../../examples/csr-minimal/locales",
#[cfg(all(not(target_os = "windows"), not(target_os = "macos")))]
languages: "../../../../examples/csr-complete/locales/languages.json",
cookie_name: "foo"
}};

view! { <p>Foo</p> }
Expand Down
2 changes: 1 addition & 1 deletion leptos-fluent/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ directories = { version = "5", optional = true }
tracing = { version = "0.1", optional = true }

[features]
default = ["json"]
default = []
system = [
"dep:current_locale",
"dep:directories",
Expand Down
2 changes: 1 addition & 1 deletion leptos-fluent/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion leptos-fluent/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@
//! - **Axum integration**: `axum`
//! - **Nightly toolchain**: `nightly`
//! - **Desktop applications**: `system`
//! - **JSON languages file**: `json` (enabled by default)
//! - **JSON languages file**: `json`
//! - **YAML languages file**: `yaml`
//! - **JSON5 languages file**: `json5`
//! - **Tracing support**: `tracing`
Expand Down Expand Up @@ -819,7 +819,7 @@
#[component(transparent)]
#[cfg(feature = "ssr")]
#[cfg_attr(feature = "tracing", tracing::instrument(level = "trace"))]
pub fn SsrHtmlTag() -> impl IntoView {

Check warning on line 822 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build example (ssr-hydrate-actix, nightly, ubuntu-latest)

use of deprecated function `__SsrHtmlTag`: The component SsrHtmlTag is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 822 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build example (ssr-hydrate-actix, stable, ubuntu-latest)

use of deprecated function `__SsrHtmlTag`: The component SsrHtmlTag is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 822 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build example (ssr-hydrate-axum, stable, ubuntu-latest)

use of deprecated function `__SsrHtmlTag`: The component SsrHtmlTag is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 822 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build example (ssr-hydrate-axum, nightly, ubuntu-latest)

use of deprecated function `__SsrHtmlTag`: The component SsrHtmlTag is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 822 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build example (ssr-hydrate-actix, nightly, macos-latest)

use of deprecated function `__SsrHtmlTag`: The component SsrHtmlTag is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 822 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build example (ssr-hydrate-actix, stable, macos-latest)

use of deprecated function `__SsrHtmlTag`: The component SsrHtmlTag is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 822 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build example (ssr-hydrate-axum, stable, macos-latest)

use of deprecated function `__SsrHtmlTag`: The component SsrHtmlTag is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 822 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build example (ssr-hydrate-axum, nightly, macos-latest)

use of deprecated function `__SsrHtmlTag`: The component SsrHtmlTag is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.
let lang = expect_i18n().language.get_untracked();
view! { <Html lang=lang.id.to_string() dir=lang.dir.as_str()/> }
}
Expand All @@ -846,7 +846,7 @@
#[component(transparent)]
#[cfg(not(feature = "ssr"))]
#[cfg_attr(feature = "tracing", tracing::instrument(level = "trace"))]
pub fn SsrHtmlTag() -> impl IntoView {}

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build example (csr-minimal, stable, ubuntu-latest)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build example (csr-complete, nightly, ubuntu-latest)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build example (csr-minimal, nightly, ubuntu-latest)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build example (csr-complete, stable, ubuntu-latest)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build example (ssr-hydrate-actix, nightly, ubuntu-latest)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / End to end tests (chrome, ubuntu-latest)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / End to end tests (chrome, ubuntu-latest)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build example (ssr-hydrate-actix, stable, ubuntu-latest)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / QA (check-all-features)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / QA (check-all-features)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / QA (check-all-features)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / QA (check-all-features)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / QA (check-all-features)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / QA (check-all-features)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / QA (check-all-features)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / QA (check-all-features)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / QA (check-all-features)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / QA (check-all-features)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / End to end tests (firefox, ubuntu-latest)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / End to end tests (firefox, ubuntu-latest)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build example (ssr-hydrate-axum, stable, ubuntu-latest)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build example (ssr-hydrate-axum, nightly, ubuntu-latest)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build example (system-gtk, stable, ubuntu-latest)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build example (system-gtk, nightly, ubuntu-latest)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / End to end tests (chrome, windows-latest)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / End to end tests (chrome, windows-latest)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / Unit tests (ubuntu-latest)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / Unit tests (ubuntu-latest)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / Unit tests (ubuntu-latest)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / Unit tests (ubuntu-latest)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / Unit tests (ubuntu-latest)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / Unit tests (ubuntu-latest)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / Unit tests (ubuntu-latest)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / Unit tests (ubuntu-latest)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / Unit tests (ubuntu-latest)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / Unit tests (ubuntu-latest)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / Unit tests (windows-latest)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / Unit tests (windows-latest)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / Unit tests (windows-latest)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build example (csr-complete, stable, macos-latest)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build example (csr-complete, nightly, macos-latest)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / Unit tests (macos-latest)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / Unit tests (macos-latest)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / Unit tests (macos-latest)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / Unit tests (macos-latest)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / Unit tests (macos-latest)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / Unit tests (macos-latest)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / Unit tests (macos-latest)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / Unit tests (macos-latest)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / Unit tests (macos-latest)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / Unit tests (macos-latest)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / End to end tests (firefox, windows-latest)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / End to end tests (firefox, windows-latest)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build example (csr-minimal, nightly, macos-latest)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build example (csr-minimal, stable, macos-latest)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build example (ssr-hydrate-actix, nightly, macos-latest)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / End to end tests (chrome, macos-latest)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / End to end tests (chrome, macos-latest)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build example (ssr-hydrate-actix, stable, macos-latest)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / QA (build-all-features)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / QA (build-all-features)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / QA (build-all-features)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / QA (build-all-features)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / QA (build-all-features)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / QA (build-all-features)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / QA (build-all-features)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / QA (build-all-features)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / QA (build-all-features)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / QA (build-all-features)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build example (ssr-hydrate-axum, stable, macos-latest)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build example (ssr-hydrate-axum, nightly, macos-latest)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build example (system-gtk, nightly, macos-latest)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

Check warning on line 849 in leptos-fluent/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build example (system-gtk, stable, macos-latest)

use of deprecated function `__SsrHtmlTag`: The component `SsrHtmlTag` is not needed anymore and will be removed in v0.2. The `sync_html_tag_lang` and `sync_html_tag_dir` parameters of the `leptos_fluent!` macro are enough to set the `lang` and `dir` attributes of the `<html>` tag on SSR.

/// Parameters passed to `leptos_fluent!` macro at creation of `i18n` context
#[derive(Clone, Debug)]
Expand Down
Loading