Fixed bug in translation.js