Changeset 3487567 in Klonkt for src/routes/admin-playlists.js


Ignore:
Timestamp:
06/28/2026 10:13:27 PM (2 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
48027f2
Parents:
abc8959
Message:

fix(i18n): translate admin page titles (pageTitleKey instead of hardcoded strings)

Admin page/tab titles were hardcoded (mostly Dutch: Beheer, Instellingen, Nieuwsbrief, …).
renderPage now accepts pageTitleKey (+ pageTitleVars) and translates it with the resolved
language; the 16 admin routes pass keys. Adds admin.t_* keys in nl/en/de.

  • middleware/render.js — pageTitleKey support
  • services/i18n.js — admin.t_* title keys (nl/en/de)
  • routes/admin*.js — pageTitle string -> pageTitleKey
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/routes/admin-playlists.js

    rabc8959 r3487567  
    6464  const playlists = PlaylistService.list(site.id);
    6565  renderPage(req, res, 'pages/admin-playlists', {
    66     pageTitle: 'Playlists',
     66    pageTitleKey: 'admin.t_playlists',
    6767    playlists,
    6868    bodyClass: 'on-admin',
Note: See TracChangeset for help on using the changeset viewer.