Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Currency localization #96

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

mzygadlo
Copy link

@mzygadlo mzygadlo commented Feb 12, 2023

Please review first this PR #97

The users table gets two new columns: locale and currency. The server sets locale and currency cookies on sign in.

The code can be improved by:

image

The users table gets two new columns: locale and currency.
The server sets locale and currency cookies on sign in.

The code can be improved by:
 - adding validation of locale and currency_iso attributes;
 - fetching geolocation dynamically from i.e http://www.geoplugin.net/json.gp
@mzygadlo
Copy link
Author

This PR doesn't change inputs, because the project uses react-text-mask package. I found this one https://github.com/cchanxzy/react-currency-input-field that supports locales

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant