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/PermissionsService.js

    rbb42dfb r834bcc3  
    4646    if (!user) return false;
    4747    if (user.role === 'god') return true;
    48     if (!site) return false; // geen site-context (bv. hub-landing) -> niets te posten
     48    if (!site) return false; // no site context (e.g. hub landing) -> nothing to post to
    4949    if (user.id === site.owner_id) return true; // Site owner
    5050    if (this.canAdminSite(user, site)) return true;
     
    5959    if (user.role === 'god') return true;
    6060    if (user.id === site.owner_id) return true;
    61     // Toegewezen mede-beheerder (collaborator) via site_members. Dit werd
    62     // voorheen via een nooit-gevulde user.siteRoles gelezen → dode code; nu
    63     // direct op de tabel (paar checks per pagina, indexed = goedkoop).
     61    // Assigned co-admin (collaborator) via site_members. Previously read from
     62    // a never-populated user.siteRoles → dead code; now queried directly on
     63    // the table (a few checks per page, indexed = cheap).
    6464    return !!db.prepare(
    6565      "SELECT 1 FROM site_members WHERE site_id = ? AND user_id = ? AND role = 'admin' LIMIT 1"
Note: See TracChangeset for help on using the changeset viewer.