I'm developing a web application that will need to be localized to English and Portuguese (and possible more languages later). I'm aware that the .NET Framework offers full support for UI localization, however, I'm not so sure what's the best approach to implement it.
What do you consider the best practices for a web application localization?
To opt-in to localization, we need to modify our Startup file. We'll be registering a few services, configuring options, and registering middleware. All steps that are common-place for additions in an ASP.NET application. Starting in our ConfigureServices method, we need to make a call to AddLocalization .
Localizing Static Text If a page includes static text, you can use ASP.NET localization by including it in a Localize control, and then using explicit localization to set the static text. The Localize control renders no markup; its only function is to act as a placeholder for localized text.
Also have a look at
Globalization and Localization Demystified in ASP.NET 2.0
Pretty good coverage and explanation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With