`translate` keyword


I came across the translate keyword in the following example:

shortName: string translate by id

What does this means and how it can be used?

Will the value of shortName be populated by the value of the translation that has same id as this instance?



Please see the documentation titled: “Translations” and the type Translation.

TL;DR, this specifies that ‘id’ is the key that can be used to fetch the value of ‘shortName’ in other langauges.

Please also search community for similar topics:

1 Like