Skip to content

Commit

Permalink
Merge pull request #822 from Sefaria/download-merged-versions-fix
Browse files Browse the repository at this point in the history
Restore option to download merged versions
  • Loading branch information
edamboritz authored May 1, 2022
2 parents ebe4acc + bb4ac4a commit c9186ba
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion static/js/NavSidebar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,12 @@ const DownloadVersions = ({sref}) => {
versions.map(v => ({
value: `${v.versionTitle}/${v.language}`,
label: `${Sefaria._v({he: v.versionTitleInHebrew ? v.versionTitleInHebrew : v.versionTitle, en: v.versionTitle})} (${Sefaria._(Sefaria.translateISOLanguageCode(v.actualLanguage))})`
}))
})).concat( // add merged versions for both primary langs "en" and "he" where applicable. (not yet possible for individual actual languages)
versions.map(v => v.language).unique().map(lang => ({
value: `merged/${lang}`,
label: `${Sefaria._("Merged Version", "DownloadVersions")} (${Sefaria._(Sefaria.translateISOLanguageCode(lang))})`,
}))
)
}
placeholder={Sefaria._( "Select Version", "DownloadVersions")}
onChange={handleInputChange}
Expand Down
3 changes: 2 additions & 1 deletion static/js/sefaria/strings.js
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,8 @@ const Strings = {
"Select Format": "בחירת פורמט הורדה",
"Text (with Tags)": "טקסט (עם תיוגים)",
"Text (without Tags)": "טקסט (ללא תיוגים)",
"Select Version": "בחירת מהדורה/תרגום"
"Select Version": "בחירת מהדורה/תרגום",
"Merged Version": "גרסה משולבת"
},
"FilterableList": {
"Alphabetical": "אלפביתי",
Expand Down

0 comments on commit c9186ba

Please sign in to comment.