Is there any way to translate words in Safari on iOS and Mac?
For OS X you can add 3rd party dictionaries.  See

http://m10lmac.blogspot.com/2013/01/adding-dictionaries-to-dictionaryapp.html

Unfortunately it's not possible for iOS yet as far as I know.