Skip to content

Fix language filter — default should be 'all', not 'English' #554

@realproject7

Description

@realproject7

Summary

The language filter on the home page defaults to "English" instead of "all". This means non-English stories (Korean, Japanese, Chinese, Spanish, French) are hidden by default. Users have to manually switch the filter to see them.

Root Cause

src/app/page.tsx line 34:

const lang = rawLang === "all" ? "all" : rawLang && (LANGUAGES as readonly string[]).includes(rawLang) ? rawLang : "English";

The fallback should be "all" not "English".

Fix

Change the default from "English" to "all":

const lang = rawLang === "all" ? "all" : rawLang && (LANGUAGES as readonly string[]).includes(rawLang) ? rawLang : "all";

Acceptance Criteria

  • Home page shows ALL stories by default (all languages)
  • Selecting "English" filter shows only English stories
  • Selecting other languages filters correctly
  • "All" shows everything

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent/T3Assigned to T3 builder agentbugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions