Crates.io | rialight_intl |
lib.rs | rialight_intl |
version | 1.2.4 |
source | src |
created_at | 2023-03-01 12:39:17.465447 |
updated_at | 2023-03-09 16:17:59.876256 |
description | Rialight internationalization module. |
homepage | |
repository | https://github.com/rialight/api |
max_upload_size | |
id | 797980 |
size | 24,509 |
Internationalization module.
Use either the Ecma-262 Intl or the ICU4X project for implementing several things.
Not all browsers implement all of Ecma-262 Intl API, or ICU4X doesn't cover all of Intl, so we'll have to support less Intl things for the time being. The goal of this crate is to implement all of Intl. Add more checkboxes for specific features here.
text_direction()
is incorrectly implemented. It compares the language part, not the script part. To fix that, LocaleExpander
from icu
provides a maximize method, but the constructor requires the data provider. https://github.com/unicode-org/icu4x/issues/3172#issuecomment-1462282871icu
data only for non-WebAssembly target.js!
macro from stdweb
.icu
Intl
icu
Intl
icu
. Use LanguageDisplayNames and RegionDisplayNames from icu_displaynamesIntl
icu
Intl
icu
Intl
icu
Intl
icu
Intl
icu
Intl
arguments!
Ftl
fluent::FluentBundle::new_concurrent()
?initialize_locale()
ftl.initialize_locale(|locale, bundle| {
// locale: intl::Locale
match locale {
_ => {},
}
});