Support for localization.

Resolves #37.