Issue #2821038 reported by hoebekewim: TypeError when a single language is active together with translation and detection