module Plasticine
Public Class Methods
localize(path, options={})
click to toggle source
# File lib/plasticine.rb, line 2 def self.localize(path, options={}) options.reverse_merge! format: :date_long options[:format] = "plasticine_#{options[:format]}".to_sym return I18n.localize(path, options) end
t(path, options={})
click to toggle source
# File lib/plasticine.rb, line 14 def self.t(path, options={}) self.translate path, options end
translate(path, options={})
click to toggle source
# File lib/plasticine.rb, line 10 def self.translate(path, options={}) I18n.translate("plasticine.#{path}", options) end