Error: str is undefined (after trying to publish or unpublish in multiple locales)
<!--
Hello 👋 Thank you for submitting an issue.

Before you start, please make sure your issue is understandable and reproducible.
To make your issue readable make sure you use valid Markdown syntax.

https://guides.github.com/features/mastering-markdown/

Please ensure you have also read and understand the contributing guide.

https://github.com/strapi/strapi/blob/main/CONTRIBUTING.md#reporting-an-issue
-->

## Bug report

### Required System information

OS: linux-x64
Strapi Version: 5.7.0
Node/Yarn Version: npm/10.5.0 node/v20.12.0 linux x64 workspaces/false
Edition: Community
Database: mysql
- Is your project Javascript or Typescript: Typescript

### Describe the bug

Recently I've upgraded Strapi from v4 to 5.7.0.
I was testing some basics, and did this:
1. Opened the content creation page for some content type (/admin/content-manager/collection-types/api::page.page)
2. Clicked "Create new entry"
3. Entered the title, clicked "Publish"
4. Clicked the locale dropdown at the top right and selected a different locale (English)
5. Clicked the "..." button near the "Publish" button and clicked "Unpublish multiple locales"
6. Got this

![image](https://github.com/user-attachments/assets/0064fd24-d34e-4e84-9aae-72b253d03b6f)

I copied the contents to the clipboard, pasting here (replaced my domain name with "myserver").


```
capitalize@https://myserver.com/admin/node_modules/.strapi/vite/deps/chunk-GQAAK5NT.js?v=9bac9f6f:199:27
BulkLocaleActionModal/<.children<.children<.children<.children<@https://myserver.com/admin/node_modules/.strapi/vite/deps/chunk-GQAAK5NT.js?v=9bac9f6f:549:125
BulkLocaleActionModal@https://myserver.com/admin/node_modules/.strapi/vite/deps/chunk-GQAAK5NT.js?v=9bac9f6f:532:64
renderWithHooks@https://myserver.com/admin/node_modules/.strapi/vite/deps/chunk-IYHTQODQ.js?v=9bac9f6f:11568:35
mountIndeterminateComponent@https://myserver.com/admin/node_modules/.strapi/vite/deps/chunk-IYHTQODQ.js?v=9bac9f6f:14946:21
beginWork@https://myserver.com/admin/node_modules/.strapi/vite/deps/chunk-IYHTQODQ.js?v=9bac9f6f:15934:22
beginWork$1@https://myserver.com/admin/node_modules/.strapi/vite/deps/chunk-IYHTQODQ.js?v=9bac9f6f:19781:22
performUnitOfWork@https://myserver.com/admin/node_modules/.strapi/vite/deps/chunk-IYHTQODQ.js?v=9bac9f6f:19229:20
workLoopSync@https://myserver.com/admin/node_modules/.strapi/vite/deps/chunk-IYHTQODQ.js?v=9bac9f6f:19165:30
renderRootSync@https://myserver.com/admin/node_modules/.strapi/vite/deps/chunk-IYHTQODQ.js?v=9bac9f6f:19144:15
recoverFromConcurrentError@https://myserver.com/admin/node_modules/.strapi/vite/deps/chunk-IYHTQODQ.js?v=9bac9f6f:18764:42
performSyncWorkOnRoot@https://myserver.com/admin/node_modules/.strapi/vite/deps/chunk-IYHTQODQ.js?v=9bac9f6f:18907:28
flushSyncCallbacks@https://myserver.com/admin/node_modules/.strapi/vite/deps/chunk-IYHTQODQ.js?v=9bac9f6f:9135:30
node_modules/react-dom/cjs/react-dom.development.js/ensureRootIsScheduled/<@https://myserver.com/admin/node_modules/.strapi/vite/deps/chunk-IYHTQODQ.js?v=9bac9f6f:18655:21

```
      
