Skip to content

Commit

Permalink
fix(text api): make translation_language_preference affect only 'en' …
Browse files Browse the repository at this point in the history
…return text, allowing the api to return hebrew text regardless of translation lang
  • Loading branch information
yonadavGit committed Oct 14, 2024
1 parent 3b0b102 commit 6d337ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sefaria/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ def bundle_many_texts(refs, useTextFamily=False, as_sized_string=False, min_char
'url': oref.url()
}
else:
he_tc = model.TextChunk(oref, "he", actual_lang=translation_language_preference, vtitle=hebrew_version)
he_tc = model.TextChunk(oref, "he", vtitle=hebrew_version)
en_tc = model.TextChunk(oref, "en", actual_lang=translation_language_preference, vtitle=english_version)
if hebrew_version and he_tc.is_empty():
raise NoVersionFoundError(f"{oref.normal()} does not have the Hebrew version: {hebrew_version}")
Expand Down

0 comments on commit 6d337ea

Please sign in to comment.