Add getLocale method for getting set locale