Fixed mainLanguage detection in ContentService