added in i18n support to templates