Skip to content

Commit

Permalink
Merge pull request #613 from codeforjapan/fix-612
Browse files Browse the repository at this point in the history
  • Loading branch information
ayuki-joto authored Jul 14, 2024
2 parents a5ea373 + c47f1f6 commit 9d2af10
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 9d2af10

Please sign in to comment.