How do you define translatable entities? #974
-
I could not find this in the documentation for adding new entities, but I can see in the Vendure codebase that for each |
Beta Was this translation helpful? Give feedback.
Answered by
michaelbromley
Jul 8, 2021
Replies: 1 comment 6 replies
-
Yes there are no docs on this, so I'll write a rough guide here and add some docs in future: (using the Product entity as an example)
|
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
skid
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes there are no docs on this, so I'll write a rough guide here and add some docs in future:
(using the Product entity as an example)
LocaleString
, and are not decorated with@Column()
as they are not actually stored in the DB, but are populated at runtime:Translatable
interface, which means it will have a propertytranslations
which looks like this :<entityName>Translation
entity m…