mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-31 04:12:10 +03:00
src/i18n/config.ts is now a thin adapter that reads config/i18n.json (canonical locale list) and exports the same shape — LOCALES, LANGUAGES, RTL_LOCALES, DEFAULT_LOCALE, Locale type, LOCALE_COOKIE — that LanguageSelector, layout.tsx, request.ts, and the rest of the codebase already consume. No call-site changes were required. Adds DOCS_TARGET_LOCALES and getLanguage() helpers for new code. The legacy scripts now print a deprecation warning on stderr at startup: - scripts/i18n/i18n_autotranslate.py (banner + module-level warn) - scripts/i18n/generate-multilang.mjs (banner + console.warn) They keep working for messages and readme modes (UI strings / root README variants), which are still outside the new pipeline's scope. Both will be removed in v3.10. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>