source: Klonkt/src/config/features.js@ e2c3d09

main
Last change on this file since e2c3d09 was 834bcc3, checked in by Robin Genis <roboburr@…>, 3 months ago

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@…>

  • Property mode set to 100644
File size: 592 bytes
Line 
1// Feature flags (boot-time, via env).
2//
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).
8//
9// Default = on (full version). Only the literal value 'off' disables it.
10export function audioEnabled() {
11 return String(process.env.KLONKT_AUDIO ?? 'on').toLowerCase() !== 'off';
12}
Note: See TracBrowser for help on using the repository browser.