Class: PhraseApp::InContextEditor::BackendService
- Inherits:
-
Object
- Object
- PhraseApp::InContextEditor::BackendService
- Defined in:
- lib/phraseapp-in-context-editor-ruby/backend_service.rb
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ BackendService
constructor
A new instance of BackendService.
- #translate ⇒ Object
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
#translate ⇒ Object
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 |