1, chinaistheofficiallanguage means that Chinese is the official language.
2. In this short sentence, the use of a means a new meaning, but the use here is a special pronoun with the unique attribute that there is only one China in the world.