Skip to content

Commit

Permalink
Merge pull request #9 from IUBLibTech/iulrdc-19_drop_locale_link
Browse files Browse the repository at this point in the history
prune list of available translations to English, only
  • Loading branch information
dlpierce authored Oct 11, 2024
2 parents b149faf + 68a7c7e commit bd1580a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/helpers/hyrax_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,13 @@ def render_markdown(field)
text = field[:value].join("\n\n")
DataCatalog::MarkdownService.call(text).html_safe
end

# override hyrax method
# Which translations are available for the user to select
# @return [Hash{String => String}] locale abbreviations as keys and flags as values
def available_translations
{
'en' => 'English'
}
end
end

0 comments on commit bd1580a

Please sign in to comment.