[BUG] Populating locales programatically breaks the admin #20253
Labels
issue: bug
Issue reporting a bug
severity: high
If it breaks the basic use of the product
source: plugin:i18n
Source is plugin/i18n package
status: pending reproduction
Waiting for free time to reproduce the issue, or more information
version: 5
Bug report
Required System information
Describe the bug
We are using the following code to add locales to our project:
And the following goes on the
index
bootstrap function:When running the first time it gives the following issue:
Despite this, the locales are added, but it breaks the admin when browsing on the settings section, see the video.
What's the better way to add locales to the admin programmatically?
Steps to reproduce the behavior
index
file in the bootstrap function.Expected behavior
It should not give any error logs nor break the admin panel.
Screenshots
Code snippets
Additional context
In the latest Strapi v4 there is not such issue.
The text was updated successfully, but these errors were encountered: