Make tab labels in JavaScript translatable.