How to pass user's language selection to React application

As I understand what you are trying to say is. In the login customisation html I can add some javascript that would somehow enrich the callback URL with ?language=lang, and then I could capture it on the front-end.

So how can I access and modify callback URL from Login customization script?

There have been couple of threads about this, but all are dead, for instance: Add Parameter to Callback URL - #5