Ahed Tamimi.

An Israeli military judge Wednesday ordered a Palestinian teenager who was arrested after a viral video showed her hitting two Israeli soldiers held in custody through her trial, possibly for months, despite calls from rights groups for her release.

The teenager's mother has also been ordered held until trial in the high-profile case that has put the family at the centre of a propaganda war between Israelis and Palestinians.

"I found no alternative other than to order her detention in custody until the end of proceedings," the judge ruled, referring to 16-year-old Ahed Tamimi.

"The gravity of the offences of which she is accused does not allow an alternative to custody."

Ahed Tamimi has been hailed as a hero by Palestinians who see her as bravely standing up to Israel's occupation of the West Bank.

Israelis accuse her family of using her as a pawn in staged provocations.

She has been charged with 12 counts including assault and could face a lengthy jail term if convicted.

The charges relate to events in the video and five other incidents. They include stone-throwing, incitement and making threats.

The judge's decision on Wednesday raises the possibility she could spend months in custody before the conclusion of her case.

Representatives from the French and Swedish consulates as well as the European Union attended the hearing for Tamimi, who sat impassively in a khaki prison jacket.

"The court said that because she is so dangerous there is no possibility of bail," her lawyer Gaby Lasky told reporters.

Human rights groups have criticised the minor's continued detention since her arrest on December 19, while the EU has expressed concern.

Lasky says it violates international child welfare conventions.

Her mother was arrested over the incident the same day, while her cousin Nour Tamimi, 20, was arrested on December 20. Nour was released on bail on January 5.

The accusations against Nariman Tamimi include using Facebook "to incite others to commit terrorist attacks" and participating in the incident on video.

- 'Discriminatory treatment' -

Ahed Tamimi's family says the December 15 incident that led to the arrests occurred in the yard of their home in Nabi Saleh, near Ramallah in the West Bank.

Israel's military said the soldiers were in the area to prevent Palestinians from throwing stones at Israeli motorists.

A video shows the cousins approaching two soldiers and telling them to leave before shoving, kicking and slapping them.

Ahed Tamimi is the most aggressive of the two in the video.

The heavily armed soldiers do not respond to what appears to be an attempt to provoke rather than seriously harm them.

They then move backwards after Nariman Tamimi becomes involved.

The scuffle took place amid clashes and protests against US President Donald Trump's controversial recognition of Jerusalem as Israel's capital.

Relatives say that a member of the Tamimi family was wounded in the head by a rubber bullet fired during those protests.

Seventeen Palestinians have been killed since Trump's declaration on December 6, most of them in clashes with Israeli forces. One Israeli has been shot dead since then.

Ahed Tamimi has been involved in a series of previous incidents, with older pictures of her confronting soldiers widely published.

She has become something of an icon for Palestinians who have flooded social media with praise and support.

Palestinian president Mahmud Abbas has praised her and spoken with her father.

Rights group Amnesty International has called on Israel to release her immediately, while the UN Office for the High Commissioner for Human Rights has criticised Israeli authorities' actions in the case.

It said "deprivation of liberty of children shall only be used as a measure of last resort and for the shortest appropriate period of time, and the best interests of the child are to be a primary consideration."

The video has led to varied reactions among Israelis.

Some have hailed the restraint of the soldiers, but others said the Tamimis' actions merited a tougher response and called for a heavy sentence.

Source:AFP