Skip to main content

国际化 (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.

 Is this breaking change affecting plugins?Yes
 Is this breaking change automatically handled by a codemod?Yes
(see dependency-remove-strapi-plugin-i18n )

重大更改描述

¥Breaking change description

在 Strapi v4 中

¥In Strapi v4

访问语言环境时,内容管理器会发送以下参数:plugins[i18n][locale]

¥Content Manager sends the following parameter when accessing a locale: plugins[i18n][locale].

在 Strapi 5 中

¥In Strapi 5

发送到内容管理器的参数现在只是 locale

¥The parameter sent to the Content Manager is now just locale.