From 0efaed7cdeccb77c5f419836eb614122eb832c53 Mon Sep 17 00:00:00 2001 From: Tien Do Nam Date: Mon, 21 Oct 2024 02:12:15 +0200 Subject: [PATCH] docs: update changelog --- slang/CHANGELOG.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/slang/CHANGELOG.md b/slang/CHANGELOG.md index 78b45395..7c81af06 100644 --- a/slang/CHANGELOG.md +++ b/slang/CHANGELOG.md @@ -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