Releases: Baptistemontan/leptos_i18n
v0.5.5
Renamed the newly added translations-uri
option to translation-path
as a better suited name, yanked v0.5.4 due to the breaking change.
Full Changelog: v0.5.4...v0.5.5
v0.5.4
v0.5.4
This update brings dynamic loading of translations to CSR!
This feature was previously only available to SSR, it is now also usable for CSR apps with a few extra steps, you can learn more about it in the book
Full Changelog: v0.5.3...v0.5.4
v0.5.3
What's Changed
- Add
'static
bound to interpolation generics by @Baptistemontan in #178
Full Changelog: v0.5.2...v0.5.3
v0.5.2
What's Changed
- fix(docs): t_string_async macro example correct implementation by @sabify in #170
- chore(docs): proofread docs by @sabify in #171
- chore: upgrade
leptos-use
to version0.15.0
by @sabify in #172 - Fixed splat path construction by @Baptistemontan in #174
- Use default features when applicable for deps by @Baptistemontan in #176
Full Changelog: v0.5.1...v0.5.2
v0.5.1
Fixed a compilation errors with the dynamic_load
feature
Full Changelog: v0.5.0...v0.5.1
V0.5.0
v0.5.0
This release update the crate to Leptos v0.7, and also comes with new features:
Binary size improvement
This release brings two major features axed toward reducing binary sizes: lazy loading of translations and custom providers for ICU4X. You can find more informations about those two in the new Reduce binary size
section of the book.
JSON 5
Now support JSON5 files format with the "json5_files" feature.
Header options
Now take options to pass down to leptos-use
for header setter/getter.
Options builder
Options are now a builder instead of taking params one by one. This is done to later add more options without introducing breaking changes.
Routing crate split
The I18nRoute
is now not generated with the load_locales!
macro but lives in it's own crate: leptos_i18n_router
.
Allow constant access
You can now access non-interpolated values at constant time if you can also compute the locale at const time. see book
Others:
t_plural!
, see book- The addition of the
direction
method toLocale
, which gives you the script direction of the variant. - The html "dir" attribute is being set alongside the "lang" attribute, thanks @sabify
What's Changed
- Update to Leptos v0.7 by @Baptistemontan in #132
- Header options by @Baptistemontan in #138
- Use a builder for context options by @Baptistemontan in #140
- Removed some code dedup by @Baptistemontan in #141
- Reduce ICU footprint by @Baptistemontan in #144
- Dyn load by @Baptistemontan in #139
- Support for JSON5 file format by @Baptistemontan in #143
- split macro crate into parser and macro by @Baptistemontan in #145
- crate for build.rs utilities by @Baptistemontan in #146
t_plural!
by @Baptistemontan in #149- update t_string by @Baptistemontan in #154
- Simplify internal cfgs by @Baptistemontan in #155
- fix: change html direction based on selected language by @sabify in #156
- Allow use of ssr and hydrate cfg together without compile error by @Baptistemontan in #157
- fix: update deps and unpin was-bindgen over leptos and leptos-use by @sabify in #159
- Macro hygiene by @Baptistemontan in #160
- Fix locale resolution of the router not reflecting on the client by @Baptistemontan in #162
- Macros doctests by @Baptistemontan in #158
- Localize route paths by @Baptistemontan in #165
- Split routing utils in their own crate by @Baptistemontan in #169
New Contributors
Full Changelog: v0.4.0...v0.5.0
v0.5.0-rc1
v0.5.0-rc1
Other than the update to Leptos v0.7.0-rc1, this release is mostly bug fixes and internal refactors.
The new things are:
t_plural!
, see book- The addition of the
direction
method toLocale
, which gives you the script direction of the variant. - The html "dir" attribute is being set alongside the "lang" attribute, thanks @sabify
What's Changed
t_plural!
by @Baptistemontan in #149- update t_string by @Baptistemontan in #154
- Simplify internal cfgs by @Baptistemontan in #155
- fix: change html direction based on selected language by @sabify in #156
- Allow use of ssr and hydrate cfg together without compile error by @Baptistemontan in #157
- fix: update deps and unpin was-bindgen over leptos and leptos-use by @sabify in #159
- Macro hygiene by @Baptistemontan in #160
- Fix locale resolution of the router not reflecting on the client by @Baptistemontan in #162
- Macros doctests by @Baptistemontan in #158
New Contributors
Full Changelog: v0.5.0-gamma2...v0.5.0-rc1
v0.4.2
What's Changed
- fixed t_string and updated docs by @Baptistemontan in #153
Full Changelog: v0.4.1...v0.4.2
v0.5.0-gamma2
v0.5.0-gamma2
This new pre-release updates to leptos v0.5.0-rc0
and brings utilities for icu datagen with the new leptos_i18n_build
crate. See the datagen section
of the book.
What's Changed
- split macro crate into parser and macro by @Baptistemontan in #145
- crate for build.rs utilities by @Baptistemontan in #146
Full Changelog: v0.5.0-gamma...v0.5.0-gamma2
v0.5.0-gamma
Binary size improvement
This release brings two major features axed toward reducing binary sizes: lazy loading of translations and custom providers for ICU4X. You can find more informations about those two in the new Reduce binary size
section of the book.
JSON 5
Now support JSON5 files format with the "json5_files" feature.
Header options
Now take options to pass down to leptos-use
for header setter/getter.
Options builder
Options are now a builder instead of taking params one by one. This is done to later add more options without introducing breaking changes
Leptos -gamma2 release
This release works with the new -gamma2 release from Leptos
What's Changed
- Header options by @Baptistemontan in #138
- Use a builder for context options by @Baptistemontan in #140
- Removed some code dedup by @Baptistemontan in #141
- Reduce ICU footprint by @Baptistemontan in #144
- Dyn load by @Baptistemontan in #139
- Support for JSON5 file format by @Baptistemontan in #143
Full Changelog: v0.5.0-beta...v0.5.0-gamma