WASHINGTON — Trea Turner hit two homers, including his first career grand slam, and drove in eight runs to help the Washington Nationals rally from a nine-run deficit and defeat the Miami Marlins 14-12 in a wild slugfest Thursday night to end a five-game losing streak.

The Nationals, who dropped 17 of their previous 22, have won 12 consecutive games against Miami dating to last season – their longest winning streak against any team since the franchise moved to Washington in 2005.

Miami scored an unearned run in the first, and capped a six-run second on Martin Prado’s three-run homer off the left-field foul pole. The Marlins made it 9-0 on Justin Bour’s two-run homer in the fourth off Jeremy Hellickson.

NOTES

YANKEES: The Yankees recalled middle infielder Tyler Wade to take the roster spot of the injured Gleyber Torres. Torres, who is on the 10-day disabled list, could need longer than those 10 days to heal, per GM Brian Cashman.

“It’s a 10-day DL, it takes us right before the All-Star break,” Cashman said of Torres, who was diagnosed with a right hip strain Wednesday. “If he’s ready, which I don’t know if he will be within the 10 days, he’d probably be ready to go right after.”

Wade, 23, was 3 for 35 in 13 games with the Yankees this season before being sent to Triple-A on April 22.

INDIANS: Melky Cabrera re-signed with Cleveland, which needs outfield depth and protection while Lonnie Chisenhall and Bradley Zimmer are injured.

Cabrera signed a minor league deal and was assigned to Triple-A Columbus. He was with the club earlier this season before being designated for assignment last month.

TWINS: The Twins signed first-round draft pick Trevor Larnach, an outfielder, to a minor league contract that includes a $2.55 million signing bonus.

MARINERS: Pitcher Wade LeBlanc is guaranteed $2.75 million under a new contract covering 2019, a deal with three options that would be worth $31.3 million over four years if he pitches 180 innings or more each season.