From 98736925f71a517a431981edbfe43d363cdab556 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Thu, 17 Feb 2022 18:59:35 -0800 Subject: [PATCH] Fixes cache translation --- bookwyrm/templates/snippets/book_titleby.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bookwyrm/templates/snippets/book_titleby.html b/bookwyrm/templates/snippets/book_titleby.html index 5e35e36a7..04326e49c 100644 --- a/bookwyrm/templates/snippets/book_titleby.html +++ b/bookwyrm/templates/snippets/book_titleby.html @@ -3,8 +3,9 @@ {% load cache %} {% spaceless %} +{% get_current_language as LANGUAGE_CODE %} {# 6 month cache #} -{% cache 15552000 titleby book.id %} +{% cache 15552000 titleby LANGUAGE_CODE book.id %} {% if book.authors.exists %} {% blocktrans trimmed with path=book.local_path title=book|book_title %}