On the eve of World War II , the Czech part of the country was forcibly annexed to the Third Reich , and the Slovaks declared independence as a fascist ally of Nazi Germany .