ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Localising default texts in asp.net core
Title:
B
I
{code}
?
I see your mvc sample https://www.aspnetawesome.com/learn/mvc/general#Localising-default-texts how set the same in .net core ?
Save Changes
Cancel
mtugnoli
asked at 23 Aug 2018
Answers
B
I
{code}
?
this is configuration code so you need to put it at the point where the application starts, in .net core you could call it in `Startup.ConfigureServices` method: public void ConfigureServices(IServiceCollection services) { Settings.GetText = GetTranslate; ... }
Save Changes
Cancel
Omu
answered at 23 Aug 2018
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK