React sensor hook that tracks the preferred language of the user's browser.
The usePreferredLanguage
hook automatically adapts to the preferred language of the user. The hook reactively returns a string that represents the preferred language of the user, as set in the browser settings.
Run the following command: