In Blazor web assembly, Localization registers in below format,
Program.cs:
var builder = WebAssemblyHostBuilder.CreateDefault(args);