The ArcGIS Server JavaScript API has a Measurement widget, which reports the area or length of a shape drawn on the map.
The default metric labels use the American spelling of "Sq Kilometers" and "Kilometers", etc.
var measurement = new Measurement({
map: map,
defaultAreaUnit: units.SQUARE_KILOMETERS,
defaultLengthUnit: units.KILOMETERS
}, dom.byId("measurementDiv"));
measurement.startup();
Is it possible to change the default text "Square Kilometers" shown by default to a custom text (like "km2")?
The Measurement widget doesn't seem to have any customisation options which would accomplish this.