Create a Contentful Space with 2 locales: English (default) and Italian;
Create an Entry Model "Blog Post" with a Body field of type Rich Text;
Create a "Blog Post" Entry with an Image in the Body field, the same image for the English and Italian Body fields;
The Image Asset has both title and description filled in both languages;
Try to render the Blog Post Entry in the not default language (Italian)
Expected Result
The title of the image present in the Body of the Blog Post should be in Italian
Actual Result
The title of the image present in the Body of the Blog Post is in English
Considerations
The issue is in the use of the \Contentful\Core\Api\LinkResolverInterface Interface. The Mappers should pass also the locale code in the second argument $parameters.
The Mappers that use this interface are:
Steps to reproduce
Expected Result
The title of the image present in the Body of the Blog Post should be in Italian
Actual Result
The title of the image present in the Body of the Blog Post is in English
Considerations
The issue is in the use of the
\Contentful\Core\Api\LinkResolverInterface
Interface. The Mappers should pass also the locale code in the second argument$parameters
. The Mappers that use this interface are:\Contentful\RichText\NodeMapper\AssetHyperlink
\Contentful\RichText\NodeMapper\EmbeddedAssetBlock
\Contentful\RichText\NodeMapper\EmbeddedAssetInline
\Contentful\RichText\NodeMapper\Reference\EntryReference