Merge pull request #1953 from bookwyrm-social/cache-translation

Fixes cache translation
This commit is contained in:
Mouse Reeve 2022-02-17 19:13:35 -08:00 committed by GitHub
commit 731ab88604
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,8 +3,9 @@
{% load cache %} {% load cache %}
{% spaceless %} {% spaceless %}
{% get_current_language as LANGUAGE_CODE %}
{# 6 month cache #} {# 6 month cache #}
{% cache 15552000 titleby book.id %} {% cache 15552000 titleby LANGUAGE_CODE book.id %}
{% if book.authors.exists %} {% if book.authors.exists %}
{% blocktrans trimmed with path=book.local_path title=book|book_title %} {% blocktrans trimmed with path=book.local_path title=book|book_title %}