class ActionView::I18nProxy

Experimental RBS support (using type sampling data from the type_fusion project).

# sig/action_view/rendering.rbs

class ActionView::I18nProxy < I18n::Config
  def locale: () -> untyped
end

:nodoc:
it will trigger the lookup_context and consequently expire the cache.
This is a class to fix I18n global state. Whenever you provide I18n.locale during a request,

def initialize(original_config, lookup_context)

def initialize(original_config, lookup_context)
  original_config = original_config.original_config if original_config.respond_to?(:original_config)
  @original_config, @lookup_context = original_config, lookup_context
end

def locale

Experimental RBS support (using type sampling data from the type_fusion project).

def locale: () -> untyped

This signature was generated using 2 samples from 1 application.

def locale
  @original_config.locale
end

def locale=(value)

def locale=(value)
  @lookup_context.locale = value
end