How did Slovak become a language in one week in 1843?

The whole thing happened in a priest's house. Between 11 and 16 July 1843, Ľudovít Štúr met two colleagues, Jozef Miloslav Hurban and Michal Miloslav Hodža, at the parish in Hlboké, where Hurban was the priest. In those six days they codified a new standard Slovak. On 17 July they showed the result to the poet Ján Hollý.
Why did it stick? They built it on the Central Slovak dialect, which a larger share of people spoke. An earlier standard from Anton Bernolák, published in 1790, had leaned mainly on Western Slovak. Some scholars say that choice helps explain why Štúr's version caught on and Bernolák's faded.
The week did not quite settle it, though. In 1851 Catholic and Lutheran representatives agreed on one shared codification. It was a compromise between the Štúr and Bernolák standards, so Slovak ended up as a merger of two rival attempts.
Sources: spectator.sme.sk, edl.ecml.at, 3seaseurope.com