Resources don't load current culture

前端 未结 1 1860
逝去的感伤
逝去的感伤 2021-01-06 08:58

I\'m trying to change the culture on a ASP.NET Web API 2 but I can\'t figure out which function to override

I have tried ExecuteAsync and <

1条回答
  •  臣服心动
    2021-01-06 09:28

    I figured out the problem.

    When you compile a project with resources, it creates a folder for each culture with a .dll

    So I had to copy those folders too. Not only resources.dll because this is only the default language. That's why no matter what was the culture, my resources were in English.

    So to use resources.dll

    1. you have to import that reference
    2. copy all your culture folders in the bin folder with all the .dll

    Note: you don't have to add a reference for each culture, only your default one.

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