Method: I18n::Inflector::API_Strict#inflected_locale?

Defined in:
lib/i18n-inflector/api_strict.rb

#inflected_locale?Boolean #inflected_locale?(locale) ⇒ Boolean Also known as: locale?, locale_supported?

Checks if the given locale was configured to support strict inflection.

Overloads:

  • #inflected_locale?Boolean

    Checks if the current locale was configured to support inflection.

    Returns:

    • (Boolean)

      true if the current locale supports inflection

  • #inflected_locale?(locale) ⇒ Boolean

    Checks if the given locale was configured to support inflection.

    Parameters:

    • locale (Symbol)

      the locale to test

    Returns:

    • (Boolean)

      true if the given locale supports inflection

Returns:

  • (Boolean)

    true if a locale supports inflection

Raises:

[View source]

122
123
124
# File 'lib/i18n-inflector/api_strict.rb', line 122

def inflected_locale?(locale=nil)
  not @idb[prep_locale(locale)].nil? rescue false
end