Skip to content

Commit

Permalink
Merge pull request #46 from GenomicDataInfrastructure/refactor-with-u…
Browse files Browse the repository at this point in the history
…rl-labels

fix title translation
  • Loading branch information
hcvdwerf authored Apr 16, 2024
2 parents 77e5fd7 + fa7349c commit 1548207
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckanext/gdi_userportal/logic/action/translation_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,6 @@ def replace_search_facets(data, translation_dict):
new_facets = {}
for key, facet in data.items():
title = facet["title"]
new_facets[key] = {"title": translation_dict.get(title, title)}
new_facets[key] = {"title": get_translations([title]).get(title, title)}
new_facets[key]["items"] = [_change_facet(item, translation_dict) for item in facet["items"]]
return data
return new_facets

0 comments on commit 1548207

Please sign in to comment.