Add rudimentary support for localizing lists
Dependencies
- [2]
AS7RDZT7Implement `Localize` for `std::path` and `camino` - [*]
HHJDRLLNCreate `fluent_embed_runtime` crate - [*]
C6W7N6N5Implement `Localize` for `FixedDecimal` and primitive number types
Change contents
- file addition: list.rs[4.49]
//! Implementations of `Localize` for various list typesuse crate::Localize;use icu_locale::Locale;macro_rules! impl_list {($list_type:ty) => {impl<T: Localize> Localize for $list_type {fn localize_for(&self, locale: &Locale) -> String {let localized_items: Vec<String> =self.iter().map(|item| item.localize_for(locale)).collect();localized_items.join("\n")}}};}impl_list!(Vec<T>);impl_list!(&[T]); - edit in l10n_embed/src/lib.rs at line 2[5.2501][2.731]
pub mod list;