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