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.json
file 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.php
hook is responsible for triggering translation upon actionnew
andupdate
on a tt_content withsys_lanuage_id
of standard German setup in previous step.- Utility class
SummAiTranslator.php
class 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_id
of Easy German defined in step 1. - Utility class
RecordHelper.php
is responsible for database queries (creating and updating translation records for tt_content). - Utility class
RequestHelper.php
is responsible for API request processing. - Utility class
TranslationHelper.php
provides various support functions forSummAiTranslator.php
class 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\Icons
are property of SUMM AI GmbH and used exclusively for educational purposes / this university work.