If you need help about using the standard language switchers or creating your own language switchers, please tell us what you are trying to achieve, how it should fit into your theme and what you are seeing.
Problem: change the language from portuguese to english or vice versa from the homepage and contact page but it doesnt work right. When i change the language from portuguese to english on the home page it goes to a blog page rather than the english version of the home page. In addition on the contact pages when I change from english to portuguese or vice versa it redirects me to the home pages.
Solution: Make sure that there's no redirection added to the secondary language. Also, make sure that the translation of the page exists. Just edit the original page and look at the right sidebar. Here, just check if the language that you want to check does have a translation (has the pencil icon instead of the pencil one).