Skip to content

Fix: default currency now reflects user's system locale - #13

Open
Gurunath-S wants to merge 1 commit into
mandalorian99:mainfrom
Gurunath-S:fix/default-currency-locale
Open

Fix: default currency now reflects user's system locale#13
Gurunath-S wants to merge 1 commit into
mandalorian99:mainfrom
Gurunath-S:fix/default-currency-locale

Conversation

@Gurunath-S

Copy link
Copy Markdown

This PR sets the default invoice currency based on the user's system locale using:

" Intl.NumberFormat().resolvedOptions().locale "

It maps commonly used regions (e.g., IN, US, EU) to their corresponding currency symbols. If the region is unrecognized, it gracefully falls back to USD ($).

This approach ensures that the default currency reflects the user's local time and system region settings — not based on IP or browser language.

Let me know if you'd prefer an IP-based approach for more geographic accuracy — happy to implement that as well!

@Gurunath-S
Gurunath-S force-pushed the fix/default-currency-locale branch from eaa67ca to 33406ec Compare July 3, 2025 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant