You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: i18n-embed/CHANGELOG.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,12 +37,12 @@
37
37
+ New `autoreload` crate feature.
38
38
+`RustEmbedNotifyAssets` - A wrapper for `rust_embed::RustEmbed` that supports notifications when files have changed on the file system.
39
39
+`FileSystemAssets::notify_changes_enabled()` - A new method to enable watching for changes.
40
-
+`AssetsMultiplexor` - A way to multiplex implmentations of [`I18nAssets`] where assets are multiplexed by a priority.
40
+
+`AssetsMultiplexor` - A way to multiplex implementations of [`I18nAssets`] where assets are multiplexed by a priority.
41
41
42
42
### Breaking
43
43
44
44
+ Modified `I18nAssets` trait.
45
-
+ Support multiple files referencing the same asset (to allow a heirachy of overrides).
45
+
+ Support multiple files referencing the same asset (to allow a hierarchy of overrides).
46
46
+ Support for subscribing to updates to assets.
47
47
+ Remove deprecated methods for `LanguageConfig`, Please use `lang(...).get_attr_args(...)` etc instead.
48
48
+`LanguageConfig::get_lang()`
@@ -92,7 +92,7 @@
92
92
93
93
- A new `LanguageLoader::load_available_languages()` method to load all available languages.
94
94
- A new `FluentLanguageLoader::select_languages()` method (renamed `FluentLanguageLoader::lang()`).
95
-
- A new `FluentLanguageLoader::select_languages_negotiate()` method to select languages based on a negotiation strategy using the available languges.
95
+
- A new `FluentLanguageLoader::select_languages_negotiate()` method to select languages based on a negotiation strategy using the available languages.
96
96
97
97
### Deprecated
98
98
@@ -189,7 +189,7 @@ done in #84.
189
189
190
190
### Internal Changes
191
191
192
-
- Updated `FluentLanguageLoader` to use a thread safe [IntlLangMemoizer](https://docs.rs/intl-memoizer/0.5.1/intl_memoizer/concurrent/struct.IntlLangMemoizer.html) as per the notes on [FluentBundle's concurrency](https://docs.rs/fluent-bundle/0.15.0/fluent_bundle/bundle/struct.FluentBundle.html#concurrency). This was required to solve a compilation error in `i18n-embed-fl` and may also fix problems for other downstream users who were expecting `FluentLangaugeLoader` to be `Send + Sync`. It might impact performance for those who are not using this in multi-threaded context, please report this, and in which case support for switching the `IntlLangMemoizer` added.
192
+
- Updated `FluentLanguageLoader` to use a thread safe [IntlLangMemoizer](https://docs.rs/intl-memoizer/0.5.1/intl_memoizer/concurrent/struct.IntlLangMemoizer.html) as per the notes on [FluentBundle's concurrency](https://docs.rs/fluent-bundle/0.15.0/fluent_bundle/bundle/struct.FluentBundle.html#concurrency). This was required to solve a compilation error in `i18n-embed-fl` and may also fix problems for other downstream users who were expecting `FluentLanguageLoader` to be `Send + Sync`. It might impact performance for those who are not using this in multi-threaded context, please report this, and in which case support for switching the `IntlLangMemoizer` added.
193
193
194
194
## v0.11.0
195
195
@@ -205,7 +205,7 @@ done in #84.
205
205
206
206
### New Features
207
207
208
-
- New `LanguageRequester::add_listener_ref()` method to add permenant listeners of type `&dyn Localizer`. This also affects `DesktopLanguageRequester` and `WebLanguageRequester`.
208
+
- New `LanguageRequester::add_listener_ref()` method to add permanent listeners of type `&dyn Localizer`. This also affects `DesktopLanguageRequester` and `WebLanguageRequester`.
209
209
210
210
### Internal Changes
211
211
@@ -265,7 +265,7 @@ done in #84.
265
265
266
266
## v0.8.6
267
267
268
-
- Update documentation and example to more accurately reflect the current state of `LangaugeRequester::poll()` on various systems.
268
+
- Update documentation and example to more accurately reflect the current state of `LanguageRequester::poll()` on various systems.
269
269
270
270
## v0.8.5
271
271
@@ -288,7 +288,7 @@ done in #84.
288
288
289
289
### New Features
290
290
291
-
- Added a new `with_mesage_iter()` method to `FluentLanguageLoader`, to allow iterating over the messages available for a particular language.
291
+
- Added a new `with_message_iter()` method to `FluentLanguageLoader`, to allow iterating over the messages available for a particular language.
292
292
- Added `Default` implementation for `WebLanguageRequester`.
293
293
294
294
## v0.8.2
@@ -316,7 +316,7 @@ Changes to support the new `i18n-embed-fl` crate's `fl!()` macro, and some major
316
316
317
317
- Removed `I18nEmbed` trait, and derive macro, it was replaced with the new `I18nAssets` trait.
318
318
- Clarified the `domain` and `module` arguments/variable inputs to `FluentLanguageLoader` and `GettextLanguageLoader`, and in the `LanguageLoader` trait with some renaming.
319
-
- Removed a bunch of unecessary lifetimes, and `'static` bounds on types, methods and arguments.
319
+
- Removed a bunch of unnecessary lifetimes, and `'static` bounds on types, methods and arguments.
320
320
-`LanguageRequester::current_languages()`'s return type now uses `String` as the `HashMap` key instead of `&'static str`.
321
321
-`available_languages()` implementation moved from `I18nEmbed` to `LanguageLoader`.
0 commit comments