Skip to content

Commit

Permalink
Fix syntax in documentation for I18n::Backend::Base.interpolate
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-lord committed Mar 24, 2024
1 parent 74258ad commit b0f1e1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/i18n/backend/base.rb
Expand Up @@ -188,8 +188,8 @@ def pluralize(locale, entry, count)
#
# if the given subject is an array then:
# each element of the array is recursively interpolated (until it finds a string)
# method interpolates ["yes, %{user}", ["maybe no, %{user}, "no, %{user}"]], :user => "bartuz"
# # => "["yes, bartuz",["maybe no, bartuz", "no, bartuz"]]"
# method interpolates ["yes, %{user}", ["maybe no, %{user}", "no, %{user}"]], :user => "bartuz"
# # => ["yes, bartuz", ["maybe no, bartuz", "no, bartuz"]]
def interpolate(locale, subject, values = EMPTY_HASH)
return subject if values.empty?

Expand Down

0 comments on commit b0f1e1c

Please sign in to comment.