Feature request - setLocale()

I’m making a multi-lingual Angular application. I’m using Uppy. It would be very useful if I could set the locale programmatically and have Uppy refresh with a Uppy.setLocale() function.

I have tried the following without success.

changeUppyLocale(lang) {
this.uppyLanguage = require(’@uppy/locales/lib/’ + lang);
}

loaduppy() {
this.photouppy = new Uppy(
{
locale: this.uppyLanguage,