Sha256: 40dd0e09de24d8c915f36a0258905de8b3909872034757dbb0853a7251575807

Contents?: true

Size: 258 Bytes

Versions: 3

Compression:

Stored size: 258 Bytes

Contents

module SolidusI18n
  class Locale
    class << self
      def all
        Dir["#{dir}/*.yml"].map { |f| File.basename(f, '.yml').to_sym }
      end

      def dir
        File.join(File.dirname(__FILE__), '/../../config/locales')
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
solidus_i18n-1.2.0 lib/solidus_i18n/locale.rb
solidus_i18n-1.1.0 lib/solidus_i18n/locale.rb
solidus_i18n-1.0.0 lib/solidus_i18n/locale.rb