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