Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pkgs/intl4x/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.13.1

- Fix casemapping on the web.

## 0.13.0

- Add examples of extensions to `List` and `DateTime` formatting.
Expand Down
2 changes: 1 addition & 1 deletion pkgs/intl4x/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: example
description: A sample application using intl4x.

environment:
sdk: ^3.8.0
sdk: ^3.9.3

publish_to: none

Expand Down
4 changes: 2 additions & 2 deletions pkgs/intl4x/lib/src/case_mapping/case_mapping_ecma.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ CaseMappingImpl getCaseMappingECMA(Locale locale, Null _) =>
_CaseMappingECMA.tryToBuild(locale);

extension on JSString {
@JS('String.toLocaleUpperCase')
external String toLocaleUpperCase(String locale);
@JS('String.toLocaleLowerCase')

external String toLocaleLowerCase(String locale);
}

class _CaseMappingECMA extends CaseMappingImpl {
_CaseMappingECMA(super.locale);

static CaseMappingImpl tryToBuild(Locale locale) => _CaseMappingECMA(locale);

@override
String toUpperCase(String input) =>
input.toJS.toLocaleUpperCase(locale.toLanguageTag());
Expand Down
8 changes: 4 additions & 4 deletions pkgs/intl4x/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: intl4x
description: >-
A lightweight modular library for internationalization (i18n) functionality.
version: 0.13.0
version: 0.13.1
repository: https://github.com/dart-lang/i18n/tree/main/pkgs/intl4x
issue_tracker: https://github.com/dart-lang/i18n/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Aintl4x

Expand All @@ -17,13 +17,13 @@ topics:
- i18n

environment:
sdk: ^3.8.0
sdk: ^3.9.3

dependencies:
hooks: ^0.20.0
hooks: ^0.20.1
icu4x: ^2.0.0-dev.0
meta: ^1.17.0
record_use: ^0.4.1
record_use: ^0.4.2

dev_dependencies:
args: ^2.7.0
Expand Down