F
F
fantom_ask2020-08-07 16:52:02
Django
fantom_ask, 2020-08-07 16:52:02

How to translate the text of articles into different languages?

I have a model

class Article(models.Model):
  article_title = models.CharField('Title', max_length = 200)
  article_text = models.TextField('TEXT')
  pub_date = models.DateTimeField('date publish')


And I want to store the translation of the Title and Description in different languages
​​But the problem is that I cannot know in advance which languages ​​this or that article will be translated into
And the number of available languages ​​will increase in the future
And how can I store the data so that they take up less space in bd

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2020-08-07
@pyHammer

fantom_ask here you go django-modeltranslation ready solution.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question