The key ingredients are always a policy of language planning by the state or other agencies backed by funding to support a language or dialect over others, publish books including on grammar, dictionaries, etc., and most importantly adoption of that language in schools with standard text books.