Method: I18n::Inflector::API_Strict#true_token
- Defined in:
- lib/i18n-inflector/api_strict.rb
permalink #true_token(token, kind) ⇒ Symbol? #true_token(token, kind, locale) ⇒ Symbol? Also known as: resolve_alias
Gets true token for the given token
belonging to a strict kind. If the token is an alias it will be resolved and a true token (target) will be returned.
341 342 343 344 345 |
# File 'lib/i18n-inflector/api_strict.rb', line 341 def true_token(*args) token, kind, locale = tkl_args(args) return nil if (token.nil? || kind.nil?) data_safe(locale).get_true_token(token, kind) end |