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

    rbb42dfb r834bcc3  
    11/**
    2  * Artiesten-directory — alleen in hub-modus.
     2 * Artists directory — hub mode only.
    33 *
    4  * GET /leden?q=&page=  -> doorzoekbare, gepagineerde lijst van ALLE
    5  * Klonkt-site's. De hub-home toont maar een beperkte selectie; deze pagina
    6  * schaalt naar honderden/duizenden artiesten via zoeken + paginering.
     4 * GET /leden?q=&page=  -> searchable, paginated list of ALL
     5 * Klonkt sites. The hub home shows only a limited selection; this page
     6 * scales to hundreds/thousands of artists via search + pagination.
    77 *
    8  * In solo-modus bestaat er maar één site -> next() (valt door naar postsRoutes,
    9  * die 'artiesten' als onbekende slug afhandelt).
     8 * In solo mode there is only one site -> next() (falls through to postsRoutes,
     9 * which handles 'artiesten' as an unknown slug).
    1010 */
    1111
     
    2626  if (!Number.isFinite(page) || page < 1) page = 1;
    2727
    28   // De hoofd-/labelsite (oudste) is geen artiest -> uit de directory weren,
    29   // consistent met de hub-home die 'm apart toont.
     28  // The main/label site (oldest) is not an artist -> exclude from the directory,
     29  // consistent with the hub home which displays it separately.
    3030  const mainRow = db.prepare('SELECT id FROM sites ORDER BY created_at ASC LIMIT 1').get();
    3131  const mainId = mainRow ? mainRow.id : '';
    3232
    33   // Zoekterm tegen titel/slug/tagline (case-insensitive via LIKE; SQLite LIKE is
    34   // standaard ongevoelig voor ASCII-hoofdletters). De ESCAPE '\' maakt %, _ en \
    35   // in de zoekterm letterlijk (anders zouden ze als wildcards werken).
     33  // Search term against title/slug/tagline (case-insensitive via LIKE; SQLite LIKE is
     34  // case-insensitive for ASCII by default). ESCAPE '\' makes %, _, and \
     35  // in the search term literal (otherwise they would act as wildcards).
    3636  const like = '%' + q.replace(/[\\%_]/g, (m) => '\\' + m) + '%';
    3737  const conds = ['s.id != @mainId'];
Note: See TracChangeset for help on using the changeset viewer.