Method: I18n::Inflector::API_Strict#tokens
- Defined in:
- lib/i18n-inflector/api_strict.rb
#tokens(kind) ⇒ Hash #tokens(kind, locale) ⇒ Hash
Note:
You cannot deduce where aliases are pointing to, since the information about a target is replaced by the description. To get targets use the #raw_tokens method. To simply list aliases and their targets use the #aliases method.
Gets available inflection tokens belonging to a strict kind and their descriptions.
421 422 423 |
# File 'lib/i18n-inflector/api_strict.rb', line 421 def tokens(kind=nil, locale=nil) each_token(kind, locale).to_h end |