react-native-translator icon indicating copy to clipboard operation
react-native-translator copied to clipboard

useTranslator() returns an undefined function

Open Bluebotlabz opened this issue 9 months ago • 3 comments

Testing the following code in a component:

const {translate} = useTranslator(); // Translation object for translating
console.log("Testing translate:");
console.log(translate)

leads to the following output:

 LOG  Testing translate:
 LOG  undefined

And the translate() function does not work as a result

Bluebotlabz avatar May 15 '24 19:05 Bluebotlabz