Module: Middleman::Features::I18n
- Defined in:
- lib/middleman-i18n/feature.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
- .registered(app) ⇒ Object (also: included)
Class Method Details
.registered(app) ⇒ Object Also known as: included
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/middleman-i18n/feature.rb', line 5 def registered(app) ::I18n.load_path += Dir[File.join(app.root, "locales", "*.yml")] # require "middleman/guard" # require "guard/livereload" # Middleman::Guard.add_guard do # %Q{ # guard 'middleman' do # watch(%r{^locales/^[^\.](.*)\.yml$}) # end # } # end app.extend ClassMethods end |