Returns a function to translate a translation key into a string based on the current translation.

function useTranslation(): (
  id?: Exclude<string, TLUiTranslationKey> | string
) => string
Example
const msg = useTranslation()
const label = msg('style-panel.styles')
useToolsuseUiEvents