Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-implementation of #59 (a rebase and cleanup of #88) #100

Merged
merged 2 commits into from
Jan 14, 2023

Conversation

kellpossible
Copy link
Owner

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.

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.

Co-authored-by: Michael P. Jung <[email protected]>
@kellpossible kellpossible merged commit 1fc49d9 into master Jan 14, 2023
@kellpossible kellpossible deleted the lang-method branch January 14, 2023 06:37
@bikeshedder
Copy link
Contributor

It's almost a year since I wrote that code. Looking at it today it still looks sound to me. Thanks a lot! 👍

@kellpossible
Copy link
Owner Author

kellpossible commented Jan 14, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants