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

    rbb42dfb r834bcc3  
    9292  const range = req.headers.range;
    9393
    94   // Statistieken: tel één play bij de initiële player-fetch (niet bij scrub/
    95   // range-continuaties; replays binnen 24u komen uit de browsercache → geen
    96   // dubbeltelling). Best-effort, mag nooit de stream breken.
     94  // Statistics: count one play on the initial player fetch (not on scrub/
     95  // range continuations; replays within 24h come from the browser cache → no
     96  // double counting). Best-effort, must never break the stream.
    9797  if (req.get('X-Audio-Player') === '1' && (!range || /^bytes=0-/.test(range))) {
    9898    try {
     
    141141});
    142142
    143 // Welke post bevat deze track? (voor de mini-speler → "spring naar de post +
    144 // scroll naar de track".) Pakt de nieuwste gepubliceerde post met [[track:<id>]].
     143// Which post contains this track? (for the mini-player → "jump to the post +
     144// scroll to the track".) Fetches the newest published post with [[track:<id>]].
    145145router.get('/track/:id/post', (req, res) => {
    146146  const id = String(req.params.id || '');
Note: See TracChangeset for help on using the changeset viewer.