To achieve the functionality of translating child product names in Magento according to their respective store languages, you can follow these steps:
Enable Multiple Store Views: Make sure you have ...
Try this all steps
1.Step 1: Inject the necessary dependencies
Inject the following dependencies into your ProductRepository class constructor: