Class: I18n::Hygiene::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/i18n/hygiene/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#concurrencyObject



43
44
45
# File 'lib/i18n/hygiene/config.rb', line 43

def concurrency
  @concurrency || Parallel.processor_count
end

#directoriesObject



19
20
21
# File 'lib/i18n/hygiene/config.rb', line 19

def directories
  @directories ||= []
end

#exclude_filesObject



15
16
17
# File 'lib/i18n/hygiene/config.rb', line 15

def exclude_files
  @exclude_files ||= []
end

#exclude_keysObject



39
40
41
# File 'lib/i18n/hygiene/config.rb', line 39

def exclude_keys
  @exclude_keys ||= []
end

#exclude_scopesObject



47
48
49
# File 'lib/i18n/hygiene/config.rb', line 47

def exclude_scopes
  @exclude_scopes ||= []
end

#file_extensionsObject



23
24
25
# File 'lib/i18n/hygiene/config.rb', line 23

def file_extensions
  @file_extensions ||= ["rb", "erb", "coffee", "js", "jsx"]
end

#localesObject



31
32
33
# File 'lib/i18n/hygiene/config.rb', line 31

def locales
  @locales ||= ::I18n.available_locales
end

#primary_localeObject



27
28
29
# File 'lib/i18n/hygiene/config.rb', line 27

def primary_locale
  @primary_locale ||= ::I18n.default_locale
end

Instance Method Details

#all_localesObject



35
36
37
# File 'lib/i18n/hygiene/config.rb', line 35

def all_locales
  [primary_locale] + locales
end