update add translations function