module Showbuilder::I18nText

Public Instance Methods

show_current_itext(text_id, *args) click to toggle source
# File lib/showbuilder/i18n_text.rb, line 4
def show_current_itext(text_id, *args)
  case text_id
  when Array
    text_id = text_id.join('_')
  end

  current_text_id = if show_current_itext_base
    "#{show_current_itext_base}.#{text_id}"
  else
    text_id
  end

  show_itext current_text_id, *args
end
show_current_itext_base() click to toggle source
# File lib/showbuilder/i18n_text.rb, line 19
def show_current_itext_base
end
show_itext(id, *args) click to toggle source
# File lib/showbuilder/i18n_text.rb, line 22
def show_itext(id, *args)
  I18n.t(id, *args)
end