-
-
Notifications
You must be signed in to change notification settings - Fork 421
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrate ICU4X into
Intl
module (#2083)
<!--- Thank you for contributing to Boa! Please fill out the template below, and remove or add any information as you feel neccesary. ---> This Pull Request integrates an `ICU4X` data provider API in our codebase, to make use of the internationalization APIs that this crate provides. It changes the following: - Creates an API for pluggable icu data providers at `Context` creation, adding an `Icu` struct to store the provider (and some other internationalization tools) at runtime. - Slightly changes locale related functions to preserve the `Locale` type and ensure correctness. (Will make some other changes related to this). - Integrates the `sys_locale` crate to fetch the current default locale of an user instead of always returning `en-US`.
- Loading branch information
Showing
29 changed files
with
621 additions
and
327 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ jobs: | |
- name: Run cargo-tarpaulin | ||
uses: actions-rs/[email protected] | ||
with: | ||
args: --ignore-tests | ||
args: --features intl --ignore-tests | ||
- name: Upload to codecov.io | ||
uses: codecov/codecov-action@v3 | ||
|
||
|
@@ -55,7 +55,7 @@ jobs: | |
- uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
args: -v | ||
args: -v --features intl | ||
|
||
test_on_macos: | ||
name: Tests on MacOS | ||
|
@@ -70,7 +70,7 @@ jobs: | |
- uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
args: -v | ||
args: -v --features intl | ||
|
||
fmt: | ||
name: Rustfmt | ||
|
@@ -163,4 +163,4 @@ jobs: | |
uses: actions-rs/cargo@v1 | ||
with: | ||
command: doc | ||
args: -v --document-private-items | ||
args: -v --document-private-items --all-features |
Oops, something went wrong.