Closed kachkaev closed 6 years ago
I'm curious if there is a way to change language for the controls such as this one:
I tried injecting the language into the state (which generally works), but this gave no effect:
const mapState = { behaviors: ['drag', 'dblClickZoom', 'multiTouch', 'rightMouseButtonMagnifier'], controls: ['zoomControl', 'typeSelector'], // language: "en", // lang: "en", // lang: "en_US", }; <Map width={...} height={...} state={mapState} />
Any ideas?
Upd: setting <Map loadOptions={{ lang: "en" }} ... /> did help!
<Map loadOptions={{ lang: "en" }} ... />
I'm curious if there is a way to change language for the controls such as this one:
I tried injecting the language into the state (which generally works), but this gave no effect:
Any ideas?