Skip to content

Commit

Permalink
override #available_translations to english, only
Browse files Browse the repository at this point in the history
  • Loading branch information
aploshay committed Oct 3, 2024
1 parent 9291f7f commit 68a7c7e
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions app/helpers/hyrax_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,12 @@ def render_markdown(field)
DataCatalog::MarkdownService.call(text).html_safe
end

# import hyrax method
# 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
{
'de' => 'Deutsch',
'en' => 'English',
'es' => 'Español',
'fr' => 'Français',
'it' => 'Italiano',
'pt-BR' => 'Português do Brasil',
'zh' => '中文'
'en' => 'English'
}
end
end

0 comments on commit 68a7c7e

Please sign in to comment.