Skip to content

Commit

Permalink
docs: update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
Tienisto committed Oct 21, 2024
1 parent 1462961 commit 0efaed7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion slang/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
## 4.0.0

**Number formats and Lazy loading**
**DateFormat, NumberFormat and Lazy loading**

Format translations with `DateFormat` and `NumberFormat`: `Hello {name}, today is {today: yMd}. You have {money: currency(symbol: '€')}.`

On web, [Deferred loading](https://dart.dev/language/libraries#lazily-loading-a-library) is used to reduce initial load time.

- feat: add `DateFormat` and `NumberFormat` support
- feat: add `lazy: true` config which is enabled by default
- fix: `slang analyze` should not treat translations as unused if they are used in linked translations
- fix: `slang analyze` should detect missing enums
- fix: trim enum keys in compressed format while parsing (e.g. `"male, female": "..."` to `"male,female": "..."`)
- fix: compilation error on web when using large interfaces
- **Breaking:** `setLocale`, `setLocaleRaw`, and `useDeviceLocale` returns a Future, use `-Sync` suffix for synchronous calls
- **Breaking:** `output_format` removed, always generates multiple files now
- **Breaking:** deprecated functions in `LocaleSettings` (`supportedLocales`, `supportedLocalesRaw`) removed
Expand Down

0 comments on commit 0efaed7

Please sign in to comment.