Method: I18n::Inflector::API_Strict#new_database

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

#new_database(locale) ⇒ I18n::Inflector::InflectionData_Strict

Creates an empty strict inflections database for the specified locale.

Parameters:

  • locale (Symbol)

    the locale for which the inflections database should be created

Returns:

Raises:

[View source]

72
73
74
75
76
# File 'lib/i18n-inflector/api_strict.rb', line 72

def new_database(locale)
  locale = prep_locale(locale)
  @inflected_locales_cache.clear
  @idb[locale] = I18n::Inflector::InflectionData_Strict.new(locale)
end