Localization
If you want to localize your application, you can use the built-in localization features of .NET. This includes using resource files (.resx) for different languages and cultures, and configuring your application to support multiple languages.
Make a new service class that implements the IFieldFormat interface. This service will be responsible for formatting the fields based on the current culture. You can then register this service in your dependency injection container and use it throughout your application to format fields according to the user's locale.
Example of a service that uses IStringLocalizer
using Blazura;
using Microsoft.Extensions.Localization;
namespace Example;
public class FieldFormatService(IStringLocalizer<SharedResource> Localizer) : IFieldFormat
{
public Func<string, string> Format => (str) => Localizer[str];
}