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

    rbb42dfb r834bcc3  
    1 // Feature-flags (boot-tijd, via env).
     1// Feature flags (boot-time, via env).
    22//
    3 // Lite-modus: zet KLONKT_AUDIO=off in .env om de HELE audio-feature uit te
    4 // schakelen — geen audio-/playlist-/download-/embed-routes, geen ffmpeg-aanroep,
    5 // geen speler en geen [[track]]/[[playlist]]-shortcodes. Zo draait Klonkt als
    6 // lichte blog/foto/EPK-site op een omgeving zónder ffmpeg/exec. Hub én Cirkels
    7 // blijven gewoon werken (die hangen niet van audio af).
     3// Lite mode: set KLONKT_AUDIO=off in .env to disable the ENTIRE audio feature —
     4// no audio/playlist/download/embed routes, no ffmpeg calls, no player, and no
     5// [[track]]/[[playlist]] shortcodes. This lets Klonkt run as a lightweight
     6// blog/photo/EPK site on environments without ffmpeg/exec. Hub and Circles
     7// keep working (they have no audio dependency).
    88//
    9 // Default = aan (volledige versie). Alleen de letterlijke waarde 'off' schakelt uit.
     9// Default = on (full version). Only the literal value 'off' disables it.
    1010export function audioEnabled() {
    1111  return String(process.env.KLONKT_AUDIO ?? 'on').toLowerCase() !== 'off';
Note: See TracChangeset for help on using the changeset viewer.