This worked for me, but with a caveat.
directions.setDirectionsLanguage("fr");
According to the doc, this doesn't change the localization of the widget itself, just the language of the directions results coming from the REST API.
Specify the language used for the directions. The supported languages can be requested from either the Route Service REST API, or from the widget itself