This continued up until the US actually declared war on Germany. Countries don't particularly care what other countries do in their borders. It's only when they start threatening other countries that you'll see hard actions taken.
On the other hand, those boycotts pushed German Nazis to counter-boycott Jewish businesses and double down on anti-Jewish propaganda, and as far as I can read, didn't meaningfully hamper the escalation of Nazism toward war.
On the third hand, to do nothing is to side with the oppressor.
We need to start forcing companies to move production back home and we need to pay the 3x increase in prices that comes with that without as much as a single complaint. As long as our main concern is price, companies will outsource to poorer countries, which inevitably leads to exploitation.
We need governments to require full supply chain tracing, outlaw doing business with human rights violators and actually enforce all of that through regular inspections. If they find a single child worker in your supply chain, you have a month to stop doing business with them or pay 5% last year's revenue in fines.
This is what we have politics for. If you live in a democratic country, that's something you can actually do! Your money, however, is meaningless.
Librem 5 USA: https://puri.sm/products/librem-5-usa
5G Blackberry, with no CCP components: https://www.engadget.com/5g-blackberry-keyboard-global-flags...
Apple, Samsung, and Sony are pulling manufacturing out of Communist China.
(I say this with nothing but respect for Librem and the Pi foundation. I'd get a Librem 5 if it didn't cost 5x as much as my car )