code: def get_spellcheck_config():
      
      config = {}
      if mce_settings.USE_SPELLCHECKER:
          from enchant import list_languages
          enchant_languages = list_languages()
          if settings.DEBUG:
              logger.info('Enchant languages: {0}'.format(enchant_languages))
          lang_names = []
          for lang, name in settings.LANGUAGES:
              lang = convert_language_code(lang)
              if lang not in enchant_languages:
                  lang = lang[:2]
              if lang not in enchant_languages:
                  logger.warning('Missing {0} spellchecker dictionary!'.format(lang))
                  continue
              if config.get('spellchecker_language') is None:
                  config['spellchecker_language'] = lang
              lang_names.append('{0}={1}'.format(name, lang))
          config['spellchecker_languages'] = ','.join(lang_names)
      return config
docs: Create TinyMCE spellchecker config based on Django settings
  
      :return: spellchecker parameters for TinyMCE
      :rtype: dict