firebase / extensions

Source code for official Firebase extensions
https://firebase.google.com/products/extensions
Apache License 2.0
882 stars 373 forks source link

[Translate Text in Firestore] Translating field with an array of strings does not work on add document but on update. #2054

Closed amin79 closed 2 months ago

amin79 commented 2 months ago

[READ] Step 1: Are you in the right place?

Issues filed here should be about bugs for a specific extension in this repository. If you have a general question, need help debugging, or fall into some other category use one of these other channels:

[REQUIRED] Step 2: Configure for a field of array of strings.

[REQUIRED] Step 3: It does not translate the text of array of string when create the document.

But when I update the field again, it will translate it.

When I create the document:

Screenshot 2024-04-16 at 11 57 01

When I update the field:

Screenshot 2024-04-16 at 11 59 03

Steps to reproduce:

What happened? How can we make the problem occur? This could be a description, log/console output, etc.

Expected result
Actual result
cabljac commented 2 months ago

I can't seem to reproduce this. Can you please provide

  1. The extension config for the instance of the extension where this bug occurs
  2. Any relevant logs from the deployed function
Screenshot 2024-04-23 at 13 32 18
amin79 commented 2 months ago

I tested it again and found out that this was my problem. On updating the document I forget to pass the existing translated fields. Sorry for that...

cabljac commented 2 months ago

The issue is resolved?

amin79 commented 2 months ago

Yes, thank a lot