useTranslation
Public Function
Returns a function to translate a translation key into a string based on the current translation.
Example
const msg = useTranslation()
const label = msg('style-panel.styles')
Parameters
None
Returns
(id: TLUiTranslationKey) => string