Button imitating with function

Context: language support.I'm setting and updating Language_variable in the frontend and want to control the content of vf blocks based on language. I decided to use the function to simulate some components, there were no problems with the text, but with the buttons I was struggling with the paths. Can anyone give advice on such a problem? How not only display buttons but make it interactive
Screenshot_2024-02-09_at_15.48.43.png
Screenshot_2024-02-09_at_15.52.20.png
Was this page helpful?