(value)
Returns a Hebrew ref for the english ref passed in.
Returns a Hebrew ref for the english ref passed in.
Returns a Hebrew ref for the english ref passed in .
def hebrew_parasha_name(value):
	"""
	Returns a Hebrew ref for the english ref passed in.
	"""
	from sefaria.model import Term, library
	if not value:
		return ""
	if "-" in value:
		if value == "Lech-Lecha":
			return hebrew_parasha_name(value.replace("-", " "))
		else:
			names = value.split("-")
			return ("-").join(map(hebrew_parasha_name, names))
	else:
		try:
			parasha = library.get_simple_term_mapping().get(value)["he"]
		except Exception as e:
			logger.error(str(e))
			parasha = value
		return parasha
def hebrew_parasha_name ( value ) : from sefaria . model import Term , library if not value : return "" if "-" in value : if value == "Lech-Lecha" : return hebrew_parasha_name ( value . replace ( "-" , " " ) ) else : names = value . split ( "-" ) return ( "-" ) . join ( map ( hebrew_parasha_name , names ) ) else : try : parasha = library . get_simple_term_mapping ( ) . get ( value ) [ "he" ] except Exception as e : logger . error ( str ( e ) ) parasha = value return parasha