A Chrome extension that converts prices in different currencies to your nation's currency. This extension uses the IP Geolocation API to detect the user's local currency and the Exchange Rate API to convert the specified amount.
- Convert any amount from one currency to another.
- Automatically detects the user's local currency.
- Allows searching and selecting from all available world currencies.
- Clean and modern user interface.
-
Clone the repository:
git clone https://github.com/kashua14/currency-converter-extension.git cd currency-converter-extension
-
Create a
config.json
file:- Create a
config.json
file in the root directory with your API key from IP Geolocation.
{ "API_KEY": "YOUR_API_KEY" }
- Create a
-
Load the extension in Chrome:
- Open Chrome and go to
chrome://extensions/
. - Enable "Developer mode" in the top right corner.
- Click "Load unpacked" and select the directory where you cloned the repository.
- Open Chrome and go to
- Click on the Currency Converter extension icon in the Chrome toolbar.
- Enter the amount you want to convert.
- Select the currency from which you are converting.
- Click the "Convert" button to see the converted amount in your local currency.
- API_KEY: Your API key from IP Geolocation.
- JavaScript: The main programming language used.
- HTML: For the structure of the popup.
- CSS: For styling the popup.
- Select2: For the searchable currency dropdown.
- IP Geolocation API: To detect the user's local currency.
- Exchange Rate API: To convert the specified amount to the user's local currency.
currency-converter/
├── css/
│ ├── select2.min.css
│ └── styles.css
├── js/
│ ├── jquery.min.js
│ └── select2.min.js
├── config.json
├── manifest.json
├── popup.html
├── popup.js
└── README.md
This project is licensed under the MIT License.
For any questions or suggestions, feel free to contact Joshua Kasasira at [[email protected]].