国际化(i18n)现在已成为 Strapi 核心的一部分
国际化(i18n)现在已经成为 Strapi 核心的一部分,不再是插件,这会影响某些参数的发送和访问方式。这也意味着你不应在项目中使用或依赖旧的 @strapi/plugin-i18n 包,它现在已经被原生包含。
🌐 Internationalization (i18n) is now part of the Strapi core and no longer a plugin, and this impacts how some parameters are sent and accessed. This also means you should not use or depend on the old @strapi/plugin-i18n package in your project, it is now natively included.
此页面是重大更改数据库的一部分,提供关于重大更改的信息以及从 Strapi v4 迁移到 Strapi 5 的附加说明。
🌐 This page is part of the breaking changes database and provides information about the breaking change and additional instructions to migrate from Strapi v4 to Strapi 5.
重大变更描述
🌐 Breaking change description
在 Strapi v4 中
内容管理器在访问本地化时发送以下参数:plugins[i18n][locale]。
🌐 Content Manager sends the following parameter when accessing a locale: plugins[i18n][locale].
在 Strapi 5 中
发送到内容管理器的参数现在只是 locale。
🌐 The parameter sent to the Content Manager is now just locale.