Sha256: df330a09a7abc7d943d5bd60b0346964de391e287a912bb0fae985ce14e0ef54

Contents?: true

Size: 647 Bytes

Versions: 11

Compression:

Stored size: 647 Bytes

Contents

class GettextSimpleRails::Translators::ActiveAdminTranslator
  def detected?
    return ::Kernel.const_defined?("ActiveAdmin")
  end
  
  def translations
    result = {
      "active_admin" => {
        "globalize" => {
          "language" => {},
          "translations" => ""
        },
        "devise" => {
          "email" => {
            "title" => "Email"
          },
          "password" => {
            "title" => "Password"
          }
        }
      }
    }
    
    I18n.available_locales.each do |locale|
      result["active_admin"]["globalize"]["language"][locale.to_s] = locale.to_s
    end
    
    return result
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
gettext_simple_rails-0.0.19 lib/gettext_simple_rails/translators/active_admin_translator.rb
gettext_simple_rails-0.0.17 lib/gettext_simple_rails/translators/active_admin_translator.rb
gettext_simple_rails-0.0.16 lib/gettext_simple_rails/translators/active_admin_translator.rb
gettext_simple_rails-0.0.15 lib/gettext_simple_rails/translators/active_admin_translator.rb
gettext_simple_rails-0.0.14 lib/gettext_simple_rails/translators/active_admin_translator.rb
gettext_simple_rails-0.0.13 lib/gettext_simple_rails/translators/active_admin_translator.rb
gettext_simple_rails-0.0.12 lib/gettext_simple_rails/translators/active_admin_translator.rb
gettext_simple_rails-0.0.11 lib/gettext_simple_rails/translators/active_admin_translator.rb
gettext_simple_rails-0.0.10 lib/gettext_simple_rails/translators/active_admin_translator.rb
gettext_simple_rails-0.0.9 lib/gettext_simple_rails/translators/active_admin_translator.rb
gettext_simple_rails-0.0.8 lib/gettext_simple_rails/translators/active_admin_translator.rb