Problem/Motivation
Hello , we do have a problem with the accordion paragraph type in a multilanguage site.
The accordion is always displayed in the default language.
- I tried to set Olivero theme and accordion data is well displayed
- I removed the civictheme template for accordion paragraph ( paragraph--civictheme-accordion.html.twig ) and accordion data is also well displayed
Steps to reproduce
Install drupal 10..4.1
Follow the civictheme installation ( apply patch, composer require, create subtheme, .. )
Add 4 languages
Configure content ( page ) and paragraph ( accordion & accordion panel ) to be translatable ( /admin/config/regional/content-language )
Proposed resolution
Display Accordion in th e right language
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork civictheme-3501440
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
johanf commentedComment #3
johanf commentedI fixed the issue but not sure it's the right way to do it.
Please check it.
Thanks
Comment #4
johanf commentedComment #5
fionamorrison23 commentedComment #6
fionamorrison23 commentedComment #9
fionamorrison23 commentedComment #10
fionamorrison23 commentedComment #11
fionamorrison23 commentedComment #12
richardgaunt commented@johanf Apologies for taking so long to get back to you but we don't do many multi-lingual websites in Australia.
Is this error only on the accordion panels or is it all CivicTheme components. We use the same method for getting data from fields for most of our components and so I am trying to work out why it is just the accordion?
Comment #13
fionamorrison23 commentedComment #14
fionamorrison23 commentedComment #15
fionamorrison23 commented