Skip to content

Library list content did not refresh translated text on a live language switch #417

Description

@thcp

Problem

Switching the display language mid-session (Settings -> Language) updated most of the UI immediately via the generic data-i18n re-apply pass, but library-list content built from raw innerHTML at render time (recent-tracks subtitles, search placeholder, trash/favorites empty states) had no data-i18n hooks to re-resolve, so it silently stayed in whichever language was active when it was last rendered until the page was reloaded.

This is the same class of bug as the earlier renderEmptyShell() render-ordering issue (#415's predecessor work) — computed text baked directly into HTML without a re-render hook for language changes.

Fix

Registered an onLanguageChange listener in static/js/catalog.js that rebuilds the library list (render()) on language switch, mirroring the existing listener that already rebuilds the settings modal.

Fixed in #415.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions