Sha256: 7c5ced9a249480b586d2e70379fc9c45c3d09da00e05cd6d2649a4cd214d831b

Contents?: true

Size: 310 Bytes

Versions: 1

Compression:

Stored size: 310 Bytes

Contents

require 'I18n'

module Sijka
  class Translator
    def initialize
      I18n.load_path = Dir['locales/*.yml']
      I18n.enforce_available_locales = false
    end

    def smoken_with_locale(subject = 'sijka')
      I18n.t subject, locale: I18n.locale, default: I18n.t(subject, locale: :en)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sijka-0.0.3.3.3 lib/sijka/translator.rb