Input the key manually in the console like this: translate.key = 'KEYHERE'; Then call test() from the console.

Text To be translate:
Text after translate: