add an utility function to get a consistent css class from a locale