One problem we have is that the API doc does not provide these strings. How does the developer know that ol.control.ScaleLineUnits.IMPERIAL is "imperial"?