Content-Type Builder saves "localized": true for Boolean fields, although the UI has no localization option for them
Node Version
24.19.0
Package Manager
npm
Package Manager Version
11.17.0
Strapi Version
5.54.0
Operating System
MacOS
Database
PostgreSQL
Javascript or Typescript
Typescript
Reproduction URL
No response
Bug Description
In a collection type with Internationalization enabled, the Content-Type Builder shows no "Enable localization for this field" checkbox for a Boolean field. That part looks intended.
But when the content type is saved, the generated schema.json still marks the Boolean field as localized: "pluginOptions": { "i18n": { "localized": true } }. The field is silently localized, and there is no way to change that from the admin UI. The only option is to edit schema.json by hand.
Steps to Reproduce
- In the Content-Type Builder, create a collection type (e.g.
Page) with Internationalization enabled in Advanced settings. - Add a Boolean field (e.g.
isHomepage) with default valuefalse. - Open the field's Advanced settings: there is no "Enable localization for this field" checkbox (other types, e.g. Short text, have it).
- Save the content type.
- Open
src/api/page/content-types/page/schema.json.
Expected Behavior
Expected Behavior
If Boolean fields are not meant to be localized, the field is saved as non-localized ("localized": false, or without i18n pluginOptions).
Actual behavior
The field is saved as localized: "isHomepage": { "type": "boolean", "pluginOptions": { "i18n": { "localized": true } }, "default": false }
Why it matters
Boolean flags often describe the entry itself, not one language version of it. For example, isHomepage marks which page is a site's homepage. As a localized field, it can have different values per locale (the English version is the homepage, the Spanish version isn't), and users can't prevent that from the admin UI.
Additional context
A Short text field in the same content type with localization unticked is correctly saved as "localized": false, so the schema format supports non-localized fields. The problem is specific to Boolean fields, where the UI offers no checkbox but the saved default is true.
Logs
Code Snippets
No response
Media
No response
Additional information
No response
Confirmation Checklist
- I have checked the existing issues for duplicates.
- I agree to follow this project's Code of Conduct.
Source: strapi/strapi