-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
DateTime
formatting for ICU4X (#788)
* Add `DateTime` formatting for ICU4X * Adapt to testing * Adapting tests * Add skips to test * Fix `islamic` calendar match * Update ICU4X * Address comments * Refactor * Refactor the other method too * Add checks to readme * Prepare for publish * Topics to list * Update SDK dep * Fix pana issues * Update example
- Loading branch information
Showing
10 changed files
with
346 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
pkgs/intl4x/lib/src/datetime_format/datetime_format_stub_4x.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file | ||
// for details. All rights reserved. Use of this source code is governed by a | ||
// BSD-style license that can be found in the LICENSE file. | ||
|
||
import '../data.dart'; | ||
import '../locale/locale.dart'; | ||
import 'datetime_format_impl.dart'; | ||
import 'datetime_format_options.dart'; | ||
|
||
DateTimeFormatImpl getDateTimeFormatter4X( | ||
Locale locale, | ||
Data data, | ||
DateTimeFormatOptions options, | ||
) => | ||
throw UnimplementedError('Cannot use ICU4X in web environments.'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,32 @@ | ||
name: intl4x | ||
description: >- | ||
A lightweight modular library for internationalization (i18n) functionality. | ||
version: 0.8.2-wip | ||
version: 0.8.2 | ||
repository: https://github.com/dart-lang/i18n/tree/main/pkgs/intl4x | ||
platforms: ## TODO: Add native platforms once ICU4X is integrated. | ||
platforms: | ||
web: | ||
android: | ||
ios: | ||
linux: | ||
macos: | ||
windows: | ||
topics: | ||
- i18n | ||
|
||
environment: | ||
sdk: ">=3.0.0 <4.0.0" | ||
sdk: ">=3.3.0 <4.0.0" | ||
|
||
dependencies: | ||
ffi: ^2.1.0 | ||
js: ^0.6.5 | ||
js: ^0.7.1 | ||
meta: ^1.12.0 | ||
|
||
dev_dependencies: | ||
archive: ^3.4.10 | ||
args: ^2.4.2 | ||
build_runner: ^2.1.4 | ||
build_web_compilers: ^3.2.1 | ||
collection: ^1.18.0 | ||
dart_flutter_team_lints: ^1.0.0 | ||
lints: ^2.0.0 | ||
native_assets_cli: ^0.3.2 | ||
dart_flutter_team_lints: ^2.1.1 | ||
lints: ^3.0.0 | ||
native_assets_cli: ^0.4.2 | ||
path: ^1.9.0 | ||
test: ^1.22.1 | ||
test: ^1.22.1 |
Oops, something went wrong.