Sha256: 818a41445de231232e775819884ea54b4f685ada14789754f35e9090272a3534

Contents?: true

Size: 300 Bytes

Versions: 1

Compression:

Stored size: 300 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)
      I18n.t subject, locale: I18n.locale, default: I18n.t('sijka', locale: :en)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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