add addLanguage API to doc