Sha256: 944b0580773da4ac34fe817bac249c3a83dd81c41c350cf755515bb57003b72e

Contents?: true

Size: 914 Bytes

Versions: 3

Compression:

Stored size: 914 Bytes

Contents

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

  # Configure with your project id and account id. You can find the
  # project id in your project settings and account id in your account
  # settings (https://app.phrase.com/)
  config.project_id = "<%= options[:project_id] %>"
  config.account_id = "<%= options[:account_id] %>"
  config.datacenter = "eu"

  # Phrase 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: https://help.phrase.com/hc/en-us/articles/5784095916188-In-Context-Editor-Strings-
  # config.prefix = "[[__"
  # config.suffix = "__]]"
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
phraseapp-in-context-editor-ruby-3.0.1 lib/generators/phraseapp_in_context_editor/templates/phraseapp_in_context_editor.rb
phraseapp-in-context-editor-ruby-2.1.1 lib/generators/phraseapp_in_context_editor/templates/phraseapp_in_context_editor.rb
phraseapp-in-context-editor-ruby-2.0.0 lib/generators/phraseapp_in_context_editor/templates/phraseapp_in_context_editor.rb