add :locale and :template_name attribute