added a public getter for the locale