added generics to locales map