Dynamic caption submodule field translation

Created on 22 September 2024, 2 months ago

Problem/Motivation

Found out that when using a custom field as te caption for Photoswipe images, the caption is not being translated to the current site language it is always displayed in the original node language.

Steps to reproduce

1. Select display field format as Photoswipe.
2. Choose a custom text field as the photoswipe caption.
3. Visit node in different languages.
4. The caption is always in the original language, not translated.

Proposed resolution

Include current language from language_manager to get translation of caption field.

🐛 Bug report
Status

Active

Version

5.0

Component

Code

Created by

🇪🇸Spain cristianalcaraz

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024