Class: I18n::Hygiene::Config
- Inherits:
-
Object
- Object
- I18n::Hygiene::Config
- Defined in:
- lib/i18n/hygiene/config.rb
Instance Attribute Summary collapse
- #concurrency ⇒ Object
- #directories ⇒ Object
- #exclude_files ⇒ Object
- #exclude_keys ⇒ Object
- #exclude_scopes ⇒ Object
- #file_extensions ⇒ Object
- #locales ⇒ Object
- #primary_locale ⇒ Object
Instance Method Summary collapse
Instance Attribute Details
#concurrency ⇒ Object
43 44 45 |
# File 'lib/i18n/hygiene/config.rb', line 43 def concurrency @concurrency || Parallel.processor_count end |
#directories ⇒ Object
19 20 21 |
# File 'lib/i18n/hygiene/config.rb', line 19 def directories @directories ||= [] end |
#exclude_files ⇒ Object
15 16 17 |
# File 'lib/i18n/hygiene/config.rb', line 15 def exclude_files @exclude_files ||= [] end |
#exclude_keys ⇒ Object
39 40 41 |
# File 'lib/i18n/hygiene/config.rb', line 39 def exclude_keys @exclude_keys ||= [] end |
#exclude_scopes ⇒ Object
47 48 49 |
# File 'lib/i18n/hygiene/config.rb', line 47 def exclude_scopes @exclude_scopes ||= [] end |
#file_extensions ⇒ Object
23 24 25 |
# File 'lib/i18n/hygiene/config.rb', line 23 def file_extensions @file_extensions ||= ["rb", "erb", "coffee", "js", "jsx"] end |
#locales ⇒ Object
31 32 33 |
# File 'lib/i18n/hygiene/config.rb', line 31 def locales @locales ||= ::I18n.available_locales end |
#primary_locale ⇒ Object
27 28 29 |
# File 'lib/i18n/hygiene/config.rb', line 27 def primary_locale @primary_locale ||= ::I18n.default_locale end |
Instance Method Details
#all_locales ⇒ Object
35 36 37 |
# File 'lib/i18n/hygiene/config.rb', line 35 def all_locales [primary_locale] + locales end |