Build a custom function for Fluent message and term references.

By default, fluentToResource uses this with the id fluent:message.