Sha256: 87ac296e605c8fd751908a84628f15699084b652121d10e2115830944d3cc5ca

Contents?: true

Size: 713 Bytes

Versions: 4

Compression:

Stored size: 713 Bytes

Contents

# frozen_string_literal: true

require 'lokalise_rails/task_definition/base'
require 'lokalise_rails/task_definition/importer'

class LokaliseRails
  @project_id = nil
  @import_opts = {
    format: 'yaml',
    placeholder_format: :icu,
    yaml_include_root: true,
    original_filenames: true,
    directory_prefix: '',
    indentation: '2sp'
  }
  # @export_opts = {
  #
  # }
  @import_safe_mode = false
  @api_token = nil

  class << self
    attr_accessor :import_opts, :import_safe_mode, :api_token, :export_opts,
                  :project_id

    def locales_path
      "#{Rails.root}/config/locales"
    end
  end
end

require 'lokalise_rails/railtie' if defined?(Rails)

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lokalise_rails-0.2.0 lib/lokalise_rails.rb
lokalise_rails-0.1.0 lib/lokalise_rails.rb
lokalise_rails-0.0.2.3 lib/lokalise_rails.rb
lokalise_rails-0.0.2.2 lib/lokalise_rails.rb