I’d like to get current user’s country, so I can show my plugin with the appropriate system language, and I tried several approaches:
HTML Geolocation API
Figma plugin’s origin is set to *, so I can’t usenavigator.geolocation.getCurrentPosition()
inside Figma plugin.
Geolocation by IP address
This works, but the downside is that, this is an asynchronous method, which can cause a fraction of a change when the React rendering the page with given language context.
So is there any solution for this ?
Thanks.