Skip to content

v0.3.3

Choose a tag to compare

@MasonLyons MasonLyons released this 17 Oct 23:38
· 13 commits to main since this release
63ef700

Fix: date formats could be served from the wrong language after USE_I18N changed at runtime (for example, under override_settings).

pip install -U django-rust-templates

Fixed

  • Django resolves gettext and pgettext separately. The compiled date-format cache only checked gettext, so after a USE_I18N flip, month names from pgettext_lazy (the N and E format characters) could be rendered from a program compiled for a different language. The cache key now covers how both functions resolve.