spec/dummy/config/lokalise_rails.rb in lokalise_rails-0.2.0 vs spec/dummy/config/lokalise_rails.rb in lokalise_rails-1.0.0

- old
+ new

@@ -1,29 +1,5 @@ -# frozen_string_literal: true - require 'lokalise_rails' - -# These are mandatory options that you must set before running rake tasks: -LokaliseRails.api_token = ENV['LOKALISE_API_TOKEN'] -LokaliseRails.project_id = ENV['LOKALISE_PROJECT_ID'] - -# Import options have the following defaults: -# LokaliseRails.import_opts = { -# format: 'yaml', -# placeholder_format: :icu, -# yaml_include_root: true, -# original_filenames: true, -# directory_prefix: '', -# indentation: '2sp' -# } - -# Safe mode is disabled by default: -# LokaliseRails.import_safe_mode = false - -# Provide a custom path to the directory with your translation files: -# class LokaliseRails -# class << self -# def locales_path -# "#{Rails.root}/config/locales" -# end -# end -# end +LokaliseRails.config do |c| + c.api_token = ENV['LOKALISE_API_TOKEN'] + c.project_id = ENV['LOKALISE_PROJECT_ID'] +end