Fix bible reader version filtering and improve UI

- Fix API to show all 1416+ bible versions with language filtering toggle
- Add default language-specific filtering with option to show all versions
- Fix books API to work with cross-language version selection
- Add toggle button with visual feedback and version count display
- Improve dropdown scrolling and add language indicators
- Maintain backward compatibility while fixing core functionality

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-09-24 12:27:21 +00:00
parent 4adf1d286e
commit 920798966a
2 changed files with 59 additions and 37 deletions

View File

@@ -6,7 +6,7 @@ export const runtime = 'nodejs'
export async function GET(request: Request) {
try {
const { searchParams } = new URL(request.url)
const locale = (searchParams.get('locale') || 'ro').toLowerCase()
const locale = (searchParams.get('locale') || searchParams.get('language') || 'ro').toLowerCase()
const showAll = searchParams.get('all') === 'true'
let whereClause = {}