rewrite the function `addLanguageFiles()`