Initial code for selecting a locale