Skip to content

Commit

Permalink
[TYPO] explicitely -> explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
movermeyer committed Jun 9, 2022
1 parent b805537 commit 0668a79
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/i18n/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def default_locale=(locale)
end

# Returns an array of locales for which translations are available.
# Unless you explicitely set these through I18n.available_locales=
# Unless you explicitly set these through I18n.available_locales=
# the call will be delegated to the backend.
def available_locales
@@available_locales ||= nil
Expand Down
4 changes: 2 additions & 2 deletions lib/i18n/tests/basics.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ def teardown
assert_equal I18n.available_locales, I18n.backend.available_locales
end

test "available_locales memoizes when set explicitely" do
test "available_locales memoizes when set explicitly" do
I18n.backend.expects(:available_locales).never
I18n.available_locales = [:foo]
I18n.backend.store_translations('de', :bar => 'baz')
I18n.reload!
assert_equal [:foo], I18n.available_locales
end

test "available_locales delegates to the backend when not set explicitely" do
test "available_locales delegates to the backend when not set explicitly" do
original_available_locales_value = I18n.backend.available_locales
I18n.backend.expects(:available_locales).returns(original_available_locales_value).twice
assert_equal I18n.backend.available_locales, I18n.available_locales
Expand Down

0 comments on commit 0668a79

Please sign in to comment.