How can I programmatically change the locale in a Duckling Pipeline with Python?

I think the easiest is to use a custom action to connect to duckling and pass metadata to the rasa API where you can pass the locale you want.

I actually tried creating a custom NLU component, but Rasa’s current API don’t pass the metadata to Rasa NLU’s custom component (see the discussion here)