plugin_i18n_default_locale stays 'en', even if STRAPI_PLUGIN_I18N_INIT_LOCALE_CODE is set #19978
Labels
issue: bug
Issue reporting a bug
severity: low
If the issue only affects a very niche base of users and an easily implemented workaround can solve
source: plugin:i18n
Source is plugin/i18n package
status: pending reproduction
Waiting for free time to reproduce the issue, or more information
Bug report
Required System information
Describe the bug
When starting Strapi for the first time with an empty database and the env var
STRAPI_PLUGIN_I18N_INIT_LOCALE_CODE
set to something other, thanen
, the locale gets created correctly but it won't get set as default in the database. The keyplugin_i18n_default_locale
staysen
. This leads to all content types not being visible in the content manager. However it can be fixed by setting the desired locale as default in the database or using the admin ui.EDIT: This does not happen only on initial start but on every deployment.
Expected behavior
The locale set using
STRAPI_PLUGIN_I18N_INIT_LOCALE_CODE
should be set as default in the database.EDIT: I temporarily fixed the issue using following code:
src/index.ts
The text was updated successfully, but these errors were encountered: