Changeset 834bcc3 in Klonkt for src/routes/hub.js


Ignore:
Timestamp:
06/23/2026 06:14:27 PM (3 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
d774679
Parents:
bb42dfb
Message:

i18n: translate Dutch code comments to English across src/

Comments in routes/services/views/config/middleware/assets translated to
English for the public repo. A few dev-facing throw/console message strings
were Englished too. No user-facing UI strings or i18n dictionary values changed
(src/services/i18n.js untouched). Logic unchanged.

Co-Authored-By: Claude <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/routes/hub.js

    rbb42dfb r834bcc3  
    11/**
    2  * Hub-hoofdpagina — alleen in hub-modus. In plaats van de primaire Klonkt-site te
    3  * tonen, rendert '/' hier een bedrijfs-overview: de laatste posts van ALLE
    4  * gebruikers samengevat + een lijst van de Klonkt-site's.
     2 * Hub home page — hub mode only. Instead of rendering the primary Klonkt site,
     3 * '/' renders a company overview here: the latest posts from ALL users combined
     4 * + a list of the Klonkt sites.
    55 *
    6  * In solo-modus doet dit niets (next()) en rendert posts.js de enige site.
     6 * In solo mode this does nothing (next()) and posts.js renders the single site.
    77 */
    88
     
    1616router.get('/', (req, res, next) => {
    1717  if (getTenancy() !== 'hub') return next();
    18   // Als resolveSite een specifieke site adresseerde (/user/:slug of /sites/:slug),
    19   // is req.url naar '/' herschreven — dan NIET de overview tonen maar de site zelf
    20   // laten renderen door posts.js. siteUrlBase is dan gezet.
     18  // If resolveSite addressed a specific site (/user/:slug or /sites/:slug),
     19  // req.url was rewritten to '/' — do NOT show the overview but let posts.js
     20  // render the site itself. siteUrlBase is set in that case.
    2121  if (res.locals.siteUrlBase) return next();
    2222
    23   // Laatste gepubliceerde posts over álle sites heen.
     23  // Latest published posts across all sites.
    2424  const posts = db.prepare(`
    2525    SELECT p.title, p.slug, p.excerpt, p.published_at, p.created_at,
     
    3535  `).all();
    3636
    37   // De hoofd-/labelsite (de expliciet primaire = de bedrijfs-/hoofdaccount) is
    38   // GEEN artiest; die tonen we apart bovenaan, niet in de Artiesten-roster.
     37  // The main/label site (the explicitly primary = the company/main account) is
     38  // NOT an artist; we display it separately at the top, not in the Artists roster.
    3939  const mainSite = db.prepare(`
    4040    SELECT s.id, s.slug, s.title, s.tagline, s.profile_photo, s.accent,
     
    4848  const mainId = mainSite ? mainSite.id : '';
    4949
    50   // Uitgelichte Klonkt-site's voor de home-roster: meest-actief eerst (aantal
    51   // gepubliceerde posts), dan nieuwste. Excl. de hoofdsite. Beperkt tot
    52   // HOME_ROSTER_LIMIT zodat de home schaalt — volledige lijst staat op /leden.
     50  // Featured Klonkt sites for the home roster: most active first (number of
     51  // published posts), then newest. Excl. the main site. Capped at
     52  // HOME_ROSTER_LIMIT so the home scales — full list is at /leden.
    5353  const HOME_ROSTER_LIMIT = 24;
    5454  const artists = db.prepare(`
     
    6464  const totalArtists = db.prepare('SELECT COUNT(*) AS c FROM sites WHERE id != ?').get(mainId).c;
    6565
    66   // De hub-pagina is GENERIEK (van geen enkele user) — branding komt uit globale
    67   // instellingen die de admin in Beheer beheert, niet uit een site.
     66  // The hub page is GENERIC (not belonging to any user) — branding comes from global
     67  // settings managed by the admin in the admin panel, not from a site.
    6868  const hub = {
    6969    title: getSetting('hub_title') || 'Overzicht',
Note: See TracChangeset for help on using the changeset viewer.