Using useIntl(), locale value does not change when switch to another locale
### Node Version

18.x.x

### NPM/Yarn/PNPM Version

Yarn 4.6.0

### Strapi Version

5.8.1

### Operating System

MacOS

### Database

PostgreSQL

### Javascript or Typescript

Typescript

### Reproduction URL

_No response_

### Bug Description

```
import { useIntl } from 'react-intl';

const { locale } = useIntl();

console.log({locale})
```

Using useIntl(), to get current locale does not work for internal plugin I created for my project.

If the locale is "en" and I switch to "fr" the locale retrieved by useIntl() is still "en"

### Steps to Reproduce

- Create plugin
- Setup Admin
-  Use useIntl(), to get current locale 
- Switch to another locale
- check the locale again in the log

### Expected Behavior

I expect to get the locale of the current content

### Logs

```shell

```

### Code Snippets

_No response_

### Media

_No response_

### Additional information

_No response_

### Confirmation Checklist

- [x] I have checked the existing [issues](https://github.com/strapi/strapi/issues) for duplicates.
- [x] I agree to follow this project's [Code of Conduct](https://github.com/strapi/strapi/blob/develop/CODE_OF_CONDUCT.md).