Class: PhraseApp::InContextEditor::BackendService

Inherits:
Object
  • Object
show all
Defined in:
lib/phraseapp-in-context-editor-ruby/backend_service.rb

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ BackendService

Returns a new instance of BackendService.



6
7
8
# File 'lib/phraseapp-in-context-editor-ruby/backend_service.rb', line 6

def initialize(args = {})
  self
end

Instance Method Details

#translateObject



10
11
12
13
14
15
16
# File 'lib/phraseapp-in-context-editor-ruby/backend_service.rb', line 10

def translate(...)
  if to_be_translated_without_phraseapp?(...)
    I18n.translate_without_phraseapp(...)
  else
    phraseapp_delegate_for(...)
  end
end