lib/i18n/tasks/configuration.rb in i18n-tasks-0.7.1 vs lib/i18n/tasks/configuration.rb in i18n-tasks-0.7.2
- old
+ new
@@ -68,10 +68,13 @@
# @return [String] default i18n locale
def base_locale
@config_sections[:base_locale] ||= (config[:base_locale] || 'en').to_s
end
+ def internal_locale
+ @config_sections[:internal_locale] ||= (config[:internal_locale] || 'en').to_s
+ end
def ignore_config(type = nil)
key = type ? "ignore_#{type}" : 'ignore'
@config_sections[key] ||= config[key]
end
@@ -79,9 +82,10 @@
IGNORE_TYPES = [nil, :missing, :unused, :eq_base].freeze
# evaluated configuration (as the app sees it)
def config_sections
# init all sections
base_locale
+ internal_locale
locales
data_config
search_config
translation_config
IGNORE_TYPES.each do |ignore_type|