Rules against swearing are only rules if mom is there to wash your mouth out with soap afterwards.
The system of international law has become meaningless, because there are no practical enforcement mechanisms. The biggest players are immune to it and it has only been actioned up when those big players have decided to use it as a stick against some small player.
Laws are only meaningful when there is enforcement.