docs: def load_child_articles_for_section(
          context, section, featured_in_section=None, count=5):
      """
      Returns all child articles
      If the `locale_code` in the context is not the main language, it will
      return the translations of the live articles.
      """
      request = context.get('request')
      locale = context.get('locale_code')
      main_language_page = section.get_main_language_page()
      settings = SiteSettings.for_site(request.site) \
          if request else None
  
      # TODO: Consider caching the pks of these articles using a timestamp on
      # section as the key so tha twe don't always do these joins
      article_ordering = settings and settings.article_ordering_within_section
      order_by = ArticleOrderingChoices.\
          get(settings.article_ordering_within_section).name.lower() \
          if article_ordering \
          and settings.article_ordering_within_section !=\
          ArticleOrderingChoices.CMS_DEFAULT_SORTING\
          else '-first_published_at'
  
      order_by = order_by if order_by.find('_desc') == -1 \
          else '-{}'.format(order_by.replace('_desc', ''))
  
      child_articles = ArticlePage.objects.child_of(
          main_language_page).filter(
          language__is_main_language=True).order_by(order_by)
  
      if featured_in_section is not None:
          child_articles = child_articles.filter(
              featured_in_section=featured_in_section)\
              .order_by('-featured_in_section_start_date')
  
      related_articles = ArticlePage.objects.filter(
          related_sections__section__slug=main_language_page.slug)
      qs = list(chain(
          get_pages(context, child_articles, locale),
          get_pages(context, related_articles, locale)))
  
      # Pagination
      if count:
          p = context.get('p', 1)
          paginator = Paginator(qs, count)
  
          try:
              articles = paginator.page(p)
          except PageNotAnInteger:
              articles = paginator.page(1)
          except EmptyPage:
              articles = paginator.page(paginator.num_pages)
      else:
          articles = qs
      if not locale:
          return articles
  
      context.update({'articles_paginated': articles})
      return articles