lib/zci/commands/04_export.rb in zci-0.10.0 vs lib/zci/commands/04_export.rb in zci-0.10.1
- old
+ new
@@ -33,10 +33,10 @@
zendesk_locales = zendesk_client.locales
else
zendesk_locales = zendesk_client.locales.select { |locale| locale.locale == language }
end
- zendesk_locales.select { |locale| !locale.default? }.each do |locale|
+ zendesk_locales.reject(&:default?).each do |locale|
if lang = category_section['translations'].detect { |tr| tr['zendesk_locale'].casecmp(locale.locale) == 0 }
crowdin_locale = crowdin_supported_languages.detect { |l| l['crowdin_code'] == lang['crowdin_language_code'] }['locale']
category_xml_files = Dir["#{resources_dir}/#{crowdin_locale}/#{category_section['zendesk_category']}/category_*.xml"]
section_xml_files = Dir["#{resources_dir}/#{crowdin_locale}/#{category_section['zendesk_category']}/section_*.xml"]