Skip to main content

Function: useMessageRef()

useMessageRef(): (ref) => string

Defined in: useMessageRef.tsx:14

Returns a function that renders a message reference — one produced on the backend with @ttoss/i18n-core's msg() and sent over the wire — as plain text in the current locale. A plain string is returned unchanged.

Returns​

(ref) => string