add a getter for locale