Hi,
That depends on the data source fields that your using to create language dropdown. If you are using the language data source web part as language source then see this post. Otherwise if you are using custom language source then you need to create a URL field that you can use in href attribute.