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

    rbb42dfb r834bcc3  
    5858    if (!parent) return res.status(400).send('Invalid parent comment');
    5959    resolvedParent = parent.parent_comment_id || parent.id;
    60     parentAuthorId = parent.author_id; // ontvanger van de "antwoord"-melding
     60    parentAuthorId = parent.author_id; // recipient of the "reply" notification
    6161  }
    6262
     
    7777  `).run(commentId, post.id, req.session.user.id, resolvedParent, rawContent, status);
    7878
    79   // Melding (alleen bij een zichtbare reactie): antwoord → de auteur van de reactie
    80   // waarop gereageerd is; top-level reactie → de auteur van de post. notify() slaat
    81   // jezelf-notificeren over.
     79  // Notification (only for visible comments): reply → author of the parent comment;
     80  // top-level comment → author of the post. notify() skips self-notifications.
    8281  if (status === 'approved') {
    8382    const url = `${res.locals.siteUrlBase || ''}/${post.slug}#comment-${commentId}`;
Note: See TracChangeset for help on using the changeset viewer.