Problem/Motivation

The Luzmo Dashboard JavaScript field formatter currently does not set a language attribute for the dashboard embed. This may cause localization issues.

Steps to reproduce

  1. Add a field of type luzmo_viewer_dashboard to an entity.
  2. Translate the entity
  3. View the embedded dashboard and observe language or localization issues.

Proposed resolution

Update the formatter to map Drupal language codes to Luzmo language attribute
@see https://www.npmjs.com/package/@luzmo/embed/v/5.0.7

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:

Comments

p-neyens created an issue. See original summary.

p-neyens’s picture

Assigned: p-neyens » Unassigned
Status: Active » Needs review

  • p-neyens committed d413e71f on 1.0.x
    [#3556183] fix: Use correct language attribute for dashboard embed
    
p-neyens’s picture

Assigned: Unassigned » p-neyens
Status: Needs review » Reviewed & tested by the community
p-neyens’s picture

Version: 1.0.x-dev » 1.0.0
Assigned: p-neyens » Unassigned
Status: Reviewed & tested by the community » Fixed

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.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.