class Fastlane::Actions::ExportLocalizationsAction
Public Class Methods
available_options()
click to toggle source
# File lib/fastlane/plugin/localization/actions/export_localizations_action.rb, line 21 def self.available_options [ FastlaneCore::ConfigItem.new(key: :destination_path, env_name: "DESTINATION_PATH", description: "Destination path where XLIFF will be exported to", optional: false, type: String), FastlaneCore::ConfigItem.new(key: :project, env_name: "PROJECT", description: "Project to export localizations from", optional: false, type: String), ] end
description()
click to toggle source
# File lib/fastlane/plugin/localization/actions/export_localizations_action.rb, line 13 def self.description "Export app localizations with help of xcodebuild -exportLocalizations tool" end
is_supported?(platform)
click to toggle source
# File lib/fastlane/plugin/localization/actions/export_localizations_action.rb, line 36 def self.is_supported?(platform) true end
run(params)
click to toggle source
# File lib/fastlane/plugin/localization/actions/export_localizations_action.rb, line 4 def self.run(params) destination_path = params[:destination_path] project = params[:project] UI.message("Exporting localizations from #{project} to #{destination_path} folder") sh "xcodebuild -exportLocalizations -localizationPath #{destination_path} -project #{project}" end