-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Open
Labels
status: needs-triagePossible bug which hasn't been reproduced yetPossible bug which hasn't been reproduced yet
Description
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
- Log in as an admin.
- Go to a page with at least two versions.
- Open the versions list.
- Select any version.
- Click “Restore this version”.
- 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
Labels
status: needs-triagePossible bug which hasn't been reproduced yetPossible bug which hasn't been reproduced yet