Skip to content

FAQ page shows missing i18n keys instead of readable questions #7943

Description

@nishupr

Description

The FAQ page calls translation keys like t('faq.q1'), but no top-level "faq" block exists in the locale files. Since t() returns the key string when missing, the fallback text is never used. As a result, the page renders raw text like faq.q1 and faq.a1 instead of real FAQ content.

Evidence

  • Missing FAQ keys used in app/faq/page.tsx (line 23)
  • t() returns the key path when no translation exists in context/TranslationContext.tsx (line 164)
  • No locale file contains a top-level "faq" section

Suggested Fix

  • Add faq.q1 through faq.a8 (or however many FAQ entries exist) to locales/en.json
  • Mirror those keys in the other locale files, or rely on English fallback for missing translations
  • Alternatively, update app/faq/page.tsx to use t('faq.q1', { defaultValue: '...' }) so a sensible fallback is shown even if keys are missing

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions