rialight_intl

Crates.iorialight_intl
lib.rsrialight_intl
version1.2.4
sourcesrc
created_at2023-03-01 12:39:17.465447
updated_at2023-03-09 16:17:59.876256
descriptionRialight internationalization module.
homepage
repositoryhttps://github.com/rialight/api
max_upload_size
id797980
size24,509
Matheus Dias de Souza (hydroper)

documentation

README

rialight::intl

Internationalization module.

Progress

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.

  • Currently the 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-1462282871
  • Include icu data only for non-WebAssembly target.
  • Learn how to use js! macro from stdweb.
  • Collator
    • Using icu
    • Using browser-available Ecma-262 Intl
  • DateTimeFormat
    • Using icu
    • Using browser-available Ecma-262 Intl
  • DisplayNames
    • Using icu. Use LanguageDisplayNames and RegionDisplayNames from icu_displaynames
    • Using browser-available Ecma-262 Intl
  • ListFormat
    • Using icu
    • Using browser-available Ecma-262 Intl
  • Locale
  • NumberFormat
    • Using icu
    • Using browser-available Ecma-262 Intl
  • PluralRules
    • Using icu
    • Using browser-available Ecma-262 Intl
  • RelativeTimeFormat
    • Using icu
    • Using browser-available Ecma-262 Intl
  • Segmenter
    • Using icu
    • Using browser-available Ecma-262 Intl

FTL Progress

  • Arguments
  • arguments!
  • Ftl
    • Should the library internally use fluent::FluentBundle::new_concurrent()?
    • initialize_locale()
ftl.initialize_locale(|locale, bundle| {
    // locale: intl::Locale
    match locale {
        _ => {},
    }
});
Commit count: 259

cargo fmt