How can I implement dynamic links in my store's buttons?

Hello,

How can I add a dynamic link turn instead of a hard link in the button (shop now)?

Because if I change the main language (dutch) to one of the two foreign languages ​​in my store (arabic or english) on the homepage, it will be changed directly, but as soon as i go to the products in the two collections, the language will be changed directly to the main language changed.

I contacted the Transcy app (translation app) they told me to contact you guys because this problem is related to the theme and they can’t cancel it.

Can you help me with this? I’m waiting for your answer.

Thank you and best regards
milad

For anyone looking for a solution for this:
The error is that e.g. in the header menu the links to the pages is set as a full link (e.g. example.com/pages/test) instead of selecting the page directly in the header menu settings (e.g. searching for “test” and then selecting the test page) or using only the URL slug “/pages/test”. After that the next page should keep the language.