Method: ChefApply::Text.load
- Defined in:
- lib/chef_apply/text.rb
.load ⇒ Object
38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/chef_apply/text.rb', line 38 def self.load R18n.from_env(Text._translation_path) R18n.extension_places << File.join(Text._translation_path, "errors") t = R18n.get.t t.translation_keys.each do |k| k = k.to_sym define_singleton_method k do |*args| TextWrapper.new(t.send(k, *args)) end end end |