How to create localized entries from code?

I checked your plugin, trying to do the same but it’s simply not working for me.

I created 2 separate entries, now trying to link together. ID 293367 is en locale, 316045 is fr . On the admin panel they appear fine when checking with different locales.

 await strapi.services.keywords.update(
    {
        id: 293367
    },
    {
        localizations: [{ id: 316045, locale: 'fr' }]
    }
)

The result I get after the update:

{
  id: 293367,
  Word: 'car',
  created_at: 2021-09-22T09:28:00.000Z,
  updated_at: 2021-10-14T21:02:52.000Z,
  created_by: null,
  updated_by: null,
  locale: 'en',
  localizations: []
}

Any ideas?