Mozilla made a Firefox plugin for offline translation

Engadget 

Mozilla has created a translation plugin for Firefox that works offline. Firefox Translations will need to download some files the first time you convert text in a specific language. However, it will be able to use your system's resources to handle the translation, rather than sending the information to a data center for cloud processing. The plugin emerged as a result of Mozilla's work with the European Union-funded Project Bergamot. Others involved include the University of Edinburgh, Charles University, University of Sheffield and University of Tartu.