Skip to content

Bug: i18n incomplete — error messages and fallback answers are hardcoded English #15

Description

@anushagarg6

Description

The new i18n system (I18n.t(), strings.json) translates UI labels correctly, but several user-facing strings are still hardcoded in English and bypass the translation system entirely.

Affected Strings

Frontend (frontend/js/chat.js)

appendError("Could not reach the backend.")

Backend (backend/app.py)

"I don't have enough information in the indexed sources to answer that."

This fallback answer is returned when ChromaDB finds no relevant chunks, but it is always in English regardless of the user's selected language.

Impact

Users who switch to French, Spanish, Hindi, or Portuguese still see critical error and fallback messages in English, breaking the multilingual experience.

Fix Needed

  1. Add the missing strings to frontend/i18n/strings.json for all 5 supported languages
  2. Route the frontend error string through I18n.t() in chat.js
  3. In app.py, pass the language parameter from the request into the fallback message and use a translated string

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions