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/services/NotificationService.js

    rbb42dfb r834bcc3  
    11/**
    2  * Meldingen — antwoord op je reactie, reactie op je post, like op je post.
    3  * Voor élke ingelogde gebruiker (Google-bezoekers/fans én admin). Snapshots van
    4  * actor-naam + post-titel zodat de lijst zonder joins te tonen is.
     2 * Notifications — reply to your comment, comment on your post, like on your post.
     3 * For every logged-in user (Google visitors/fans and admins). Snapshots of
     4 * actor name + post title so the list can be rendered without joins.
    55 */
    66import { randomUUID } from 'crypto';
    77import db from '../config/database.js';
    88
    9 // Maakt een melding aan. Doet niets als er geen ontvanger is of als je jezelf
    10 // zou notificeren (eigen reactie/like op eigen post/reactie).
     9// Creates a notification. Does nothing if there is no recipient or if you
     10// would notify yourself (your own comment/like on your own post/comment).
    1111export function notify({ userId, actorId, actorName, type, postSlug, postTitle, url }) {
    1212  if (!userId || userId === actorId) return;
     
    1616      VALUES (?, ?, ?, ?, ?, ?, ?, ?, 0)
    1717    `).run(randomUUID(), userId, type, actorId || null, actorName || null, postSlug || null, postTitle || null, url || null);
    18   } catch { /* meldingen zijn niet-fataal */ }
     18  } catch { /* notifications are non-fatal */ }
    1919}
    2020
     
    3333export function markAllRead(userId) {
    3434  if (!userId) return;
    35   try { db.prepare('UPDATE user_notifications SET read = 1 WHERE user_id = ? AND read = 0').run(userId); } catch { /* noop */ }
     35  try { db.prepare('UPDATE user_notifications SET read = 1 WHERE user_id = ? AND read = 0').run(userId); } catch { /* no-op */ }
    3636}
    3737
Note: See TracChangeset for help on using the changeset viewer.