SET languange for dictation

Is there a way to SET the languange for dictation via a script?

@FlohGro’s example shows it action, but if you just need to method for something you are working, the editor.dictate() can take an optional locale parameter.