I am trying to use firebase/firestore-translate-text@0.1.8
- the Firebase extension for GCloud Translate API. I am missing 2 things, I'll fill in a request but in case there is some workaround, going to ask here first:
USE CASE: Clients type information in the app. Certain fields need translations, but translations are conditional upon two factors.
- User has enabled/disabled translations. (How to ignore translations if user hasn't enabled translations?)
- The supported languages as per user. (I didn't find a way to pass dynamic array of languages, they need to be set up at installation step)
In my case, I will have a user document under users collection where storing preferences like languages: [en, es, fr, de]
and isTranslationEnabled: true
and those can be used by the listener somehow to either trigger or not, and to use the langs.
Extension: https://firebase.google.com/products/extensions/firebase-firestore-translate-text
EXTRA: Is possible to translate the already existing content? instead of going one by one to update -> triggers the translation
Btw, this is a great extension that works fantastic, I am just missing those features to fulfill my requirements, it doesn't mean it doesn't yours. By other hand, I think this features might be commonly used/needed among others. Thanks Firebase Team!