Translations within the {{ nocache }} tag are not correctly translated when using Full Static Caching #7351
Unanswered
jlmmns
asked this question in
Troubleshooting
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I run a multi-site configuration:
Full Static Caching seems to be working, except for one thing:
My contact form uses the
{{ trans }}
tag for translated labels.I've placed the entire form within the
{{ nocache }}
tag, as advised per the docs.But the cached contact page only displays the labels in English.
When explicitly specifying the locale, the translations remain in the language of the site that got cached first.
Without the use of
{{ nocache }}
, the translations are cached correctly.So there seems to be an issue with
{{ nocache }}
and the current locale?Any idea on how to get translations working within
{{ nocache }}
?Is anybody else able to replicate this behavior?
Beta Was this translation helpful? Give feedback.
All reactions