The server action GetCurrentLocal always returns the position in america how to fix ?

If i'm in italy is there any way to retrieve the location (local), because i've tried with getCurrentLocale but it always returns local american with the formatcurrency server action taken from a forge component.


Hi Gaetano,

The action is running on the server so it's giving you the server's location, you will need to get the location on the client-side and send it as a parameter for your action.

Hi Nuno,

How could this be done?

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.