[fix] fix language support in photon engine

I found out that the language-support of the photon engine wasn't implemented correctly