Closed kellpossible closed 1 year ago
It's almost a year since I wrote that code. Looking at it today it still looks sound to me. Thanks a lot! :+1:
Sorry it took so long to get in!
On Sun, 15 Jan 2023, 04:24 Michael P. Jung, @.***> wrote:
It's almost a year since I wrote that code. Looking at it today it still looks sound to me. Thanks a lot! 👍
— Reply to this email directly, view it on GitHub https://github.com/kellpossible/cargo-i18n/pull/100#issuecomment-1382863152, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABCRJ2WEDICBGOUC3VQWD33WSLOONANCNFSM6AAAAAAT3DHSVI . You are receiving this because you modified the open/close state.Message ID: @.***>
Re-implementation of #59 (a rebase and cleanup of #88) Many thanks to @bikeshedder for doing most of the work here.
Adds a single new method lang.
This methods allows creating a shallow copy of the FluentLanguageLoader which can than be used just like the original loader but with a different current language setting. That makes it possible to use the fl! macro without any changes and is a far more elegant implementation than adding multiple get_lang* methods as done in #84.