added locale support for template