Product-Calalog. I want to rename the word
IN STOCK to other word.
You can translate "IN STOCK" to "Your Text" by below translation file
Add "IN STOCK","Your Text" to below file
Run below commands to check text changes
php bin/magento setup:upgrade php bin/magento setup:static-content:deploy php bin/magento cache:clean
<magento_root>/vendor/magento/theme-frontend-luma/i18n/en_US.csvin /app/design/frontend folder and open the en_US.csv file.
"text to translate","translated text"
For example, in your case write:
If you want to change this text only for product details page and for that section which you mentioned then you need to copy the following file to your theme:
You theme file location will be like below:
And update the text.
Create one one en_US.csv on your theme like below:
And add the translation text like "In stock","Salable"