You need to create your own version of PluralizationService that supports Swedish. Create a derived class that inherits from PluralizationService and overrides the methods there to provide functionality. It seems that there is no built-in service that supports the Swedish language. Once this is done, install the new service in the EntityModelSchemaGenerator.PluralizationService property.
This blog post explains this process very well.
As you may or may not know, it is a little difficult to pluralize the words in Swedish, as there is a gender system in nouns that is mostly irregular. For example:
- Monkey β Monkey is Apa β Apok
- Banana β Bananas - Banana β Banana
- Deer β Deer - Hyort β Hyortar
So, linguistic rules are a little harder to do correctly, and there are many special cases everywhere like Fot β FΓΆtter (coincidentally, also a special case in English with legs).
Dervall
source share