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: () -> Symbol
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: () -> Symbol

This signature was generated using 15 samples from 2 applications.

def locale
  @original_config.locale
end

def locale=(value)

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