alizationOptions&gt;())
        };
    });
}

public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
    ...
    app.UseRequestLocalization();
    app.UseStaticFiles();
    app.UseRouting();
    ...
}</pre>
<h3>Applying in a component</h3>
<p>The final step is to apply to a component. Subscribe to the <code>NavigationManager.LocationChanged</code> event and re-render the component every time the event is fired, also remember to unsubscribe from the event when the component is being dispos