Skip to content

Commit

Permalink
Fix I18n.transliterate
Browse files Browse the repository at this point in the history
  • Loading branch information
takahashim committed Jul 13, 2024
1 parent a5ea373 commit 0729199
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/initializers/decidim_override.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,10 @@ def map_element(html_options = {})
end
end
end

# Fix I18n.transliterate()
I18n.config.backend.instance_eval do
@transliterators[:ja] = I18n::Backend::Transliterator.get( ->(string) { string } )
@transliterators[:en] = I18n::Backend::Transliterator.get( ->(string) { string } )
end
end

0 comments on commit 0729199

Please sign in to comment.