Although I set the language to “iw” or “he”, It recognizes only English AddressName. The iFrame googleMaps shows also the map in English. Only the pin address is displayed in hebrew.
You can see my the below API. JSW coding. What I’m doing wrong?
import {fetch} from ‘wix-fetch’;
const key = “AIzaSyCEzAmnS6GFBmXbNqLePd4d2TLsgmeGdZg”;
const GEOKEY = “AIzaSyCI7NI4E3sNKbzQKZkAbz-ZTBbgqEiMDaY”;
const geocode1 = “https://maps.googleapis.com/maps/api/geocode/json?®ion=IL&language=iw&address=”;
const geocode2 = “&key=”;
export function geocodeAddress(AddressName) {
console.log(AddressName)
let geoUrl = geocode1 + AddressName + geocode2 + GEOKEY;
return fetch (geoUrl, {method: ‘get’}).then( (httpResponse) => {
//console.log(httpResponse.json())
if (httpResponse.ok) {
return httpResponse.json();
}
});
}