I'm building a multi-language website using ASP.NET and MVC 5. In a separate project named Resources I have a Resources.resx where all strings are kept.
From experience with a previous project I worked at, I thought that simply adding language suffixes such as "en", "es", "fr" to the Resources.resx
would work. So that in the end, I would have several resources files called Resources.en.resx
, Resources.es.resx
and so on.
So far, I have been using only one Resources.resx
file in one language, which I have had no problems with. But now it's time to start adding strings in different languages, and when I rename the file with the language suffix (and do nothing else), I can't access the resources anymore from a separate project. One thing that I have noticed is that the Resources.Designer.cs is completely blank after adding the suffix to the name, and I think this may be the root of my issue.
The answer to this question did not help as I already have set the Access Modifier for the resources as Public
.
What am I missing?