biati-digital / glightbox

Pure Javascript lightbox with mobile support. It can handle images, videos with autoplay, inline content and iframes
MIT License
2.01k stars 226 forks source link

RTL Support (reverse image order) #459

Open DenverCoder1 opened 8 months ago

DenverCoder1 commented 8 months ago

In right-to-left languages, it is the standard to mirror the UI such that the first image would be on the right and subsequent images follow to the left. Reversing the images in the full gallery view is as simple as using direction: rtl assuming standard HTML practices are used.

What's seems to be missing is that if you open an image, it would be natural for pressing left to advance to the next image and right to go back to the previous.

Is there a way to tell glightbox that the interface is written in a right-to-left language so that opening the first image and pressing left would advance to the second image then third, for example?