Skip to content

Commit

Permalink
Fix example doc
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-lord committed Mar 24, 2024
1 parent 7559fef commit 40aef98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/i18n.rb
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def translate!(key, **options)
# I18n.t 'example.one' == 'One interpolation %{foo}'
# I18n.t 'example.two' == 'Two interpolations %{foo} %{bar}'
# I18n.t 'example.three' == ['One %{foo}', 'Two %{bar}', 'Three %{baz}']
# I18n.t 'example.one', locale: :other == 'One interpolation %{baz} %{bar}'
# I18n.t 'example.one', locale: :other == 'One interpolation %{baz}'
#
# Then we can expect the following results:
# I18n.interpolation_keys('example.zero') #=> []
Expand Down

0 comments on commit 40aef98

Please sign in to comment.