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.)