Reputation: 1246
In Firestore I have a path "company/bbb/travels/passngers". and each passengers document hold an array. One of the array field is "name" and I want google translate extension translate it automatically.
I don't see anything about this in the documentation.... Is the Firestore extension don't know how to handle a field with array? I don't see nothing about this in the documentation
My structure:
passngers:[ 0:{name:"ron",age:32} ,1:{name:"san",age:56} ]
Upvotes: 2
Views: 375
Reputation: 3186
According to the documentation of the Translate Text Firebase extension, a configuration parameter is the Input field name
which is the name of the field that contains the string that you want to translate.
Since your field is an array the Translate Text extension will translate the whole array using the Cloud Translation API and currently is not possible to just translate the array field that you want to choose.
Upvotes: 1