Class: SpreeI18n::Locale
- Inherits:
-
Object
- Object
- SpreeI18n::Locale
- Defined in:
- lib/spree_i18n/locale.rb
Class Method Summary collapse
Class Method Details
.all ⇒ Object
4 5 6 |
# File 'lib/spree_i18n/locale.rb', line 4 def all Dir["#{dir}/*.yml"].map { |f| File.basename(f, '.yml').to_sym } end |
.dir ⇒ Object
8 9 10 |
# File 'lib/spree_i18n/locale.rb', line 8 def dir File.join(File.dirname(__FILE__), '/../../config/locales') end |