module LocalizableWriter

Public Class Methods

write(platform, languages, terms, path, formatter, options) click to toggle source
# File lib/localio/localizable_writer.rb, line 10
def self.write(platform, languages, terms, path, formatter, options)
  case platform
    when :android
      AndroidWriter.write languages, terms, path, formatter, options
    when :ios
      IosWriter.write languages, terms, path, formatter, options
    when :swift
      SwiftWriter.write languages, terms, path, formatter, options
    when :json
      JsonWriter.write languages, terms, path, formatter, options
    when :rails
      RailsWriter.write languages, terms, path, formatter, options
    when :java_properties
      JavaPropertiesWriter.write languages, terms, path, formatter, options
    when :resx
      ResXWriter.write languages, terms, path, formatter, options
    else
      raise ArgumentError, 'Platform not supported! Current possibilities are :android, :ios, :json, :rails, :java_properties, :resx'
  end
end