Module: WhitelabelTranslation

Defined in:
app/concerns/whitelabel_translation.rb

Instance Method Summary collapse

Instance Method Details

#translate_whitelabel(token, options = {}) ⇒ Object Also known as: tw


2
3
4
5
# File 'app/concerns/whitelabel_translation.rb', line 2

def translate_whitelabel(token, options = {})
  sub = Whitelabel.label ? Whitelabel[:label_id] : "default"
  t("label.#{sub}.#{token}".to_sym, options.merge(default: ["label.default.#{token}".to_sym,token.to_sym]))
end