class Fastlane::Actions::GenerateXliffAction
Public Class Methods
available_options()
click to toggle source
# File lib/fastlane/plugin/generate_xliff/actions/generate_xliff_action.rb, line 31 def self.available_options [ FastlaneCore::ConfigItem.new(key: :xcodeproj, env_name: "PROJECT_FILE", description: "Project file", optional: false, type: String), FastlaneCore::ConfigItem.new(key: :export_language, env_name: "EXPORT_LANGUAGE", description: "Language to export", optional: false, type: String), ] end
description()
click to toggle source
# File lib/fastlane/plugin/generate_xliff/actions/generate_xliff_action.rb, line 15 def self.description "Generates XLIFF file" end
details()
click to toggle source
# File lib/fastlane/plugin/generate_xliff/actions/generate_xliff_action.rb, line 27 def self.details "Generates XLIFF file for the project" end
is_supported?(platform)
click to toggle source
# File lib/fastlane/plugin/generate_xliff/actions/generate_xliff_action.rb, line 46 def self.is_supported?(platform) true end
return_value()
click to toggle source
# File lib/fastlane/plugin/generate_xliff/actions/generate_xliff_action.rb, line 23 def self.return_value "Returns xliff's path" end
run(params)
click to toggle source
# File lib/fastlane/plugin/generate_xliff/actions/generate_xliff_action.rb, line 4 def self.run(params) projectFile = params[:xcodeproj] export_language = params[:export_language] UI.message("Generating localization file for #{projectFile}") sh ("xcodebuild -exportLocalizations -localizationPath . -project #{projectFile} -exportLanguage #{export_language}") return "#{export_language}.xliff" end