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

    rbb42dfb r834bcc3  
    11/**
    2  * Nieuwsbrief — publieke kant (premium feature #1).
     2 * Newsletter — public side (premium feature #1).
    33 *
    4  *   GET  /nieuwsbrief                      -> aanmeldformulier (premium; anders 404)
    5  *   POST /nieuwsbrief                      -> aanmelden (double opt-in als SMTP er is)
    6  *   GET  /nieuwsbrief/bevestigen/:token    -> opt-in bevestigen
    7  *   GET  /nieuwsbrief/uitschrijven/:token  -> uitschrijven (ALTIJD toegestaan)
     4 *   GET  /nieuwsbrief                      -> sign-up form (premium; 404 otherwise)
     5 *   POST /nieuwsbrief                      -> subscribe (double opt-in if SMTP configured)
     6 *   GET  /nieuwsbrief/bevestigen/:token    -> confirm opt-in
     7 *   GET  /nieuwsbrief/uitschrijven/:token  -> unsubscribe (ALWAYS allowed)
    88 *
    9  * In hub-modus loopt dit via /user/:slug/nieuwsbrief (resolveSite zet siteUrlBase).
    10  * Confirm-/unsub-links in de mail zijn absoluut (PUBLIC_BASE_URL + siteUrlBase).
     9 * In hub mode this runs via /user/:slug/nieuwsbrief (resolveSite sets siteUrlBase).
     10 * Confirm/unsub links in the mail are absolute (PUBLIC_BASE_URL + siteUrlBase).
    1111 */
    1212
     
    5353
    5454  if (r.status === 'pending') {
    55     // Double opt-in: stuur de bevestigingsmail.
     55    // Double opt-in: send the confirmation email.
    5656    const link = fullUrl(req, res.locals.siteUrlBase, '/nieuwsbrief/bevestigen/' + r.token);
    5757    const unsub = fullUrl(req, res.locals.siteUrlBase, '/nieuwsbrief/uitschrijven/' + r.token);
     
    8181});
    8282
    83 // Uitschrijven mag altijd (ook als de premium-laag later uit zou gaan): een abonnee
    84 // moet zich altijd kunnen afmelden. Niet premium-gated.
     83// Unsubscribe is always allowed (even if the premium layer is later disabled): a
     84// subscriber must always be able to opt out. Not premium-gated.
    8585router.get('/nieuwsbrief/uitschrijven/:token', (req, res) => {
    8686  const ok = unsubscribe(req.params.token);
Note: See TracChangeset for help on using the changeset viewer.