Skip to content

v1.0.1 - Translate/update translation form components

Compare
Choose a tag to compare
@zerolab zerolab released this 01 Dec 10:37
· 335 commits to main since this release

This is a convenience relese which extends the form components mechanism used in the locale sync form to the submit and update translations forms (#491).

New component registration can be done using the new register_translation_component decorator

@register_translation_component(
    heading=gettext_lazy("My component"),
    help_text=gettext_lazy("Help text to describe what this is needed for"),
    enable_text=gettext_lazy("Add custom component data"),
    disable_text=gettext_lazy("Do not add custom component data"),
)
class MyTranslationComponent(model.Model):
    pass

The work was sponsored by Twilio