# File lib/i18n/hygiene/config.rb, line 27 def primary_locale @primary_locale ||= ::I18n.default_locale end
class I18n::Hygiene::Config
Attributes
concurrency[W]
directories[W]
exclude_files[W]
exclude_keys[W]
exclude_scopes[W]
file_extensions[W]
locales[W]
primary_locale[W]
Public Instance Methods
all_locales()
click to toggle source
# File lib/i18n/hygiene/config.rb, line 35 def all_locales [primary_locale] + locales end
concurrency()
click to toggle source
# File lib/i18n/hygiene/config.rb, line 43 def concurrency @concurrency || Parallel.processor_count end
directories()
click to toggle source
# File lib/i18n/hygiene/config.rb, line 19 def directories @directories ||= [] end
exclude_files()
click to toggle source
# File lib/i18n/hygiene/config.rb, line 15 def exclude_files @exclude_files ||= [] end
exclude_keys()
click to toggle source
# File lib/i18n/hygiene/config.rb, line 39 def exclude_keys @exclude_keys ||= [] end
exclude_scopes()
click to toggle source
# File lib/i18n/hygiene/config.rb, line 47 def exclude_scopes @exclude_scopes ||= [] end
file_extensions()
click to toggle source
# File lib/i18n/hygiene/config.rb, line 23 def file_extensions @file_extensions ||= ["rb", "erb", "coffee", "js", "jsx"] end
locales()
click to toggle source
# File lib/i18n/hygiene/config.rb, line 31 def locales @locales ||= ::I18n.available_locales end
primary_locale()
click to toggle source