Module: SeleniumRecord::Translations

Included in:
Base
Defined in:
lib/selenium_record/translations.rb

Overview

Contains helper methods for translations

Instance Method Summary collapse

Instance Method Details

#trans(key) ⇒ String

Returns the translation for the given key.

Parameters:

  • key (String)

    the key to be used to lookup text translations

Returns:

  • (String)

    the translation for the given key



6
7
8
# File 'lib/selenium_record/translations.rb', line 6

def trans(key)
  I18n.t(key)
end