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

Method `with_bundles_mut` #78

Closed kaj closed 2 years ago

kaj commented 2 years ago

Add method FluentLanguageLoader::with_bundles_mut, taking a callback Fn and applying it to all loaded bundles.

Reimplement set_use_isolating by calling with_bundles_mut.

Fixes #75 .

kellpossible commented 2 years ago

Hi @kaj thanks for this PR, I'll look at it tomorrow!

kellpossible commented 2 years ago

Looks good! I'll merge and release today, thanks for the contribution!