Skip to content
Merged
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
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.

4 changes: 2 additions & 2 deletions examples/csr-complete/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@ fn LanguageSelector() -> impl IntoView {
<li>
<p>
{move_tr!(
"html-tag-lang-is", { "lang" => expect_i18n().language.read().id.to_string() }
"html-tag-lang-is", { "lang" => expect_i18n().language.read_untracked().id.to_string() }
)}
</p>
<p>{move_tr!("add-es-en-url-param")}</p>
</li>
<li>
<p>
{move_tr!(
"html-tag-dir-is", { "dir" => expect_i18n().language.read().dir.to_string() }
"html-tag-dir-is", { "dir" => expect_i18n().language.read_untracked().dir.to_string() }
)}
</p>
</li>
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 @@ -208,7 +208,7 @@
//! fn LanguageSelector() -> impl IntoView {
//! // `expect_i18n()` to get the i18n context
//! // `i18n.languages` exposes a static array with the available languages
//! // `i18n.language.read()` to get the current language
//! // `i18n.language.get()` to get the current language
//! // `lang.activate()` or `i18n.language.set(lang)` to set the current language
//! // `lang.is_active()` to check if a language is the current selected one
//!
Expand Down
Loading