How does QR Translator know which translation to display?

QR Translator detects the display language of the device* that is used to scan the QR code.

*Strictly speaking, it is the language of the browser, but the language settings of your smartphone or tablet are usually inherited by the browser.