mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-31 04:12:10 +03:00
Adds a tiny built-in dotenv loader at the top of run-translation.mjs that parses the repo-root .env file into process.env (without pulling dotenv as a dependency). Existing process.env values still take precedence, so shell/CI overrides keep working. Before: `npm run i18n:run` failed with "Missing required env var: OMNIROUTE_TRANSLATION_API_URL" unless the operator exported the vars in the current shell. After: the npm scripts (i18n:run, i18n:run:dry) pick up .env automatically. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>