strawberry-django-plus icon indicating copy to clipboard operation
strawberry-django-plus copied to clipboard

auto creation of translated fields

Open w4mike opened this issue 1 year ago • 5 comments

Hi,

I just started a private project using django with strawberry-django-plus.

I would like to use django-translated-fields for translation of some fields in this project. The reason why I want to use this project is, because it does not introduce too much overhead. However, I have a glue how to create a field and a resolver for the translated fields, but I would like to also 'automagically' add the fields per language created by this project in the model to the type definition in my strawberry schema.

Can you give me a hint how to do it ?

This would also probably solve my problem when I later want to introduce django-pghistory, where I need to create new types for the history events.

Appreciate all help and answers.

Thanks, mike

w4mike avatar Jan 19 '23 20:01 w4mike