Skip to content

"Versions" breadcrumb label is hardcoded in SetStepNav.tsx and not using i18n #13194

@CreativeFutureX

Description

@CreativeFutureX

Describe the Bug

In the admin UI, when viewing the version history of a document, the breadcrumb navigation displays the label “Versions” even when using a non-English interface (e.g., Polish). This occurs despite the translation key plTranslations.version.versions being correctly defined as “Wersje”.

The issue is caused by a hardcoded string in the PayloadCMS core code. Specifically, the label “Versions” is written directly in the SetStepNav.tsx file without referencing the internationalization (i18n) system. As a result, the translated value is ignored, and the breadcrumb remains in English regardless of the active language setting.

Link to the code that reproduces this issue

Reproduction Steps

  1. Enable a non-English language in the PayloadCMS admin panel.
  2. Go to a collection with saved versions.
  3. Open the version history of a document.
  4. Observe the breadcrumb at the top of the screen.

Which area(s) are affected? (Select all that apply)

Not sure

Environment Info

PayloadCMS version: v3.28.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions