Update RBI files for i18n.

This commit is contained in:
BrewTestBot 2022-02-15 18:11:05 +00:00
parent ddcf41eba8
commit 2448757557
No known key found for this signature in database
GPG Key ID: 82D7D104050B0F0F
2 changed files with 50 additions and 15 deletions

View File

@ -79,6 +79,7 @@ module I18n::Backend::Base
def pluralization_key(entry, count); end
def pluralize(locale, entry, count); end
def resolve(locale, object, subject, options = T.unsafe(nil)); end
def resolve_entry(locale, object, subject, options = T.unsafe(nil)); end
def subtrees?; end
def translate_localization_format(locale, object, format, options); end
end
@ -148,7 +149,7 @@ end
module I18n::Backend::Fallbacks
def exists?(locale, key, options = T.unsafe(nil)); end
def extract_non_symbol_default!(options); end
def resolve(locale, object, subject, options = T.unsafe(nil)); end
def resolve_entry(locale, object, subject, options = T.unsafe(nil)); end
def translate(locale, key, options = T.unsafe(nil)); end
private
@ -266,6 +267,38 @@ class I18n::Backend::KeyValue::SubtreeProxy
def nil?; end
end
class I18n::Backend::LazyLoadable < ::I18n::Backend::Simple
def initialize(lazy_load: T.unsafe(nil)); end
def available_locales; end
def eager_load!; end
def initialized?; end
def lookup(locale, key, scope = T.unsafe(nil), options = T.unsafe(nil)); end
def reload!; end
protected
def init_translations; end
def initialized_locales; end
private
def assert_file_named_correctly!(file, translations); end
def filenames_for_current_locale; end
def lazy_load?; end
def load_translations_and_collect_file_errors(files); end
end
class I18n::Backend::LazyLoadable::FilenameIncorrect < ::StandardError
def initialize(file, expected_locale, unexpected_locales); end
end
class I18n::Backend::LocaleExtractor
class << self
def locale_from_path(path); end
end
end
module I18n::Backend::Memoize
def available_locales; end
def eager_load!; end
@ -462,6 +495,12 @@ end
I18n::Gettext::PLURAL_SEPARATOR = T.let(T.unsafe(nil), String)
I18n::INTERPOLATION_PATTERN = T.let(T.unsafe(nil), Regexp)
class I18n::InvalidFilenames < ::I18n::ArgumentError
def initialize(file_errors); end
end
I18n::InvalidFilenames::NUMBER_OF_ERRORS_SHOWN = T.let(T.unsafe(nil), Integer)
class I18n::InvalidLocale < ::I18n::ArgumentError
def initialize(locale); end
@ -654,6 +693,14 @@ class I18n::UnknownFileType < ::I18n::ArgumentError
def type; end
end
class I18n::UnsupportedMethod < ::I18n::ArgumentError
def initialize(method, backend_klass, msg); end
def backend_klass; end
def method; end
def msg; end
end
module I18n::Utils
class << self
def deep_merge(hash, other_hash, &block); end

View File

@ -3498,13 +3498,7 @@ end
Net::HTTPFatalErrorCode = Net::HTTPClientError
class Net::HTTPInformation
end
Net::HTTPInformationCode::EXCEPTION_TYPE = Net::HTTPError
class Net::HTTPInformation
end
Net::HTTPInformationCode = Net::HTTPInformation
class Net::HTTPLoopDetected
HAS_BODY = ::T.let(nil, ::T.untyped)
@ -3564,13 +3558,7 @@ Net::HTTPServerErrorCode = Net::HTTPServerError
Net::HTTPSession = Net::HTTP
class Net::HTTPSuccess
end
Net::HTTPSuccessCode::EXCEPTION_TYPE = Net::HTTPError
class Net::HTTPSuccess
end
Net::HTTPSuccessCode = Net::HTTPSuccess
class Net::HTTPURITooLong
HAS_BODY = ::T.let(nil, ::T.untyped)