How to pass user's language selection to React application

This question came up a few times in the forum:

https://community.auth0.com/t/passing-additional-inputs-from-universal-login-page/39581/8?u=mathiasconradt

Another option, in case it’s not mentioned in the linked questions, to use different callback urls, something like https://callback/?lang=de and https://callback/?lang=en