Duplicate Lightbox uses some hardcoded text

Kirby

Well-known member
Affected version
2.3.3
js/xf/lightbox.js


Code:
getLanguage ()
{
    return {
        CLOSE: XF.phrase('lightbox_close'),
        NEXT: XF.phrase('lightbox_next'),
        PREV: XF.phrase('lightbox_previous'),
        ERROR: XF.phrase('lightbox_error'),
        PLAY_START: XF.phrase('lightbox_start_slideshow'),
        PLAY_STOP: XF.phrase('lightbox_stop_slideshow'),
        FULL_SCREEN: XF.phrase('lightbox_full_screen'),
        THUMBS: XF.phrase('lightbox_thumbnails'),
        DOWNLOAD: XF.phrase('lightbox_download'),
        SHARE: XF.phrase('lightbox_share'),
        ZOOM: XF.phrase('lightbox_zoom'),
        NEW_WINDOW: XF.phrase('lightbox_new_window'),
        SIDEBAR_TOGGLE: XF.phrase('lightbox_toggle_sidebar'),
    }
},

This is missing some phrases like MODAL which is used to set aria-label but also others like TOGGLE_ZOOM, TOGGLE_THUMBS, etc.
 
Back
Top Bottom