assign of locale to template file