getLocaleCode method