#Use of localized for relationships

1 messages · Page 1 of 1 (latest)

dapper orbit
#

Hi.

I have a collection called Categories where I keep category entries for Posts. I have a question regarding handling of the Category field in the Posts collection using the relationship type. In the Category collection the title field has localized: true. Do I need to do the same and use localized: true for the category field in the Posts collection where I use the relationship type? I did that as below but it seems redundant as the db entries for all locale entries are the same with reference to the same object id from the Categories collection. Thanks.

// Posts.ts
...
    {
      name: 'category',
      label: 'Category',
      type: 'relationship',
      relationTo: 'categories',
      required: true,
      localized: true,
    },
...
dusk crownBOT
zinc drum
#

I don't think so.
As far as I know localized: true, shows that it can be different content on other locales.
So if categories in post don't change on different locales - it's optional.

dapper orbit