Moved i18n to lib

Closes #602