Define Locale enum

Define Locale enum and related some minor changes