FieldModelTranslatable Property |
Namespace: Livit.Learn.Model
After the field is marked as Translatable the platform sends its value to the Translation Service and stores received translation inside a table (FieldValue=TranslatedFieldValue).
It means that the phrase stored inside such field becomes internally translated and whenever it is going to be shown on UI the translated value should be shown.
In order to access the translated value inside expressions the FieldTranslatedValue extension should be used.
<Field Id="testField1" Value="This is the tootlip that should be translated" Translatable="true" />
<Element Id="DoorElement_small" Tooltip="{FieldTranslatedValue testField1}" GameObjectId="Door" />
<Field Id="Tooltip1_Translatalbe" Value="This is the tootlip that should be translated" Translatable="true" /> <Field Id="Tooltip3_Translatable_AssignedToTranslatable" Value="The new tooltip value was translated" Translatable="true" />
<SetField FieldId="Tooltip1_Translatalbe" Value="{FieldTranslatedValue Tooltip3_Translatable_AssignedToTranslatable}" />