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

main
Last change on this file since cd6a008 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
RevLine 
[834bcc3]1// Feature flags (boot-time, via env).
[cb01666]2//
[834bcc3]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).
[cb01666]8//
[834bcc3]9// Default = on (full version). Only the literal value 'off' disables it.
[cb01666]10export function audioEnabled() {
11 return String(process.env.KLONKT_AUDIO ?? 'on').toLowerCase() !== 'off';
12}
Note: See TracBrowser for help on using the repository browser.