Class AutoTranslateService.TranslationParameters
- java.lang.Object
-
- com.composum.ai.aem.core.impl.autotranslate.AutoTranslateService.TranslationParameters
-
- All Implemented Interfaces:
Cloneable
- Enclosing interface:
- AutoTranslateService
public static class AutoTranslateService.TranslationParameters extends Object implements Cloneable
-
-
Field Summary
Fields Modifier and Type Field Description String
additionalInstructions
Optionally, additional instructions to add to the system prompt.boolean
autoSave
If true the changes are saved (ResourceResolver.commit()
) after each page.boolean
breakInheritance
If true, we break the inheritance of the component / the property on translation.Integer
maxDepth
Maximum depth of the recursion.boolean
recursive
Translate subpages as well.List<AutoTranslateRuleConfig>
rules
Optionally, a number of rules that give additional instructions for translation if certain words or phrases are present in the page.boolean
translateWhenChanged
Also re-translate properties where the original was changed.
-
Constructor Summary
Constructors Constructor Description TranslationParameters()
-
-
-
Field Detail
-
recursive
public boolean recursive
Translate subpages as well.
-
maxDepth
public Integer maxDepth
Maximum depth of the recursion.
-
translateWhenChanged
public boolean translateWhenChanged
Also re-translate properties where the original was changed.
-
additionalInstructions
public String additionalInstructions
Optionally, additional instructions to add to the system prompt.
-
breakInheritance
public boolean breakInheritance
If true, we break the inheritance of the component / the property on translation.
-
autoSave
public boolean autoSave
If true the changes are saved (ResourceResolver.commit()
) after each page.
-
rules
public List<AutoTranslateRuleConfig> rules
Optionally, a number of rules that give additional instructions for translation if certain words or phrases are present in the page.
-
-