Class: RailsTranslationManager::LocaleChecker
- Inherits:
-
Object
- Object
- RailsTranslationManager::LocaleChecker
- Defined in:
- lib/rails_translation_manager/locale_checker.rb
Constant Summary collapse
- CHECKER_CLASSES =
[IncompatiblePlurals, MissingDeclaredLocales, MissingEnglishLocales, MissingForeignLocales, UndeclaredLocaleFiles].freeze
Instance Attribute Summary collapse
-
#locale_path ⇒ Object
readonly
Returns the value of attribute locale_path.
Instance Method Summary collapse
-
#initialize(locale_path, skip_validation = []) ⇒ LocaleChecker
constructor
A new instance of LocaleChecker.
- #validate_locales ⇒ Object
Constructor Details
#initialize(locale_path, skip_validation = []) ⇒ LocaleChecker
Returns a new instance of LocaleChecker.
13 14 15 16 |
# File 'lib/rails_translation_manager/locale_checker.rb', line 13 def initialize(locale_path, skip_validation = []) @locale_path = locale_path @skip_validation = skip_validation end |
Instance Attribute Details
#locale_path ⇒ Object (readonly)
Returns the value of attribute locale_path.
5 6 7 |
# File 'lib/rails_translation_manager/locale_checker.rb', line 5 def locale_path @locale_path end |
Instance Method Details
#validate_locales ⇒ Object
18 19 20 21 22 23 |
# File 'lib/rails_translation_manager/locale_checker.rb', line 18 def validate_locales output_result rescue AllLocales::NoLocaleFilesFound => e puts e false end |