You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(build): implement DRY principle for locale configuration
Eliminate hardcoded locale arrays throughout the codebase by using a single
source of truth from src/i18n/config.ts:
- Update metadata/config.ts to import locales from i18n/config
- Update articles/[slug]/page.tsx to dynamically import locales
- Update docs/[slug]/page.tsx to dynamically import locales
- Remove 3 hardcoded SUPPORTED_LOCALES arrays
This ensures adding a new language only requires changing one file.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
0 commit comments