Interface AutoTranslateConfigService
-
- All Known Implementing Classes:
AutoTranslateConfigServiceImpl
public interface AutoTranslateConfigService
Serves the configurations for the automatic translation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isEnabled()
boolean
isPocUiEnabled()
Whether the debugging UI is enabled.boolean
isTranslatableResource(org.apache.sling.api.resource.Resource resource)
boolean
isUseHighIntelligenceModel()
If true, the translator will use the 'high-intelligence model' (see OpenAI config) for translation.List<String>
translateableAttributes(org.apache.sling.api.resource.Resource resource)
Returns those attributes that should be translated.
-
-
-
Method Detail
-
isPocUiEnabled
boolean isPocUiEnabled()
Whether the debugging UI is enabled.
-
isEnabled
boolean isEnabled()
-
isUseHighIntelligenceModel
boolean isUseHighIntelligenceModel()
If true, the translator will use the 'high-intelligence model' (see OpenAI config) for translation.
-
isTranslatableResource
boolean isTranslatableResource(@Nullable org.apache.sling.api.resource.Resource resource)
-
-