extract available locales set reset into private method