code: func (s *Site) getLanguagePermalinkLang(alwaysInSubDir bool) string {
  
  	if !s.Info.IsMultiLingual() || s.h.IsMultihost() {
  		return ""
  	}
  
  	if alwaysInSubDir {
  		return s.Language().Lang
  	}
  
  	isDefault := s.Language().Lang == s.multilingual().DefaultLang.Lang
  
  	if !isDefault || s.Info.defaultContentLanguageInSubdir {
  		return s.Language().Lang
  	}
  
  	return ""
  }
docs: // get any lanaguagecode to prefix the relative permalink with.