Method: I18n::Inflector::API_Strict#new_database
- Defined in:
- lib/i18n-inflector/api_strict.rb
permalink #new_database(locale) ⇒ I18n::Inflector::InflectionData_Strict
Creates an empty strict inflections database for the specified locale.
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 |