Sha256: 2ea3213d78fc0af3a4450ac04f52732a43cd042c805582871c4064e66c98c8a0

Contents?: true

Size: 577 Bytes

Versions: 27

Compression:

Stored size: 577 Bytes

Contents

class Lalala::ExtI18n::NegotiationAdapter

  def default_locale
    I18n.default_locale
  end

  def available_locales
    I18n.available_locales || []
  end

  def default_locale_for_hostname(hostname)
    nil
  end

  def locale_for_ignored
    default_locale
  end

  def locales_for_hostname(hostname)
    available_locales
  end

  def action(env, deterministic)
    return [:call, env]
  end

  def ignored?(env)
    %r{^/(lalala|assets)(/|$)} === env['PATH_INFO']
  end

  def allow_accept_language
    !!Rails.configuration.lalala.i18n.allow_accept_language
  end

end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
lalala-4.1.0.dev.425 lib/lalala/ext_i18n/negotiation_adapter.rb
lalala-4.1.0.dev.420 lib/lalala/ext_i18n/negotiation_adapter.rb
lalala-4.1.0.dev.419 lib/lalala/ext_i18n/negotiation_adapter.rb
lalala-4.1.0.dev.418 lib/lalala/ext_i18n/negotiation_adapter.rb
lalala-4.1.0.dev.417 lib/lalala/ext_i18n/negotiation_adapter.rb
lalala-4.0.0.dev.416 lib/lalala/ext_i18n/negotiation_adapter.rb
lalala-4.1.0.dev.415 lib/lalala/ext_i18n/negotiation_adapter.rb
lalala-4.1.0.dev.414 lib/lalala/ext_i18n/negotiation_adapter.rb
lalala-4.1.0.dev.413 lib/lalala/ext_i18n/negotiation_adapter.rb
lalala-4.1.0.dev.412 lib/lalala/ext_i18n/negotiation_adapter.rb
lalala-4.1.0.dev.411 lib/lalala/ext_i18n/negotiation_adapter.rb
lalala-4.1.0.dev.410 lib/lalala/ext_i18n/negotiation_adapter.rb
lalala-4.1.0.dev.409 lib/lalala/ext_i18n/negotiation_adapter.rb
lalala-4.0.0.dev.407 lib/lalala/ext_i18n/negotiation_adapter.rb
lalala-4.1.0.dev.408 lib/lalala/ext_i18n/negotiation_adapter.rb
lalala-4.1.0.dev.398 lib/lalala/ext_i18n/negotiation_adapter.rb
lalala-4.1.0.dev.397 lib/lalala/ext_i18n/negotiation_adapter.rb
lalala-4.0.0.dev.396 lib/lalala/ext_i18n/negotiation_adapter.rb
lalala-4.0.0.dev.395 lib/lalala/ext_i18n/negotiation_adapter.rb
lalala-4.1.0.dev.394 lib/lalala/ext_i18n/negotiation_adapter.rb