Humanizer, is an amazing open source library for taking things that are ugly "HelloWorld" for example and making it human friendly such as "Hello World". At its core if you install it using the Humanizer package, you have built in support for many, languages, which is awesome, but you will get some assembly bloat & behavior changes that may not be exactly what you want. As out of the box, humanizer deploys with support for "all supported languages" just in case! Which might be a bit overkill!
We have a few options.
Option 1: English Only
If you are ONLY using English, it is really easy to simply change your NuGet package reference. By adding Humanizer.Core rather than Humanizer you will get only what you need and a much smaller deployment.
Option 2: Fixed List of Assemblies, and Explicit
If you know your languages and want full granular control over the packages used, you can use the language-specific packages, rather than the main one. So if you want English, Spanish, and French, you could install three packages: Humanizer.Core, Humanizer.Core.es, Humanizer.Core.fr to get all of your needed elements.
This is explicit, clean, and ONLY gets you the bloat that you want, and nothing that you don't need! Pretty nice, but if you have a lot of supported languages, it can be cumbersome.
Option 3: Trim/Clean @ Build with Project Configurations
Another way to help limit this a bit is to trim/clean at the build time, this is the route I've been going which really helps from a deployment configuration as I can be explicit as part of my project but don't bloat my managed packages. Simply add the following to your project file to only include the ones you need>
<PropertyGroup> <SatelliteResourceLanguages>en;es</SatelliteResourceLanguages> </PropertyGroup>
Your Solution - Your Choice
Everyone's solution is going to have a different need, but I find that the third option is really helpful for me, especially if I share my assembly with others or similar, but your mileage may vary! If you use Humanizer, do you restrict deployments/languages?