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
Use a temporary_locale context manager #1347
Comments
@smartass101: Seems like a sensible idea. Would you like to work on this for the upcoming 3.5 release? |
@smartass101: Any update on your proposal here? |
Im going to pick this up; looks like a good first issue to start contributing! |
@usmanatron: Any progress on your work on this issue? Would anyone else like to implement the functionality described in this issue? |
@avaris: Would you mind sharing your thoughts on this proposal? Would be nice to close it out, one way or another. |
Submitted a pull request for this feature. Kind of a contributing noob so let me know if I did anything incorrectly or need to make any changes. Thanks! |
Ahh, now I see pull request #2027 which fixes the issue and implements the new functionality right away. Oh well! Would you like me to just close this? |
While working on my i18n_subsites plugin, I came up with an idea how to simplify some code that is often used in Pelican: doing stuff with a temporarily different locale.
This could be neatly solved by a context manager:
This would enable stuff like
The text was updated successfully, but these errors were encountered: