brew vendor-gems: commit updates.
This commit is contained in:
parent
f2698700b1
commit
0d000c320b
@ -24,7 +24,7 @@ kernel = (class << ::Kernel; self; 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/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/tzinfo-2.0.6/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/zeitwerk-2.6.8/lib")
|
||||
|
||||
@ -16,6 +16,8 @@ module I18n
|
||||
#
|
||||
# The implementation assumes that all backends added to the Chain implement
|
||||
# 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
|
||||
module Implementation
|
||||
include Base
|
||||
@ -63,8 +63,8 @@ module I18n
|
||||
end
|
||||
|
||||
def message
|
||||
if options[:default].is_a?(Array)
|
||||
other_options = ([key, *options[:default]]).map { |k| normalized_option(k).prepend('- ') }.join("\n")
|
||||
if (default = options[:default]).is_a?(Array) && default.any?
|
||||
other_options = ([key, *default]).map { |k| normalized_option(k).prepend('- ') }.join("\n")
|
||||
"Translation missing. Options considered were:\n#{other_options}"
|
||||
else
|
||||
"Translation missing: #{keys.join('.')}"
|
||||
@ -1,5 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module I18n
|
||||
VERSION = "1.14.0"
|
||||
VERSION = "1.14.1"
|
||||
end
|
||||
Loading…
x
Reference in New Issue
Block a user