Skip to content

Conversation

@charliermarsh
Copy link
Member

Summary

Django's gettext doesn't support f-strings, so we should avoid translating .format calls in those cases.

Closes #7891.

@charliermarsh
Copy link
Member Author

Some more resources:

@charliermarsh charliermarsh enabled auto-merge (squash) October 10, 2023 16:27
@charliermarsh charliermarsh merged commit 090c1a4 into main Oct 10, 2023
@charliermarsh charliermarsh deleted the charlie/f-string-django branch October 10, 2023 16:31
@github-actions
Copy link
Contributor

PR Check Results

Ecosystem

✅ ecosystem check detected no changes.

konstin pushed a commit that referenced this pull request Oct 11, 2023
## Summary

Django's `gettext` doesn't support f-strings, so we should avoid
translating `.format` calls in those cases.

Closes #7891.
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.

ruff fix on UP032 breaks applied code when f-string is too long

2 participants