This is a SUMM AI backend module created as a part of bachelor thesis supervised by S. Kreideweiß. API token provided by SUMM AI GmbH is used for HTTP requests.
- PHP 8.1
- Composer
- TYPO3 Installation
composer require thb/summ-ai-translate- As the extension isn't published you will have to update
composer.jsonfile of your TYPO3 installation."repositories": [{"type": "path","url": "packages/*"}],"minimum-stability": "dev","prefer-stable": true
Configuration for widgets is located in Services.yaml file.
- Widget showing amount of available characters to translate as a text.
Source file located under
Classes\Widgets\UsageWidget.php - Widget showing amount of available characters to translate as a doughnut chart.
Data provider for graph located under
Classes\Widgets\Provider\UsageDataProvider.php - Widget showing a list of translations in Easy German in state 'hidden' (unpublished).
Data provider for list located under
Classes\Widgets\Provider\UnpublishedDataProvider.php
-
Extension configuration required in
Site Configuration: -
DataHandler.phphook is responsible for triggering translation upon actionnewandupdateon a tt_content withsys_lanuage_idof standard German setup in previous step.- Utility class
SummAiTranslator.phpclass is responsible for either creating new translation via POST request to Summ Ai API or updating existing one (depends on action on tt_content). - Created / updated translation has a
sys_language_idof Easy German defined in step 1. - Utility class
RecordHelper.phpis responsible for database queries (creating and updating translation records for tt_content). - Utility class
RequestHelper.phpis responsible for API request processing. - Utility class
TranslationHelper.phpprovides various support functions forSummAiTranslator.phpclass and widgets.
- Utility class
-
As of now translation is done automatically on tt_content level, meaning that for translation of already existing entries it needs to be enabled and disabled to trigger the hook.
- GPL-2.0 or later
- SVG-files located under
Resources\Public\Iconsare property of SUMM AI GmbH and used exclusively for educational purposes / this university work.
