use $locale to retrieve current locale