hook up localization and make templates translation-aware