kellpossible / cargo-i18n

A Rust Cargo sub-command and libraries to extract and build localization resources to embed in your application/library
MIT License
121 stars 25 forks source link

Added new select language methods and new example. #101

Closed kellpossible closed 1 year ago

kellpossible commented 1 year ago
Added:
- A new LanguageLoader::load_available_languages() method to load all
  available languages.
- A new FluentLanguageLoader::select_languages() method (renamed
  FluentLanguageLoader::lang()).
- A new FluentLanguageLoader::select_languages_negotiate() method to
  select languages based on a negotiation strategy using the available
  languges.
- A new example in i18n-embed-fl

Deprecated
- FluentLanguageLoader::lang() is deprecated in favour of renamed
  FluentLanguageLoader::select_languages().