add a hook for translating the custom data