#javascript #cldr #unicode

no-std bin+lib boa_icu_provider

ICU4X data provider for the Boa JavaScript engine

4 releases

0.17.3 Sep 26, 2023
0.17.2 Sep 26, 2023
0.17.1 Sep 26, 2023
0.17.0 Jul 8, 2023

#94 in Internationalization (i18n)

Download history 145/week @ 2023-08-08 956/week @ 2023-08-15 1011/week @ 2023-08-22 1590/week @ 2023-08-29 1210/week @ 2023-09-05 1782/week @ 2023-09-12 2489/week @ 2023-09-19 2759/week @ 2023-09-26 2718/week @ 2023-10-03 2688/week @ 2023-10-10 3108/week @ 2023-10-17 3143/week @ 2023-10-24 2795/week @ 2023-10-31 3038/week @ 2023-11-07 2844/week @ 2023-11-14 3138/week @ 2023-11-21

12,508 downloads per month
Used in 9 crates (2 directly)

Unlicense/MIT

4MB
136 lines

boa_icu_provider

boa_icu_provider generates and defines the ICU4X data provider used in the Boa engine to enable internationalization functionality.

Datagen

To regenerate the data:

$ cargo run --release --bin boa-datagen --features bin

lib.rs:

Boa's boa_icu_provider exports the default data provider used by its Intl implementation.

Crate Overview

This crate exports the function buffer, which contains an extensive dataset of locale data to enable Intl functionality in the engine. The set of locales included is precisely the "modern" subset of locales in the Unicode Common Locale Data Repository.

If you need to support the full set of locales, you can check out the ICU4X guide about generating custom data providers. Boa supports plugging both BufferProviders or AnyProviders generated by the tool.

Dependencies

~3–14MB
~141K SLoC