Sha256: 246b27d370704c641e0dcaa4220ac92d2658ac56a76179efdff3d5d8b10f4d6d
Contents?: true
Size: 1.19 KB
Versions: 2
Compression:
Stored size: 1.19 KB
Contents
# frozen_string_literal: true require 'lokalise_rails' LokaliseRails.config do |c| # These are mandatory options that you must set before running rake tasks: # c.api_token = ENV['LOKALISE_API_TOKEN'] # c.project_id = ENV['LOKALISE_PROJECT_ID'] # Provide a custom path to the directory with your translation files: # c.locales_path = "#{Rails.root}/config/locales" # Import options have the following defaults: # c.import_opts = { # format: 'yaml', # placeholder_format: :icu, # yaml_include_root: true, # original_filenames: true, # directory_prefix: '', # indentation: '2sp' # } # Safe mode for imports is disabled by default: # c.import_safe_mode = false # Additional export options (only filename, contents, and lang_iso params are provided by default) # c.export_opts = {} # Provide additional file exclusion criteria for exports (by default, any file with the proper extension will be exported) # c.skip_file_export = ->(file) { file.split[1].to_s.include?('fr') } # Regular expression to use when choosing the files to extract from the downloaded archive and upload to Lokalise # c.file_ext_regexp = /\.ya?ml\z/i end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lokalise_rails-1.0.1 | lib/generators/templates/lokalise_rails_config.rb |
lokalise_rails-1.0.0 | lib/generators/templates/lokalise_rails_config.rb |