Add localization support

Fixes #2