North Korea is doing exactly that as we speak.
Obviously many people fleeing Germany and the occupied countries during that period, knew something bad was happening, but overall, it’s my understanding that before and during the war, the rest of the world really wasn’t aware, or at least not aware about how bad it was.
It was the invasion of other countries that was cause to fight Germany. It was much less of a humanitarian act, though after the war it’s easy to paint it as one.
https://en.wikipedia.org/wiki/The_Mass_Extermination_of_Jews...
https://timesmachine.nytimes.com/timesmachine/1942/02/13/852...
The catch, of course, is that governments don’t act with a single voice: during war time intelligence agencies would be loathe to confirm anything if it revealed information about their sources, and there were enough anti-semites and Nazi sympathizers that all but the most conclusive evidence might be downplayed or lead to consequences (reportedly, concern losing support in Hungary was a factor in not leading with what was happening to the Jews).
https://archive.org/details/TheMassExterminationOfJewsInGerm...
I had no idea that the "United Nations" was a thing during WWII (though it appears to be more of a synonym for the allies than the body we're familiar with today).