Implement replaceLang