My web app is in English. But i need to load the web app is French in one environment and in Spanish in another environment.
Even though i have added the below code for the first environment, the webapp doesn't load in french
function googleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: 'fr', multilanguagePage: true,
layout: google.translate.TranslateElement.InlineLayout.HORIZONTAL}, 'google_translate_element');
}
How can we set default language in which the page should be loaded here?