Skip to content

[bug]: Rich filters, filter chips and power-k placeholder render hardcoded English in every locale #10272

Closed

Description

@spiruto

Is there an existing issue for this?

  • I have searched the existing issues

Related: #9089 (umbrella "hardcoded UI surfaces"), #10248 (undefined i18n keys). This one is specific: the rich filter bar and the power-k command input never call t() for several strings, so they stay English in every locale.

Current behavior

With the interface language set to a non-English locale (reproduced on es), the rich filters row and the command input still render English, while the rest of the same screen — including the properties sidebar next to them — is translated:

  • Applied filter chips read Assignees is <user>, Start date is Nov 12, 2026
  • Clear all, Save view, Update view buttons
  • Remove filter / Invalid filter aria-labels and labels
  • Command menu placeholder Search commands...
  • Filter property placeholders Assignees, Start date

These are missed t() call sites, not missing translations: packages/i18n already ships the strings for es (common.json contains limpiar, asignados, fecha de inicio), and other components on the same view use them correctly.

Verified on preview (2026-11-12):

  1. apps/web/components/rich-filters/filters-row.tsx:95

    label={filter.clearFilterOptions?.label ?? "Clear all"}

    The fallback is a hardcoded English literal and nothing in apps/web supplies clearFilterOptions.label, so the fallback is what users always see.

  2. apps/web/components/rich-filters/filter-item/close-button.tsx:30

    return <IconPill onClick={handleRemoveFilter} aria-label="Remove filter" icon={...} />;
  3. apps/web/components/rich-filters/filter-item/invalid.tsx:29 and :36 — label="Invalid filter".

  4. apps/web/components/navigation/top-nav-power-k.tsx:242 — placeholder="Search commands...". The same file already imports and calls useTranslation() (:15, :28) and translates the clear-search label at :251, so only the placeholder was missed.

The filter property placeholders (Assignees, Start date) live in the same rich-filters components, which do not call useTranslation at all (filter-item/*, filter-value-input/date/*).

Expected

Every string above is resolved through t() with keys that exist in all locale files under packages/i18n/src/locales/*/, with no English literal as a fallback path. In es, the filter bar should read Asignados es …, Fecha de inicio es …, Limpiar, Quitar filtro, Filtro inválido.

Steps to reproduce

  1. Set Profile → Language to Español (any non-English locale shows the same).
  2. Open Work items and add an Assignee and a Start date filter.
  3. Compare the filter chips and buttons with the properties sidebar on the right: the sidebar is Spanish, the filter bar is English.
  4. Open the command input in the top navigation: the placeholder is English.

Environment

Self-hosted instance. Confirmed by inspecting the shipped bundles rather than the UI only: the deployed es namespace chunks are present and translated (common-*.js has Nuevo elemento de trabajo, Asignados, Fecha de inicio), and the failing strings are literals in the untranslated chunks (base-*.js, filters-*.js, navigation-*.js), none of which reference useTranslation.

Browser

Google Chrome

Edition

Community

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions