Google Chrome
The Google Chrome browser has an built in option to translate a webpage to another language.
However if you want to translate part of a webpage or selected text, you can install the Google Translate extension from Google which allows you to highlight text and click on the translate icon (or right click) to translate the selected text.
Mozilla Firefox
For Mozilla Firefox, the https://addons.mozilla.org/en-US/firefox/addon/google-translator/