I18n for user content-type relations

System Information
  • Strapi Version: 3.6.8
  • Operating System: Mac OS 11.6
  • Database: MySQL
  • Node Version: 14.17.3
  • NPM Version: 6.14.13
  • Yarn Version: 1.22.10

Hello,

I’m adding i18n support to my project, and the user content type doesn’t support internationalization. I’ve added some relational fields to the user content type. The content types for these fields have i18n support, however, since the user type doesn’t I am only able to access the english fields of the related types. I was wondering if there is a way to access the entries for other localizations of these content types in the users type.

Thanks,
Ben

1 Like

For example if another entity collection type has i18n and I relate it to the users collection type only the fields in the default locale will be selectable.

You can do add a filter to get different to get the locale you are searching for

GET /{content-type}?_locale={locale-code}

Example:

http://localhost:1337/postage-stamps?_locale=ar

For my example, it gets all the stamps that have Arabic locales

docs:

the docs have a lot of examples home this helps :slight_smile: