How did Nazi Germany and Imperial Japan's people go from predominantly supporting extremist ideologies to allies of the WW2 winners?

by CodeBreaker_666
ReaperReader

There's always more to say but you may be interested in an answer I wrote to a similar question about 3-4 months, with a focus on West Germany.