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

Command icon 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:

  • 1.x Comparecompare
  • 3501440-wrong-data-display Comparecompare

Comments

johanf created an issue. See original summary.

johanf’s picture

Issue summary: View changes
johanf’s picture

I fixed the issue but not sure it's the right way to do it.
Please check it.
Thanks

johanf’s picture

Assigned: Unassigned » johanf
Status: Active » Needs review
fionamorrison23’s picture

Version: 1.9.0 » 1.x-dev
fionamorrison23’s picture

fionamorrison23’s picture

fionamorrison23’s picture

fionamorrison23’s picture

Assigned: johanf » richardgaunt
richardgaunt’s picture

@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?

fionamorrison23’s picture

fionamorrison23’s picture

fionamorrison23’s picture

Status: Needs review » Closed (won't fix)
Issue tags: -civictheme-release-1.13

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.