Add localization support to templates
Add basic localization tests