Increase the MAX_LANGUAGES limit in language detection

Summary

The maximum number of languages supported by the language detection feature is limited to 5. After reviewing the class corresponding to the language detection feature, it seems like the max number of languages is hard coded in the LanguageDetection class.

module Gitlab
  class LanguageDetection
    MAX_LANGUAGES = 5

Proposal

Increase the value of MAX_LANGUAGES or provide an option to configure this value by the end users.

Edited by 🤖 GitLab Bot 🤖