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:
@@ -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 = {}
|
||||
|
||||
Reference in New Issue
Block a user