7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# File 'lib/localio/processor.rb', line 7
def self.load_localizables(platform_options, service, options)
case service
when :google_drive
GoogleDriveProcessor.load_localizables platform_options, options
when :xls
XlsProcessor.load_localizables platform_options, options
when :xlsx
XlsxProcessor.load_localizables platform_options, options
when :csv
CsvProcessor.load_localizables platform_options, options
else
raise ArgumentError, 'Unsupported service! Try with :google_drive, :csv, :xlsx or :xls in the source argument'
end
end
|