class Fastlane::Actions::SimpleLocoAction
Public Class Methods
available_options()
click to toggle source
# File lib/fastlane/plugin/simple_loco/actions/simple_loco_action.rb, line 32 def self.available_options [ FastlaneCore::ConfigItem.new(key: :conf_file_path, env_name: 'LOCO_CONF_FILE_PATH', description: 'The config file path', optional: true, type: String, default_value: 'fastlane/Loco.platform.json') ] end
description()
click to toggle source
# File lib/fastlane/plugin/simple_loco/actions/simple_loco_action.rb, line 17 def self.description "A simple implementation for exporting translations from Loco." end
details()
click to toggle source
# File lib/fastlane/plugin/simple_loco/actions/simple_loco_action.rb, line 28 def self.details "A wrapper implementation around the Localize export single-file API. See https://localise.biz/api/docs/export/exportlocale for all options. Common mobile platforms (Android, iOS, Xamarin, Flutter) have some extra logic to create the correct paths, and a custom implementation is provided for other platforms." end
is_supported?(platform)
click to toggle source
# File lib/fastlane/plugin/simple_loco/actions/simple_loco_action.rb, line 43 def self.is_supported?(platform) true end
return_value()
click to toggle source
# File lib/fastlane/plugin/simple_loco/actions/simple_loco_action.rb, line 25 def self.return_value end
run(params)
click to toggle source
# File lib/fastlane/plugin/simple_loco/actions/simple_loco_action.rb, line 7 def self.run(params) config = Helper::Config.read_conf(params[:conf_file_path]) UI.message('Exporting files') config.export_locales UI.success('Finished exporting files') end