|
1 | 1 | # CHANGELOG
|
2 | 2 |
|
3 |
| -## Unreleased - [0.2.6] |
| 3 | +## 2025-03-07 - [0.2.6] |
4 | 4 |
|
5 | 5 | ### New features
|
6 | 6 |
|
7 | 7 | - Add a new parameter `fill_translations` to `leptos_fluent!` macro to add
|
8 | 8 | messages found in `tr!` and `move_tr!` macros to Fluent translations files.
|
| 9 | +- Add next new parameters to `leptos_fluent!` macro to use browser's session |
| 10 | + storage: |
| 11 | + - `sessionstorage_key` to set the key to store the current language. |
| 12 | + - `initial_language_from_sessionstorage` to set the initial language from |
| 13 | + session storage. |
| 14 | + - `set_language_to_sessionstorage` to set the current language to session |
| 15 | + storage. |
| 16 | + - `initial_language_from_sessionstorage_to_cookie` to set the initial |
| 17 | + language from session storage to a cookie. |
| 18 | + - `initial_language_from_sessionstorage_to_localstorage` to set the initial |
| 19 | + language from session storage to local storage. |
| 20 | + - `initial_language_from_sessionstorage_to_server_function` to set the |
| 21 | + initial language from session storage to a server function. |
| 22 | + - `initial_language_from_localstorage_to_sessionstorage` to set the initial |
| 23 | + language from local storage to session storage. |
| 24 | + - `initial_language_from_navigator_to_sessionstorage` to set the initial |
| 25 | + language from the browser `navigator.languages` to session storage. |
9 | 26 |
|
10 | 27 | ## 2025-03-06 - [0.2.5]
|
11 | 28 |
|
@@ -661,7 +678,7 @@ version to `0.1` during installation.
|
661 | 678 |
|
662 | 679 | - Added all ISO-639-1 and ISO-639-2 languages.
|
663 | 680 |
|
664 |
| -[0.2.6]: https://github.com/mondeja/leptos-fluent/compare/v0.2.5...master |
| 681 | +[0.2.6]: https://github.com/mondeja/leptos-fluent/compare/v0.2.5...v0.2.6 |
665 | 682 | [0.2.5]: https://github.com/mondeja/leptos-fluent/compare/v0.2.4...v0.2.5
|
666 | 683 | [0.2.4]: https://github.com/mondeja/leptos-fluent/compare/v0.2.3...v0.2.4
|
667 | 684 | [0.2.3]: https://github.com/mondeja/leptos-fluent/compare/v0.2.2...v0.2.3
|
|
0 commit comments