Merge pull request #15523 from Homebrew/dependabot/bundler/Library/Homebrew/i18n-1.14.1

build(deps): bump i18n from 1.14.0 to 1.14.1 in /Library/Homebrew
This commit is contained in:
Bo Anderson 2023-06-06 00:06:34 +01:00 committed by GitHub
commit 07a66d4f57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
36 changed files with 7 additions and 5 deletions

View File

@ -28,7 +28,7 @@ GEM
hana (1.3.7) hana (1.3.7)
highline (2.0.3) highline (2.0.3)
hpricot (0.8.6) hpricot (0.8.6)
i18n (1.14.0) i18n (1.14.1)
concurrent-ruby (~> 1.0) concurrent-ruby (~> 1.0)
json (2.6.3) json (2.6.3)
json_schemer (0.2.24) json_schemer (0.2.24)

View File

@ -24,7 +24,7 @@ kernel = (class << ::Kernel; self; end)
end end
end end
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/concurrent-ruby-1.2.2/lib/concurrent-ruby") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/concurrent-ruby-1.2.2/lib/concurrent-ruby")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/i18n-1.14.0/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/i18n-1.14.1/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/minitest-5.18.0/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/minitest-5.18.0/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/tzinfo-2.0.6/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/tzinfo-2.0.6/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/zeitwerk-2.6.8/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/zeitwerk-2.6.8/lib")

View File

@ -16,6 +16,8 @@ module I18n
# #
# The implementation assumes that all backends added to the Chain implement # The implementation assumes that all backends added to the Chain implement
# a lookup method with the same API as Simple backend does. # a lookup method with the same API as Simple backend does.
#
# Fallback translations using the :default option are only used by the last backend of a chain.
class Chain class Chain
module Implementation module Implementation
include Base include Base

View File

@ -63,8 +63,8 @@ module I18n
end end
def message def message
if options[:default].is_a?(Array) if (default = options[:default]).is_a?(Array) && default.any?
other_options = ([key, *options[:default]]).map { |k| normalized_option(k).prepend('- ') }.join("\n") other_options = ([key, *default]).map { |k| normalized_option(k).prepend('- ') }.join("\n")
"Translation missing. Options considered were:\n#{other_options}" "Translation missing. Options considered were:\n#{other_options}"
else else
"Translation missing: #{keys.join('.')}" "Translation missing: #{keys.join('.')}"

View File

@ -1,5 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module I18n module I18n
VERSION = "1.14.0" VERSION = "1.14.1"
end end