Sha256: aae3433a8f5b47fca73478ace67fe6557009acf2a3946fdccb750e8fa7f3ff5d
Contents?: true
Size: 379 Bytes
Versions: 4
Compression:
Stored size: 379 Bytes
Contents
module I18n module Screwdriver def self.included(klass) klass.send :include, InstanceMethods end module InstanceMethods def _(translation) # the . is a special character in rails i18n - we have to strip it translation_without_dot = translation.gsub(/\./, '').strip t("#{translation_without_dot}") end end end end
Version data entries
4 entries across 4 versions & 1 rubygems