The setBrowserLanguage API allows you to manually set the browser language for a visitor. This value is stored in localStorage. By setting the browser language explicitly, you can set it programmatically based on your application logic to be used by the survey for fetching questions based on the language set.
window.Wingify = window.Wingify || [];
// Set browser language to English
window.Wingify.push(['setBrowserLanguage', 'en']);
// Set browser language to Spanish
window.Wingify.push(['setBrowserLanguage', 'es']);
// Set browser language to French
window.Wingify.push(['setBrowserLanguage', 'fr']);