integreat-cms
integreat-cms copied to clipboard
Add SUMM.AI budget for updating translations
Motivation
We offer municipalities the option to purchase an extra 10.000 words for SUMM.AI update translations
Proposed Solution
- [ ] Create a new setting
SUMM_AI_CREDITS_ADDON
to define the amount for the SUMM.AI package, similar toDEEPL_CREDITS_ADDON
- [ ] Add new fields
summ_ai_addon_booked
,summ_ai_renewal_month
andsumm_ai_budget_used
to the region model, similar todeepl_addon_booked
,deepl_renewal_month
anddeepl_budget_used
- [ ] Whenever the content is translated via the new checkbox in the form, increase the used words budget of the region, see:
- [ ] #2110
- [ ] Show a graph of the used budget in the machine translation settings page
The initial translations via the bulk action or the management command should not drain the region's budget.