[EXCONTRANS-391] defaultFlag for Instant Translation Created: 23/May/23  Updated: 29/Aug/23  Resolved: 29/Aug/23

Status: Closed
Project: Content Translation Extended (CTX)
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Mykola Assignee: Riste Drangovski
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2023-05-24-10-10-56-577.png    
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

Where I need to add defaultFlag in configuration?
Documentation doesn't provide property path clearly.
Tried multiple places, but no result.
Without that actions doesn't work, got error:

Default translation provide not set!


 Comments   
Comment by Riste Drangovski [ 24/May/23 ]

Hi Mykola,

defaultFlag should be set in the translation provider configuration.
please check: link to documentation 

It's possible to set multiple translation providers. But, one of the translation providers should have defaultFlag set to "true".
Here is example screenshot, hope it helps to understand better:

Regards,
Riste

Comment by Mykola [ 24/May/23 ]

I tried multiple options, but none work
Can you provide a clear configuration for Instant Translation Provider with the path?

There are too much conflicting information: one page states that this module doesn't require much configuration besides defaultFlag, but in Common properties there multiple required options. On both pages path of the configuration is not provided at all

Maybe Instant Translation is not a provider and shouldn't be used with magnolia-content-translation-support-ext-core by itself?

Comment by Riste Drangovski [ 24/May/23 ]

can you provide more information what is "Instant Translation Provider" ?
regarding documentation, I sent you link with valid documentation where all configurations are described and also a screenshot of proper configuration ...

Comment by Mykola [ 24/May/23 ]

Instant Translation Provider is one of the submodules for Content Translation Extended module
https://docs.magnolia-cms.com/content-translation-support-ext/instant/index.html

What I'm asking is example for exactly this Instant Provider, because examples for other providers doesn't work

Comment by Riste Drangovski [ 24/May/23 ]

aha module name is "instant translation", and it's not provider.
The module that you refer to uses a translation provider module in background to do a translation.
This module exposes "instant translation actions" in the GUI, but is not responsible for doing a translation.
You need to configure some of the providers for "instant translation" to work, like:

  • microsoft
  • google
  • deepl
  • translation.com
  • atls
Comment by Mykola [ 24/May/23 ]

ok, it starts to make sense
and defaultFlag in docs is referring to field inside each of the provider modules right? Like for example /modules/magnolia-content-translation-support-ext-deepl/config/DeepL@defaultFlag?

Comment by Riste Drangovski [ 24/May/23 ]

yap, you are right.
when you set default provider, you are telling "instant translation" module to use that provider for translation process

Comment by Mykola [ 24/May/23 ]

ok, thank you

Generated at Mon Feb 12 00:30:46 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.