Skip to content

fix(firestore-translate-text): stop coercing non-string input before translation #3106

Description

@CorieW

The kit calls translateSingle(String(input), …), so a document with input: 42 sends "42" to the translation API where the extension sent the raw 42. Same for the value logged by logs.translateInputStringToAllLanguages.

Only reachable on the create path — the update path deletes existing translations for any non-string, non-object input before it gets here.

Parity ledger: #2974, firestore-translate-text §4b.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions