Changeset 834bcc3 in Klonkt for src/routes/circle.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/circle.js

    rbb42dfb r834bcc3  
    11/**
    2  * Cirkel-feed + lokale lees-pagina.
    3  *   GET /cirkel        -> overzicht (zelfde timeline/grid-view als de home)
    4  *   GET /cirkel/:id    -> losse remote-post in eigen chrome (blijf op je site)
    5  * Alleen actief als tenancy === 'circle' (anders next() -> postsRoutes/404).
    6  * Zie docs/cirkels-v1-spec.md §5c.
     2 * Circle feed + local reading page.
     3 *   GET /cirkel        -> overview (same timeline/grid view as the home)
     4 *   GET /cirkel/:id    -> individual remote post in own chrome (stay on your site)
     5 * Only active when tenancy === 'circle' (otherwise next() -> postsRoutes/404).
     6 * See docs/cirkels-v1-spec.md §5c.
    77 */
    88
     
    2525}
    2626
    27 // ── Overzicht ────────────────────────────────────────────────
     27// ── Overview ─────────────────────────────────────────────────
    2828router.get('/cirkel', (req, res, next) => {
    2929  if (getTenancy() !== 'circle') return next();
     
    4242    return {
    4343      id: r.id,
    44       // Lokale lees-pagina -> de kaart blijft op de eigen site (post-card linkt
    45       // lokaal + htmx, GEEN external_url).
     44      // Local reading page -> the card stays on the own site (post-card links
     45      // locally + htmx, NO external_url).
    4646      slug: 'cirkel/' + encodeURIComponent(r.id),
    4747      title: r.title || '(zonder titel)',
     
    5858  });
    5959
    60   // Sites in de cirkel — alleen actieve links (outdated/error vallen weg, net als
    61   // hun posts). Voor de grafische header met avatars.
     60  // Sites in the circle — active links only (outdated/error ones are excluded, along
     61  // with their posts). Used for the graphic header with avatars.
    6262  const sites = db.prepare(`
    6363    SELECT a.name, a.url, a.avatar
     
    7676});
    7777
    78 // ── Losse remote-post (lokaal lezen) ─────────────────────────
     78// ── Individual remote post (local reading) ────────────────────
    7979router.get('/cirkel/:id', (req, res, next) => {
    8080  if (getTenancy() !== 'circle') return next();
Note: See TracChangeset for help on using the changeset viewer.