class Sijka::Translator

Public Class Methods

new() click to toggle source
# File lib/sijka/translator.rb, line 5
def initialize
  I18n.load_path = Dir.glob("#{$LOAD_PATH.first}/../locales/*.yml")
  I18n.enforce_available_locales = false
end

Public Instance Methods

smoken_with_locale(subject) click to toggle source
# File lib/sijka/translator.rb, line 10
def smoken_with_locale(subject)
  I18n.t subject, locale: I18n.locale, default: I18n.t('sijka', locale: :en)
end