yaaliuzhipeng / react-native-mlkit-translate-text

šŸ§‘ā€šŸ« machine learning translator for react native . based on Google MLKit.
16 stars 2 forks source link

unsupport language #4

Closed liaostr closed 6 months ago

liaostr commented 1 year ago

unsupport language

image
noumantahir commented 12 months ago

same issue, even simplest of code threw this error...

Screenshot 2023-08-30 at 5 34 12 PM

   if(!await MLKitTranslator.isModelDownloaded(LANG_TAGS.GERMAN)){
        await MLKitTranslator.downloadModel(LANG_TAGS.GERMAN);
      }

      if(!await MLKitTranslator.isModelDownloaded(LANG_TAGS.ENGLISH)){
        await MLKitTranslator.downloadModel(LANG_TAGS.ENGLISH);
      }

      const _translation = await MLKitTranslator.translateText(text, LANG_TAGS.ENGLISH, LANG_TAGS.GERMAN)
fukemy commented 7 months ago

any solution now?

yaaliuzhipeng commented 7 months ago

Hey guys, Iā€™m going to check out this issue and update this library to support new arch. Perhaps 1-2 week I guess

yaaliuzhipeng commented 6 months ago

new updates is released, check it out , https://github.com/yaaliuzhipeng/fast-mlkit-translate-text