putspastel.red("You are missing JSON files for these locales: #{pastel.bold(missing_json_files.join(', '))}")
putspastel.red('This will lead to runtime errors for users who have selected those locales')
putspastel.red("Add the missing files or remove the locales from #{pastel.bold('I18n.available_locales')} in config/application.rb")
end
unlessmissing_yaml_files.empty?
critical=true
putspastel.red("You are missing YAML files for these locales: #{pastel.bold(missing_yaml_files.join(', '))}")
putspastel.red('This will lead to runtime errors for users who have selected those locales')
putspastel.red("Add the missing files or remove the locales from #{pastel.bold('I18n.available_locales')} in config/application.rb")
end
unlessmissing_available_locales.empty?
putspastel.yellow("You have locale files that are not enabled: #{pastel.bold(missing_available_locales.join(', '))}")
putspastel.yellow("Add them to #{pastel.bold('I18n.available_locales')} in config/application.rb or remove them")
end
unlessmissing_locale_names.empty?
putspastel.yellow("You are missing human-readable names for these locales: #{pastel.bold(missing_locale_names.join(', '))}")
putspastel.yellow("Add them to #{pastel.bold('HUMAN_LOCALES')} in app/helpers/settings_helper.rb or remove the locales from #{pastel.bold('I18n.available_locales')} in config/application.rb")