Skip to content

How can I change the language for "aria-label"? #1730

@cimt

Description

@cimt

How can I change the language for "aria-label"?

When I use:

lightGallery(document.getElementById('gallery-captions-demo'), {
controls: false, 
prevHtml: "<button type='button' id='lg-prev' aria-label=' prev lang ' class='lg-prev lg-icon'></button>", 
nextHtml: "<button type='button' id='lg-next' aria-label=' next lang ' class='lg-next lg-icon'></button>",
});

nothing is displayed.... and if i use controls: true, The buttons were displayed twice.

It would be nice to:

lightGallery(document.getElementById('gallery-captions-demo'), {
previousSlide: "prev lang",
nextSlide: "next lang",
closeGallery: "close lang",
.... etc.
});

I'm grateful for any tips.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions