Sha256: 286d7bf4ba386b51deb1fe1d66b758347ab50917742a875145e0a2ac57b47e68

Contents?: true

Size: 1.18 KB

Versions: 14

Compression:

Stored size: 1.18 KB

Contents

PhraseApp::InContextEditor.configure do |config|
  # Enable or disable the In-Context-Editor in general
  config.enabled = true

  # Fetch your project id after creating your first project
  # in Translation Center.
  # You can find the project id in your project settings
  # page (https://phraseapp.com/projects)
  config.project_id = "<%= options[:project_id] %>"

  # You can create and manage access tokens in your profile settings
  # in Translation Center or via the Authorizations API
  # (http://docs.phraseapp.com/api/v2/authorizations/).
  config.access_token = "<%= options[:access_token] %>"

  # Configure an array of key names that should not be handled
  # by the In-Context-Editor.
  config.ignored_keys = ["number.*", "breadcrumb.*"]

  # PhraseApp uses decorators to generate a unique identification key
  # in context of your document. However, this might result in conflicts
  # with other libraries (e.g. client-side template engines) that use a similar syntax.
  # If you encounter this problem, you might want to change this decorator pattern.
  # More information: http://docs.phraseapp.com/guides/in-context-editor/configure/
  # config.prefix = "{{__"
  # config.suffix = "__}}"
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
phraseapp-in-context-editor-ruby-1.3.0 lib/generators/phraseapp_in_context_editor/templates/phraseapp_in_context_editor.rb
phraseapp-in-context-editor-ruby-1.2.1 lib/generators/phraseapp_in_context_editor/templates/phraseapp_in_context_editor.rb
phraseapp-in-context-editor-ruby-1.2.0 lib/generators/phraseapp_in_context_editor/templates/phraseapp_in_context_editor.rb
phraseapp-in-context-editor-ruby-1.1.0 lib/generators/phraseapp_in_context_editor/templates/phraseapp_in_context_editor.rb
phraseapp-in-context-editor-ruby-1.0.6 lib/generators/phraseapp_in_context_editor/templates/phraseapp_in_context_editor.rb
phraseapp-in-context-editor-ruby-1.0.5 lib/generators/phraseapp_in_context_editor/templates/phraseapp_in_context_editor.rb
phraseapp-in-context-editor-ruby-1.0.4 lib/generators/phraseapp_in_context_editor/templates/phraseapp_in_context_editor.rb
phraseapp-in-context-editor-ruby-1.0.3 lib/generators/phraseapp_in_context_editor/templates/phraseapp_in_context_editor.rb
phraseapp-in-context-editor-ruby-1.0.2 lib/generators/phraseapp_in_context_editor/templates/phraseapp_in_context_editor.rb
phraseapp-in-context-editor-ruby-1.0.1 lib/generators/phraseapp_in_context_editor/templates/phraseapp_in_context_editor.rb
phraseapp-in-context-editor-ruby-1.0.0 lib/generators/phraseapp_in_context_editor/templates/phraseapp_in_context_editor.rb
phraseapp-in-context-editor-ruby-1.0.0rc3 lib/generators/phraseapp_in_context_editor/templates/phraseapp_in_context_editor.rb
phraseapp-in-context-editor-ruby-1.0.0rc2 lib/generators/phraseapp_in_context_editor/templates/phraseapp_in_context_editor.rb
phraseapp-in-context-editor-ruby-1.0.0rc1 lib/generators/phraseapp_in_context_editor/templates/phraseapp_in_context_editor.rb