Cannot set default and only culture in ASP.Net Core app

后端 未结 1 1791
后悔当初
后悔当初 2021-01-19 02:32

I\'m working on Polish operating system:

In my Statup.csclass I have following code

        // Configure the localization options
               


        
1条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-19 02:41

    There is one important thing, not mentioned in documentation. UseRequestLocalization has to be placed before UseMvc, mine was below.

    0 讨论(0)
提交回复
热议问题