Skip to content

Languages & cultures explained

Jon P Smith edited this page Jan 1, 2023 · 9 revisions

If you build an application using the AuthP library, then by default any of the messages and errors from the AuthP services will be in English. But since version 4.1.0 you can can either:

  1. Change the messages / errors coming from the internal code into another language.
  2. Or if your application is used in multiple countries you can support many languages.

.NET refers to supporting many languages as localization and alongside localization is globalization, which is about input and displaying data in the right format (e.g. date formats) - see this Microsoft document.

Version 4.1.0 of AuthP has a "hidden" localization service, which is turned off by default. This means you can try the AuthP library using English without having set up the .NET localization services, which isn't a quick thing to set up. But if you want replace the English messages with a different language or support many languages in your application, then you can do this.

To make this work I had built a library, called Net.LocalizeMessagesAndErrors, that didn't need a developer to set up .NET localization services even if they only wanted English messages. And I have altered Example1 ASP.NET Core app which supports both the normal English and a French version of the AuthP's services, plus some of the frontend to show English or French depending on the set culture. The figure below shows the same view in English and French - note that the red error message cam from the AuthP's Roles admin code.

Example of English / French localization

Additional resources

  • [How to turn on the AuthP's localization service]
  • [Usages -> Supporting multiple languages]

Articles / Videos

Concepts

Setup

Usage

Admin

SupportCode

Clone this wiki locally