From the course: ASP.NET Core: Internationalization

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Currency formats

Currency formats - ASP.NET Core Tutorial

From the course: ASP.NET Core: Internationalization

Start my 1-month free trial

Currency formats

- [Instructor] A big part of localization is currency formats. I'm going to show you that and some other little fun stuff I hope you're excited about. Let's go open up Exercise Files. We're going to go up to chapter four, video one, copy BaseWithCurrency, and paste that to our desktop. Open that, and we're going to open that folder in Visual Studio Code. We have three things that we're going to cover here. The first is I want to show you the exchange rate software that I wrote. It's not enterprise ready, but is a good example of how you can hit an API to get an exchange rate, which will then be used to change the value of our currency to reflect the culture changes. So, I have this class called ExchangeRate. We are going out to a website called fixer.io, I'm going to show you that site right now. This is a great site just to use if you do need exchange rates for currency. It is open source and free, and very easy to use. So what this URL will do is it will go out and get all of the…

Contents