Skip to content

Restore confirmation modal texts are hardcoded, not customizable #13190

@Krzyzu84

Description

@Krzyzu84

Describe the Bug

In the restore confirmation modal shown when restoring a version, the title, message, and button texts are hardcoded inside PayloadCMS and cannot be customized or localized through Payload Config or translation files.
This results in awkward or unclear messages for end users, especially in non-English locales.

Link to the code that reproduces this issue

This happens inside PayloadCMS core and we cannot provide a public reproduction repository as our project is private. However, the issue can be reproduced using the default admin with Polish (pl) i18n enabled.

Reproduction Steps

  1. Log in as an admin.
  2. Go to a page with at least two versions.
  3. Open the versions list.
  4. Select any version.
  5. Click “Restore this version”.
  6. Observe the confirmation modal.

Expected behavior:

  • Title of the modal: “Confirm change”
  • Message: “Restore page version from [date]” (with 24h format)
  • Confirm button: “Change”
  • These should be customizable via translation keys or config.

Actual behavior:

  • Title: “Confirm restoring version”
  • Message: “You are about to restore the global record [label] to the state it was in on May 26 2025, 4:14 PM.”
  • Confirm button: “Confirm”
  • These strings are not accessible for translation or override.

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

    status: needs-triagePossible bug which hasn't been reproduced yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions