`translate` keyword

#1

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?

0 Likes

#2

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:
https://community.c3.ai/search?q=translation


1 Like