googlemaps / googlemaps/js-api-loader
Dynamically change the language of Loader
Open
type: feature request
wontfix
- Dominant language
- TypeScript
- Stars
- 449
- Forks
- 74
- Avg merge
- 1m
- Merged PRs (30d)
- 21
Description
#### Environment details
1. google.maps.places.AutocompleteService
2. "@googlemaps/js-api-loader": "^1.11.2",
#### Steps to reproduce
I load the library as follows
```javascript
new Loader({
apiKey: process.env.REACT_APP_GOOGLE_PLACES_API_KEY,
libraries: ['places'],
language: selectedLanguage,
});
```
I can dynamically change the language through a dropdown. If i try to reload the library i get an error that says i cannot use the same api key with different params
How can i dynamically change the results of the autocomplete to the desired language?
Contributor guide
Assessment
This issue has not been assessed yet.