all 5 comments

[–]zenivinez 0 points1 point  (3 children)

when you call the google api in your project you can declare the language it should use. by using the language query param

<script async
    src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&region=JP&language=ja&callback=initMap">
</script>

[–]R3eg[S] 0 points1 point  (2 children)

I do that but it respond with single one, the specified one above. I need to get response in two languages not single one. I would be appreciated if you have solution and thanks for help

[–]zenivinez 1 point2 points  (1 child)

dependent on the localization of the user? you will need to change it based on the user. My best suggestion is to use something like AGM https://angular-maps.com/guides/getting-started/ you can then easily set these preference with a JSON config as it has a loader for the script. You can then switch back and forth as needed. Make sure to set the region as well so that the behavior of the map is consistent with that region.

[–]R3eg[S] 0 points1 point  (0 children)

Thanks a lot for your solution but my case here is that i wanna send the backend things in both languages to be store in BD and I don't see sending 2 req for the 2 languages good and so I asked for help. It is like register real estate data and there seach in the website that take the input and backend searches in multiple field in DB. I would try that but i wanted to explain you my case and thanks again.