How to use short language in upload

I am uploading files from a path like

foo/de-DE/bar.txt

The file “bar.txt” is uploaded and a language called “de-DE” is created
However i want it to be “de” as other files i have, how can i do it while keeping autodetectLang?

Hi @fmonza,
Please check out the transformations feature here:

There’s an example of creating a custom variable you can use in upload.