code: def get_language_tabs(self):
          
          current_language = self.get_current_language()
          if self.object:
              available_languages = list(self.object.get_available_languages())
          else:
              available_languages = []
  
          return get_language_tabs(self.request, current_language, available_languages)
docs: Determine the language tabs to show.