Spain has not officially announced it will prosecute Netanyahu and Israeli leaders in its domestic courts for war crimes; instead, the International Criminal Court (ICC) has issued arrest warrants for Netanyahu and Yoav Gallant.
Spain officially announces it will prosecute Netanyahu and Israeli leaders in its domestic courts for committing war crimes.

FactVerify
Source: factverify.com
What the Evidence Shows
The claim states that Spain officially announced it will prosecute Netanyahu and Israeli leaders in its domestic courts for committing war crimes. None of the provided sources support this claim. Instead, the sources consistently report that the International Criminal Court (ICC), an international judicial body, has issued arrest warrants for Israeli Prime Minister Benjamin Netanyahu and former Defense Minister Yoav Gallant on charges related to war crimes and crimes against humanity.
The ICC's jurisdiction is based on the Rome Statute, and it operates independently of any single nation's domestic courts. There is no mention in any source of Spain taking domestic legal action or announcing prosecution against Netanyahu or other Israeli leaders. The focus is on the ICC's legal proceedings, which Israel rejects but which continue nonetheless.
Therefore, the claim that Spain itself will prosecute these individuals domestically is not supported by any evidence and is false.