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.
Anatomy of a custom localizer - ASP.NET Core Tutorial
From the course: ASP.NET Core: Internationalization
Anatomy of a custom localizer
- [Narrator] If the built-in methods for localization don't meet your needs, you can always implement your own custom localizer. Let's take a look at a few reasons why you would use a custom localizer. Maybe you want to store the resources in the sequel database. Or maybe you want to put it up in the cloud in Azure storage. Now I know a lot of web developers that don't like the XML format of the current resource files. They like JSON. So perhaps we just want to store it as JSON files. And finally maybe you want to embed the resources in your application for something like security reasons. We can do that. So I'm going to show you the anatomy of a custom localizer. You want to go out to your exercise files, chapter four, oh four oh five, there's a folder out here called "CustomLocalizer". Have a copy and paste it on to your desktop. So let's open it up and we're going to open it in Code. So what we have is a series of files. You've seen startup. Startup is really mostly the same code…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.