Perhaps the best way to handle is below.
- Create entries for Default and Required locales.
- Once the locale entries are done update the entries with strapi query method as below.
strapi.db.query('api::car.car').update({
where: { id: item.id },
data: {
[{ id: 1, locale: 'ar-SA' }],
},
});