Module: I18n::Tasks::Command::Commands::Interpolations
- Includes:
- I18n::Tasks::Command::Collection
- Included in:
- I18n::Tasks::Commands
- Defined in:
- lib/i18n/tasks/command/commands/interpolations.rb
Instance Method Summary collapse
- #check_consistent_interpolations(opt = {}) ⇒ Object
- #check_reserved_interpolations(opt = {}) ⇒ Object
Methods included from I18n::Tasks::Command::Collection
Instance Method Details
#check_consistent_interpolations(opt = {}) ⇒ Object
14 15 16 17 18 |
# File 'lib/i18n/tasks/command/commands/interpolations.rb', line 14 def check_consistent_interpolations(opt = {}) forest = i18n.inconsistent_interpolations(**opt.slice(:locales, :base_locale)) print_forest forest, opt, :inconsistent_interpolations :exit1 unless forest.empty? end |
#check_reserved_interpolations(opt = {}) ⇒ Object
25 26 27 28 29 |
# File 'lib/i18n/tasks/command/commands/interpolations.rb', line 25 def check_reserved_interpolations(opt = {}) forest = i18n.reserved_interpolations(**opt.slice(:locale)) print_forest forest, opt, :reserved_interpolations :exit1 unless forest.empty? end |