-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Open
Labels
status: verifiedIf an issue has been reproducedIf an issue has been reproduced
Description
Describe the Bug
In the admin UI, when creating or editing content blocks, the label “Block Name” is not localized despite the presence of an internationalization (i18n) system in PayloadCMS. This results in inconsistent language usage for non-English interfaces, such as Polish.
The root cause is a hardcoded string (label: 'Block Name') found in the PayloadCMS source code. Specifically, the label is defined directly in the baseBlockFields.ts file, bypassing the i18n mechanism that should allow this string to be translated based on the active language.
Link to the code that reproduces this issue
Reproduction Steps
- Enable a non-English language in the PayloadCMS admin panel (e.g., Polish).
- Go to any collection where blocks are used.
- Create or edit a document that includes a block field.
- Observe the label for naming a block.
Actual result:
The interface displays the English label “Block Name”.
Expected result:
The label should be translated based on the selected interface language (e.g., “Nazwa bloku” in Polish).
Which area(s) are affected?
- Admin UI
- Internationalization (i18n)
Which area(s) are affected? (Select all that apply)
Not sure
Environment Info
PayloadCMS version: v3.28.0
Metadata
Metadata
Assignees
Labels
status: verifiedIf an issue has been reproducedIf an issue has been reproduced