tomchentw / react-google-maps

React.js Google Maps integration component
https://tomchentw.github.io/react-google-maps/
MIT License
4.62k stars 939 forks source link

React-google-maps with Diffrent Langauge WithOut Page Refresh #1047

Open kaleemullah-innovo opened 4 years ago

kaleemullah-innovo commented 4 years ago

@tomchentw Hello I want to update google map langauge when page language changes using button click. Every thing works fine and components re render but lnagugae does nit chnage. or any other way to change langauge without page refresh? I am using withScriptjs and withGoogleMapjs

JustFly1984 commented 4 years ago

@kaleemullah-innovo

The repo of this project is unmaintained more than a year, and we had build new version https://www.npmjs.com/package/@react-google-maps/api

We had rewrite it to TypeScript, and updating it frequently: https://github.com/JustFly1984/react-google-maps-api/tree/master/packages/react-google-maps-api You can enjoy autocomplete.

You can see our docs: https://react-google-maps-api-docs.netlify.app

Also a lot of examples: https://react-google-maps-api-gatsby-demo.netlify.app/ https://github.com/JustFly1984/react-google-maps-api/tree/master/packages/react-google-maps-api-gatsby-example/src/examples

The bundle size is much smaller: https://bundlephobia.com/result?p=@react-google-maps/api

Our Spectrum community: https://spectrum.chat/react-google-maps
Our Slack channel: https://join.slack.com/t/react-google-maps-api/shared_invite/enQtODc5ODU1NTY5MzQ4LTBiNTYzZmY1YmVjYzJhZThkMGU0YzUwZjJkNGJmYjk4YjQyYjZhMDk2YThlZGEzNDc0M2RhNjBmMWE4ZTJiMjQ

Enjoy!


btw we have option to change language without page refresh. please use 1.9.5 version. 2.0.0-alpha is not working yet.