Fix translations on compiled JavaScript

Change-Id: I825aee59eeba82cf3c71a8050e6b1bccc28f7315