Interface AutoTranslateConfigService

  • All Known Implementing Classes:
    AutoTranslateConfigServiceImpl

    public interface AutoTranslateConfigService
    Serves the configurations for the automatic translation.
    • 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)
      • translateableAttributes

        List<String> translateableAttributes​(@Nullable
                                             org.apache.sling.api.resource.Resource resource)
        Returns those attributes that should be translated. (Of the resource, not children.)
      • includeFullPageInRetranslation

        boolean includeFullPageInRetranslation()
        If true, we do not only provide changed texts to the AI during re-translating a page with some changes, but give the entire page to provide better context. That is a bit slower and a bit more expensive, but likely improves the result.
      • includeExistingTranslationsInRetranslation

        boolean includeExistingTranslationsInRetranslation()
        If true, we when retranslating a page with some changes we provide the existing translations of that page to the AI as well as additional context with examples. That is a bit slower and a bit more expensive, but likely improves the result."