lib/billme.rb in billme-0.20.0 vs lib/billme.rb in billme-0.37.0

- old
+ new

@@ -2,9 +2,15 @@ require "billme/version" require_relative "billme/factory" require_relative "billme/section" require_relative "billme/services_section" require_relative "billme/service_details" +require 'i18n' + +lang_path = File.expand_path('../../config', __FILE__) +I18n.load_path = Dir["#{lang_path}/locales/*.yml"] +I18n.backend.load_translations +I18n.default_locale = :en module Billme def self.bill(&block) factory = Factory.new factory.instance_eval &block