Sha256: 115a2a51f88a94f7b923eab3f02c29cd001421abc4701641a41e099d1a90553e

Contents?: true

Size: 328 Bytes

Versions: 11

Compression:

Stored size: 328 Bytes

Contents

module Hyperstack
  module I18n
    def t(attribute, opts = {})
      namespace = self.class.name.underscore.gsub(%r{::|/}, '.')

      Hyperstack::Internal::I18n.t("#{namespace}.#{attribute}", opts)
    end

    def l(time, format = :default, opts = {})
      Hyperstack::Internal::I18n.l(time, format, opts)
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
hyper-i18n-1.0.alpha1.8 lib/hyperstack/i18n.rb
hyper-i18n-1.0.alpha1.7 lib/hyperstack/i18n.rb
hyper-i18n-1.0.alpha1.6 lib/hyperstack/i18n.rb
hyper-i18n-1.0.alpha1.5 lib/hyperstack/i18n.rb
hyper-i18n-1.0.alpha1.4 lib/hyperstack/i18n.rb
hyper-i18n-1.0.alpha1.3 lib/hyperstack/i18n.rb
hyper-i18n-1.0.alpha1.2 lib/hyperstack/i18n.rb
hyper-i18n-1.0.alpha1.1 lib/hyperstack/i18n.rb
hyper-i18n-1.0.0.pre.alpha1 lib/hyperstack/i18n.rb
hyper-i18n-1.0.alpha1 lib/hyperstack/i18n.rb
hyper-i18n-1.0.pre.alpha1 lib/hyperstack/i18n.rb